#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 = 2;
par = 0;
}
}
int get_position() {
return position;
}
int get_rotation() {
return rotation;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
376 KB |
Bad position for figure 1 : 2 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
376 KB |
Bad position for figure 2 : 2 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
376 KB |
Bad position for figure 1 : 2 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
256 KB |
Bad position for figure 3 : 2 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
376 KB |
Bad position for figure 1 : 2 |
2 |
Halted |
0 ms |
0 KB |
- |