# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
194113 | 2020-01-15T16:18:52 Z | juanmartinez111 | Mini tetris (IOI16_tetris) | C++14 | 5 ms | 376 KB |
#include "tetris.h" void init(int n) { } int position; int rotation; int figura,cnt=-1; void new_figure(int figure_type) { figura=figure_type; cnt++; } int get_position() { if(figura==2){ if(cnt%2==0)return 0; return 2; } if(figura==1)return 0; } int get_rotation() { if(figura==2){ if(cnt%2==0)return 0; return 1; } if(figura==1)return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 256 KB | Win! |
2 | Correct | 2 ms | 376 KB | Win! |
3 | Correct | 1 ms | 256 KB | Win! |
4 | Correct | 2 ms | 256 KB | Win! |
5 | Correct | 2 ms | 256 KB | Win! |
6 | Correct | 3 ms | 256 KB | Win! |
7 | Correct | 3 ms | 256 KB | Win! |
8 | Correct | 5 ms | 256 KB | Win! |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 256 KB | Win! |
2 | Incorrect | 2 ms | 308 KB | Game over! After 10 turns. |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 256 KB | Win! |
2 | Correct | 2 ms | 376 KB | Win! |
3 | Correct | 1 ms | 256 KB | Win! |
4 | Correct | 2 ms | 256 KB | Win! |
5 | Correct | 2 ms | 256 KB | Win! |
6 | Correct | 3 ms | 256 KB | Win! |
7 | Correct | 3 ms | 256 KB | Win! |
8 | Correct | 5 ms | 256 KB | Win! |
9 | Correct | 2 ms | 256 KB | Win! |
10 | Incorrect | 2 ms | 308 KB | Game over! After 10 turns. |
11 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 256 KB | Integer 3 violates the range [0, 2] |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 256 KB | Win! |
2 | Correct | 2 ms | 376 KB | Win! |
3 | Correct | 1 ms | 256 KB | Win! |
4 | Correct | 2 ms | 256 KB | Win! |
5 | Correct | 2 ms | 256 KB | Win! |
6 | Correct | 3 ms | 256 KB | Win! |
7 | Correct | 3 ms | 256 KB | Win! |
8 | Correct | 5 ms | 256 KB | Win! |
9 | Correct | 2 ms | 256 KB | Win! |
10 | Incorrect | 2 ms | 308 KB | Game over! After 10 turns. |
11 | Halted | 0 ms | 0 KB | - |