Start: Jun, 28, 2019 08:42:00
2019杭州师范大学第一届程序设计竞赛新生赛
End: Jun, 28, 2019 11:42:00
Contest has ended!
Time elapsed: 03:00:00
Time remaining: 00:00:00

Problem_ID: C
Result: Accepted
Time: 62ms
Memory: 2012kB
In contest: 1276

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include<bits/stdc++.h>
using namespace std;
int main(){
	int a[100001];
	int n,k,flag=0;
	double z,q;
	scanf("%d%d",&n,&k);
	for(int i=0;i<n;i++){
			scanf("%d",&a[i]);
	}
	if(k>=6){
		for(int i=0;i<n;i++){
			printf("100\n");
		}
	}
	else {
	for(int i=0;i<n;i++){
		for(int j=1;j<=k;j++){
			z=(ceil(sqrt(a[i])))*10;
       		a[i]=z;
		}
		printf("%d\n",a[i]);
		}
	}
}