| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1307675 | ballbreaker | Mini tetris (IOI16_tetris) | C++20 | 2 ms | 504 KiB |
#include "tetris.h"
#include<bits/stdc++.h>
using namespace std;
void init(int n) {
}
int position;
int rotation;
int cur = 0;
void new_figure(int figure_type) {
if (figure_type == 1) {
rotation = 0;
position = 0;
} else if (figure_type == 2) {
if (cur == 0) {
cur = 3;
position = 1;
rotation = 0;
} else if (cur == 1) {
cur = 2;
position = 1;
rotation = 0;
} else if (cur == 2) {
cur = 5;
position = 2;
rotation = 1;
} else if (cur == 3) {
cur = 4;
position = 0;
rotation = 1;
} else if (cur == 4) {
cur = 0;
position = 1;
rotation = 0;
} else if (cur == 5) {
cur = 0;
position = 0;
rotation = 0;
}
// cout << cur << endl;
} else {
if (cur == 0) {
cur = 1;
position = 0;
rotation = 0;
} else if (cur = 1) {
cur = 0;
position = 1;
rotation = 2;
} else if (cur == 2) {
cur = 3;
position = 1;
rotation = 2;
} else if (cur == 3) {
cur = 2;
position = 0;
rotation = 1;
} else if (cur == 4) {
cur = 5;
position = 1;
rotation = 3;
} else if (cur == 5) {
cur = 4;
position = 0;
rotation = 0;
}
}
// cout << cur << endl;
}
int get_position() {
return position;
}
int get_rotation() {
return rotation;
}
컴파일 시 표준 에러 (stderr) 메시지
| # | 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... | ||||
