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: 61ms
Memory: 1384kB
In contest: 1276

#include<stdio.h>
#include<math.h>
int main(){
int n,a[100000];
int k;
int y;
double x,z;
scanf("%d%d",&n,&k);
for(int i=0;i<n;i++){
	scanf("%d",&a[i]);
}
for(int i=0;i<n;i++){
	x=a[i];
	if(k<5){
	for(int j=0;j<k;j++){
	z=sqrt(x);
	y=ceil(z);
	y=y*10;
	x=y;
	}
	}
	else if(k>=5){
		y=100;
	}

	if(i!=n-1){
		printf("%d ",y);
	}
	else printf("%d\n",y);
}
}