# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1073589 | Enzo | Mini tetris (IOI16_tetris) | C++17 | 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"
#include<iostream>
using namespace std;
void init(int n) {
}
int position;
int rotation;
void new_figure(int figure_type) {
if(figure_type == 1){
position = 0;
rotation = 1;
}
}
int get_position() {
return position;
}
int get_rotation() {
return rotation;
}
int main(){
int n,l;
cin >> n;
init(n);
for(int i = 0; i < n; i++){
cin>>l;
new_figure(l);
cout<<get_position()<<" "<<get_rotation();
}
}