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: 72ms
Memory: 2012kB
In contest: 1276

#include<bits/stdc++.h>
using namespace std;
int main(){
	int n,k,a[100000];
	scanf("%d%d",&n,&k);
	for(int i=0;i<n;i++){
		scanf("%d",&a[i]);
	}
	for(int i=0;i<n;i++){
		for(int j=0;j<k;j++){
			a[i]=ceil(sqrt(a[i]))*10;
			if(a[i]==100)
			break;
		}
	}
	for(int i=0;i<n;i++){
		printf("%d ",a[i]);
	}
}