# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
43317 | 2018-03-13T13:48:46 Z | shihabsarar29 | Sequence (BOI14_sequence) | C++14 | 4 ms | 612 KB |
#include<bits/stdc++.h> using namespace std; int A[200000]; int main() { int K,i,res; scanf("%d",&K); for(i=0;i<K;i++) scanf("%d",&A[i]); i=0; if(A[i]==0) A[i]=10; if(K==1) res=A[i]; else if(K<=10) res=A[i]*10; else if(K<=100) res=A[i]*100; else if(K<=1000) res=A[i]*1000; else if(K<=10000) res=A[i]*10000; else if(K<=100000) res=A[i]*100000; if(A[i]==9) res--; printf("%d\n",res); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 248 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 480 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 480 KB | Output is correct |
2 | Incorrect | 4 ms | 480 KB | Output isn't correct |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 612 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |