# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
194120 | 2020-01-15T16:41:25 Z | juanmartinez111 | Mini tetris (IOI16_tetris) | C++14 | 12 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%3==0)return 0; return 1; } else if(figura==1)return 0; else if(figura==3){ if(cnt%2==0)return 0; return 2; } } int get_rotation() { if(figura==2){ if(cnt%3==0)return 1; return 0; } else if(figura==1)return 0; else if(figura==3){ if(cnt%2==0)return 0; return 2; } }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 12 ms | 376 KB | Win! |
2 | Correct | 3 ms | 248 KB | Win! |
3 | Correct | 2 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 | 4 ms | 376 KB | Win! |
8 | Correct | 6 ms | 128 KB | Win! |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 256 KB | Win! |
2 | Correct | 2 ms | 256 KB | Win! |
3 | Correct | 2 ms | 256 KB | Win! |
4 | Correct | 1 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 | 6 ms | 376 KB | Win! |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 12 ms | 376 KB | Win! |
2 | Correct | 3 ms | 248 KB | Win! |
3 | Correct | 2 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 | 4 ms | 376 KB | Win! |
8 | Correct | 6 ms | 128 KB | Win! |
9 | Correct | 2 ms | 256 KB | Win! |
10 | Correct | 2 ms | 256 KB | Win! |
11 | Correct | 2 ms | 256 KB | Win! |
12 | Correct | 1 ms | 256 KB | Win! |
13 | Correct | 2 ms | 256 KB | Win! |
14 | Correct | 3 ms | 256 KB | Win! |
15 | Correct | 3 ms | 256 KB | Win! |
16 | Correct | 6 ms | 376 KB | Win! |
17 | Correct | 1 ms | 256 KB | Win! |
18 | Correct | 2 ms | 256 KB | Win! |
19 | Correct | 2 ms | 256 KB | Win! |
20 | Incorrect | 2 ms | 256 KB | Game over! After 46 turns. |
21 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 256 KB | Bad position for figure 3 : 2 |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 12 ms | 376 KB | Win! |
2 | Correct | 3 ms | 248 KB | Win! |
3 | Correct | 2 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 | 4 ms | 376 KB | Win! |
8 | Correct | 6 ms | 128 KB | Win! |
9 | Correct | 2 ms | 256 KB | Win! |
10 | Correct | 2 ms | 256 KB | Win! |
11 | Correct | 2 ms | 256 KB | Win! |
12 | Correct | 1 ms | 256 KB | Win! |
13 | Correct | 2 ms | 256 KB | Win! |
14 | Correct | 3 ms | 256 KB | Win! |
15 | Correct | 3 ms | 256 KB | Win! |
16 | Correct | 6 ms | 376 KB | Win! |
17 | Correct | 1 ms | 256 KB | Win! |
18 | Correct | 2 ms | 256 KB | Win! |
19 | Correct | 2 ms | 256 KB | Win! |
20 | Incorrect | 2 ms | 256 KB | Game over! After 46 turns. |
21 | Halted | 0 ms | 0 KB | - |