#include "tetris.h"
void init(int n) {
}
int position;
int rotation;
int cant = 0;
void new_figure(int figure_type) {
position = cant;
++cant;
cant %= 3;
rotation = 1;
}
int get_position() {
return position;
}
int get_rotation() {
return rotation;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
460 KB |
Win! |
2 |
Correct |
2 ms |
256 KB |
Win! |
3 |
Correct |
0 ms |
256 KB |
Win! |
4 |
Correct |
2 ms |
420 KB |
Win! |
5 |
Correct |
2 ms |
128 KB |
Win! |
6 |
Correct |
3 ms |
256 KB |
Win! |
7 |
Correct |
4 ms |
256 KB |
Win! |
8 |
Correct |
4 ms |
376 KB |
Win! |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
6 ms |
392 KB |
Win! |
2 |
Correct |
2 ms |
256 KB |
Win! |
3 |
Correct |
2 ms |
376 KB |
Win! |
4 |
Correct |
2 ms |
248 KB |
Win! |
5 |
Correct |
3 ms |
376 KB |
Win! |
6 |
Correct |
3 ms |
256 KB |
Win! |
7 |
Correct |
0 ms |
376 KB |
Win! |
8 |
Correct |
5 ms |
376 KB |
Win! |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
460 KB |
Win! |
2 |
Correct |
2 ms |
256 KB |
Win! |
3 |
Correct |
0 ms |
256 KB |
Win! |
4 |
Correct |
2 ms |
420 KB |
Win! |
5 |
Correct |
2 ms |
128 KB |
Win! |
6 |
Correct |
3 ms |
256 KB |
Win! |
7 |
Correct |
4 ms |
256 KB |
Win! |
8 |
Correct |
4 ms |
376 KB |
Win! |
9 |
Correct |
6 ms |
392 KB |
Win! |
10 |
Correct |
2 ms |
256 KB |
Win! |
11 |
Correct |
2 ms |
376 KB |
Win! |
12 |
Correct |
2 ms |
248 KB |
Win! |
13 |
Correct |
3 ms |
376 KB |
Win! |
14 |
Correct |
3 ms |
256 KB |
Win! |
15 |
Correct |
0 ms |
376 KB |
Win! |
16 |
Correct |
5 ms |
376 KB |
Win! |
17 |
Correct |
2 ms |
372 KB |
Win! |
18 |
Correct |
2 ms |
376 KB |
Win! |
19 |
Correct |
2 ms |
376 KB |
Win! |
20 |
Correct |
2 ms |
256 KB |
Win! |
21 |
Incorrect |
2 ms |
252 KB |
Game over! After 85 turns. |
22 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
256 KB |
Bad position for figure 3 : 2 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
460 KB |
Win! |
2 |
Correct |
2 ms |
256 KB |
Win! |
3 |
Correct |
0 ms |
256 KB |
Win! |
4 |
Correct |
2 ms |
420 KB |
Win! |
5 |
Correct |
2 ms |
128 KB |
Win! |
6 |
Correct |
3 ms |
256 KB |
Win! |
7 |
Correct |
4 ms |
256 KB |
Win! |
8 |
Correct |
4 ms |
376 KB |
Win! |
9 |
Correct |
6 ms |
392 KB |
Win! |
10 |
Correct |
2 ms |
256 KB |
Win! |
11 |
Correct |
2 ms |
376 KB |
Win! |
12 |
Correct |
2 ms |
248 KB |
Win! |
13 |
Correct |
3 ms |
376 KB |
Win! |
14 |
Correct |
3 ms |
256 KB |
Win! |
15 |
Correct |
0 ms |
376 KB |
Win! |
16 |
Correct |
5 ms |
376 KB |
Win! |
17 |
Correct |
2 ms |
372 KB |
Win! |
18 |
Correct |
2 ms |
376 KB |
Win! |
19 |
Correct |
2 ms |
376 KB |
Win! |
20 |
Correct |
2 ms |
256 KB |
Win! |
21 |
Incorrect |
2 ms |
252 KB |
Game over! After 85 turns. |
22 |
Halted |
0 ms |
0 KB |
- |