# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
194112 | juanmartinez111 | Mini tetris (IOI16_tetris) | C++14 | 0 ms | 0 KiB |
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"
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%2==0)return 0;
return 2;
}
if(figura==1)return 0;
}
int get_rotation() {
if(figura==2){
if(cnt%2==0)return 0;
return 1;
}
if(figura==1)return 0;
}