이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "tetris.h"
void init(int n) {
}
int position;
int rotation;
int figura,cnt=-1;
void new_figure(int figure_type) {
figura=figure_type;
cnt++;
}
int get_position() {
if(figura==2){
if(cnt%3==0)return 0;
return 1;
}
else if(figura==1)return 0;
else{
if(cnt%2==0)return 0;
return 2;
}
}
int get_rotation() {
if(figura==2){
if(cnt%3==0)return 1;
return 0;
}
else if(figura==1)return 0;
else{
if(cnt%2==0)return 0;
return 2;
}
}
# | 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... |