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: 87ms
Memory: 1784kB
In contest: 1276

#include<stdio.h>
#include<math.h>
int main(){
	int n,m,b,c,x,y,t,i,j,k;
	double a[100001];
	scanf("%d %d",&n,&k);
	for(i=0;i<n;i++){
		scanf("%lf",&a[i]);
	}
	for(i=0;i<n;i++){
		for(j=0;j<k;j++){
		a[i]=ceil(sqrt(a[i]))*10;
		
		if(a[i]==100)
			break;}
	}
	for(i=0;i<n;i++){
		printf("%.0f",a[i]);
		if(i!=n-1)
			printf(" ");
		else
			printf("\n");
	}
	return 0;}