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<string.h>
#include<math.h>
int main()
{
	 int n,k;
	 int m[100008];
	double a;
	 int t;
	scanf("%d %d",&n,&k);
	for(int i=0;i<n;i++)
	{
		scanf("%d",&m[i]);
		if(k>5)
		{
			m[i]=100;
			continue;
		}
		t=k;
		while(t--)
		{
			a=sqrt((double)m[i]);
			a=ceil(a);
			m[i]=a=10*a;
		}
	}
	for(int i=0;i<n;i++)
	{
		printf("%d ",m[i]);
		
	}
	return 0;
}