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: 60ms
Memory: 1116kB
In contest: 1276

#include<stdio.h>
#include<string.h>
#include<math.h>
int main()
{
	int n,k,a,i,j;
	double x;
	scanf("%d %d",&n,&k);
	while(n--)
	{
		scanf("%d",&a);
		for(j=0;j<k;j++)
		{
			x=sqrt(a*1.0);
			a=10*ceil(x*1.0);
			if(a==100)
			{
				break;
			}
		}
		if(n==0)
		{
			printf("%d\n",a);
		}
		else
		{
			printf("%d ",a);
		}
	}
}