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: 53ms
Memory: 1388kB
In contest: 1276

#include <stdio.h>
#include <math.h>

int main () {
	int j,i,n,k;
	int a[100000];
	int tem;
	
	scanf("%d %d",&n,&k);
	if (k > 5) {
		for (i = 0;i < n;i++) {
			a[i] = 100;
		}
	} else {
	
	for (i = 0;i < n;i++) {
		scanf("%d",&tem);
	     	for (j = 0;j < k;j++) {
			    tem = ceil(sqrt(tem)) * 10;
	}
	a[i] = tem;


	}
}
	for (i = 0;i < n;i++) {
		printf("%d ",a[i]);
	}
	return 0;
}