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: 241ms
Memory: 1740kB
In contest: 1276

#include<iostream>
#include<stdio.h>
#include<math.h>
using namespace std;
int a[200];
void init(int k){
	for(int i=1;i<=100;i++){
		a[i]=i;
		for(int j=1;j<=k;j++){
			a[i]=(int)(sqrt(a[i])+0.9999999)*10;
		}
	}
}

int main(){
	int s;
	int n,k;
	int flag=0;
	cin>>n>>k;
	init(k);
	while(n--){
		scanf("%d",&s);
		if(flag!=0) printf(" ");
		flag=1;
		printf("%d",a[s]);
	}
}