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: 81ms
Memory: 1560kB
In contest: 1276

#include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<string.h>
int main(){
   int n,k,i,j,a[100002];
   scanf("%d %d",&n,&k);
   for(i=0;i<n;i++){
      scanf("%d",&a[i]);
   }
   if(k<=5){
   for(i=0;i<k;i++){
	   for(j=0;j<n;j++){
	      a[j]=(ceil)((pow)(1.00*a[j],0.5))*10;
	   }
   }
   }
   if(k>5){
	   for(j=0;j<n;j++){
	      a[j]=100;
	   }
   }
   for(i=0;i<n-1;i++){
      printf("%d ",a[i]);
   }
   printf("%d\n",a[n-1]);
}