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