#include "tetris.h"
void init(int n) {
}
int position;
int rotation;
int cant = 0;
bool par = false;
void new_figure(int figure_type) {
if(!par){
rotation = 0;
position = 0;
par = 1;
} else {
rotation = 2;
position = 1;
par = 0;
}
}
int get_position() {
return position;
}
int get_rotation() {
return rotation;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
256 KB |
Bad position for figure 1 : 1 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
376 KB |
Game over! After 5 turns. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
256 KB |
Bad position for figure 1 : 1 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
3 ms |
508 KB |
Win! |
2 |
Correct |
3 ms |
504 KB |
Win! |
3 |
Correct |
4 ms |
256 KB |
Win! |
4 |
Correct |
1 ms |
376 KB |
Win! |
5 |
Correct |
3 ms |
376 KB |
Win! |
6 |
Correct |
3 ms |
376 KB |
Win! |
7 |
Correct |
1 ms |
256 KB |
Win! |
8 |
Correct |
5 ms |
252 KB |
Win! |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
256 KB |
Bad position for figure 1 : 1 |
2 |
Halted |
0 ms |
0 KB |
- |