# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
14826 | 2015-06-28T13:22:55 Z | minsu | Parrots (IOI11_parrots) | C++14 | 6 ms | 2272 KB |
#include "encoder.h" #include "encoderlib.h" #include <bits/stdc++.h> using namespace std; void encode(int N, int M[]) { for(int i=0; i<N; i++){ int a = M[i] / 100; int b = M[i] / 10 % 10; int c = M[i] % 10; while( a!=0 || b!=0 || c!=0 ){ int s = i<<3; if(a) s |= 4, a--; if(b) s |= 2, b--; if(c) s |= 1, c--; send( s ); } } send( (N-1)<<3 ); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 4 ms | 792 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 4 ms | 1712 KB | Error : Output is wrong |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 5 ms | 1864 KB | Error : Output is wrong |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 5 ms | 2016 KB | Error : Output is wrong |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 5 ms | 2016 KB | Error : Output is wrong |
2 | Incorrect | 6 ms | 2272 KB | Error : Output is wrong |
3 | Incorrect | 4 ms | 2272 KB | Error : Bad encoded integer |
4 | Incorrect | 4 ms | 2272 KB | Error : Bad encoded integer |
5 | Incorrect | 4 ms | 2272 KB | Error : Bad encoded integer |
6 | Incorrect | 4 ms | 2272 KB | Error : Bad encoded integer |
7 | Incorrect | 4 ms | 2272 KB | Error : Bad encoded integer |