Submission #194108

# Submission time Handle Problem Language Result Execution time Memory
194108 2020-01-15T15:25:46 Z Juanes24 Mini tetris (IOI16_tetris) C++14
0 / 100
2 ms 376 KB
#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 -