Submission #17659

#TimeUsernameProblemLanguageResultExecution timeMemory
17659Namnamseo입력숫자 (KOI13_mystery)C++14
100 / 100
0 ms1084 KiB
#import<cstdio> int n,a[50],b[50],i,j;main(){scanf("%d",&n);for(i=0;i<n;)scanf("%d",a+i++);for(i=0;i<n;){while(b[j])j=(j+1)%n;b[j]=a[i];j=(j+a[i++])%n;}printf("%d\n",n);for(i=0;i<n;)printf("%d ",b[i++]);}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...