Submission #411972

#TimeUsernameProblemLanguageResultExecution timeMemory
411972nxteruMini tetris (IOI16_tetris)C++14
100 / 100
4 ms296 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...