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: 51ms
Memory: 1392kB
In contest: 1276

#include<stdio.h>
#include<math.h>
int main()
{
	int f[99999];
	int i,j,n,m,k,a,b;
	scanf("%d%d",&n,&k);
	for(i=0;i<n;i++)
	{
		scanf("%d",&f[i]);
	}
	if(k<=5){
	for(j=k;j>0;j--)
	{
		for(a=0;a<n;a++)
		{
		f[a]=10*ceil(sqrt(f[a]*1.0));
		}
	}
	for(a=0;a<n;a++)
	{printf("%d",f[a]);
	if(a<n-1)printf(" ");
	}
	}
	else 
		for(a=0;a<n;a++)
	{printf("100");
	if(a<n-1)printf(" ");
	}
}