이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "tetris.h"
void init(int n) {}
int position, rotation, state;
int nxt_pos[3][6] = {{0, 0, 0, 0, 0, 0}, {1, 0, 0, 2, 0, 1}, {1, 0, 0, 1, 0, 1}};
int nxt_rot[3][6] = {{0, 0, 0, 0, 0, 0}, {0, 0, 1, 1, 0, 0}, {1, 3, 3, 2, 0, 1}};
int nxt_state[3][6] = {{0, 1, 2, 3, 4, 5}, {2, 2, 5, 4, 0, 0}, {1, 0, 3, 2, 5, 4}};
void new_figure(int figure_type) {
position = nxt_pos[--figure_type][state];
rotation = nxt_rot[figure_type][state];
state = nxt_state[figure_type][state];
}
int get_position() { return position; }
int get_rotation() { return rotation; }
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |