This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "tetris.h"
using namespace std;
void init(int n) {
}
int s,a,b;
int p[6][3]={{0,0,0},{0,1,1},{0,2,1},{0,0,0},{0,0,0},{0,1,1}};
int r[6][3]={{0,0,0},{0,0,2},{0,3,2},{0,3,3},{0,0,0},{0,0,1}};
int t[6][3]={{0,2,1},{1,2,0},{2,4,3},{3,5,2},{4,0,5},{5,0,4}};
void new_figure(int x) {
x--;
a=p[s][x];
b=r[s][x];
s=t[s][x];
}
int get_position() {
return a;
}
int get_rotation() {
return b;
}
# | 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... |