Start: Jun, 28, 2019 08:42:00
2019杭州师范大学第一届程序设计竞赛新生赛
End: Jun, 28, 2019 11:42:00
Time elapsed:
Time remaining:

Problem_ID: C
Result: Accepted
Time: 69ms
Memory: 5192kB
In contest: 1276

#include<stdio.h>
#include<string.h>
#include<math.h>
int sum[1000000];
int main() {
	int n,k;
	scanf("%d%d",&n,&k);
	for(int i=1; i<=n; i++) {
		scanf("%d",&sum[i]);
	}
	int x=k;
	if(k<=5) {
		for(int i=1; i<=n; i++) {
			x=k;
			while(x--) {
				sum[i]=10*int(pow(sum[i],0.5)+0.99999999);
			}
		}
	}
	else{
		for(int i=1;i<=n;i++){
			sum[i]=100;
		}
	}
	for(int i=1; i<=n; i++) {
		if(i!=n) printf("%d ",sum[i]);
		else printf("%d\n",sum[i]);
	}
}