#include <bits/stdc++.h>
#pragma GCC optimize("O3")
//#pragma GCC optimize("unroll-loops")
//#pragma GCC target("avx,avx2")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,avx,avx2")
using namespace std;
#define accelerator ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define fi first
#define se second
#define pb push_back
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
const int nmax=200011,mod=1000000007,inf=2000010000,key=200003;
const ll infll=4000000000000000000;
const ld eps=1e-7;
void init()
{
return ;
}
void init(int a)
{
return ;
}
int cur=0,cnt1=0,cnt2=0;
void new_figure(int n)
{
cur=n;
return ;
}
int get_position()
{
if(cur==1)
return 0;
if(cur==2)
{
cnt1++;
cnt1%=3;
return cnt1;
}
cnt2++;
cnt2%=2;
return cnt2;
}
int get_rotation()
{
if(cur==1)
return 0;
if(cur==2)
return 1;
return cnt2*2;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
204 KB |
Win! |
2 |
Correct |
0 ms |
204 KB |
Win! |
3 |
Correct |
0 ms |
204 KB |
Win! |
4 |
Correct |
1 ms |
204 KB |
Win! |
5 |
Correct |
1 ms |
204 KB |
Win! |
6 |
Correct |
1 ms |
204 KB |
Win! |
7 |
Correct |
1 ms |
204 KB |
Win! |
8 |
Correct |
2 ms |
204 KB |
Win! |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
204 KB |
Win! |
2 |
Correct |
0 ms |
204 KB |
Win! |
3 |
Correct |
0 ms |
204 KB |
Win! |
4 |
Correct |
0 ms |
204 KB |
Win! |
5 |
Correct |
0 ms |
204 KB |
Win! |
6 |
Correct |
1 ms |
204 KB |
Win! |
7 |
Correct |
1 ms |
204 KB |
Win! |
8 |
Correct |
2 ms |
204 KB |
Win! |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
204 KB |
Win! |
2 |
Correct |
0 ms |
204 KB |
Win! |
3 |
Correct |
0 ms |
204 KB |
Win! |
4 |
Correct |
1 ms |
204 KB |
Win! |
5 |
Correct |
1 ms |
204 KB |
Win! |
6 |
Correct |
1 ms |
204 KB |
Win! |
7 |
Correct |
1 ms |
204 KB |
Win! |
8 |
Correct |
2 ms |
204 KB |
Win! |
9 |
Correct |
0 ms |
204 KB |
Win! |
10 |
Correct |
0 ms |
204 KB |
Win! |
11 |
Correct |
0 ms |
204 KB |
Win! |
12 |
Correct |
0 ms |
204 KB |
Win! |
13 |
Correct |
0 ms |
204 KB |
Win! |
14 |
Correct |
1 ms |
204 KB |
Win! |
15 |
Correct |
1 ms |
204 KB |
Win! |
16 |
Correct |
2 ms |
204 KB |
Win! |
17 |
Correct |
0 ms |
204 KB |
Win! |
18 |
Correct |
0 ms |
204 KB |
Win! |
19 |
Correct |
0 ms |
204 KB |
Win! |
20 |
Correct |
1 ms |
204 KB |
Win! |
21 |
Correct |
0 ms |
204 KB |
Win! |
22 |
Correct |
1 ms |
204 KB |
Win! |
23 |
Correct |
1 ms |
204 KB |
Win! |
24 |
Correct |
2 ms |
204 KB |
Win! |
25 |
Correct |
2 ms |
204 KB |
Win! |
26 |
Correct |
2 ms |
204 KB |
Win! |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
204 KB |
Win! |
2 |
Correct |
0 ms |
204 KB |
Win! |
3 |
Correct |
0 ms |
204 KB |
Win! |
4 |
Correct |
1 ms |
204 KB |
Win! |
5 |
Correct |
0 ms |
204 KB |
Win! |
6 |
Correct |
1 ms |
204 KB |
Win! |
7 |
Correct |
1 ms |
204 KB |
Win! |
8 |
Correct |
2 ms |
204 KB |
Win! |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
204 KB |
Win! |
2 |
Correct |
0 ms |
204 KB |
Win! |
3 |
Correct |
0 ms |
204 KB |
Win! |
4 |
Correct |
1 ms |
204 KB |
Win! |
5 |
Correct |
1 ms |
204 KB |
Win! |
6 |
Correct |
1 ms |
204 KB |
Win! |
7 |
Correct |
1 ms |
204 KB |
Win! |
8 |
Correct |
2 ms |
204 KB |
Win! |
9 |
Correct |
0 ms |
204 KB |
Win! |
10 |
Correct |
0 ms |
204 KB |
Win! |
11 |
Correct |
0 ms |
204 KB |
Win! |
12 |
Correct |
0 ms |
204 KB |
Win! |
13 |
Correct |
0 ms |
204 KB |
Win! |
14 |
Correct |
1 ms |
204 KB |
Win! |
15 |
Correct |
1 ms |
204 KB |
Win! |
16 |
Correct |
2 ms |
204 KB |
Win! |
17 |
Correct |
0 ms |
204 KB |
Win! |
18 |
Correct |
0 ms |
204 KB |
Win! |
19 |
Correct |
0 ms |
204 KB |
Win! |
20 |
Correct |
1 ms |
204 KB |
Win! |
21 |
Correct |
0 ms |
204 KB |
Win! |
22 |
Correct |
1 ms |
204 KB |
Win! |
23 |
Correct |
1 ms |
204 KB |
Win! |
24 |
Correct |
2 ms |
204 KB |
Win! |
25 |
Correct |
2 ms |
204 KB |
Win! |
26 |
Correct |
2 ms |
204 KB |
Win! |
27 |
Correct |
0 ms |
204 KB |
Win! |
28 |
Correct |
0 ms |
204 KB |
Win! |
29 |
Correct |
0 ms |
204 KB |
Win! |
30 |
Correct |
1 ms |
204 KB |
Win! |
31 |
Correct |
0 ms |
204 KB |
Win! |
32 |
Correct |
1 ms |
204 KB |
Win! |
33 |
Correct |
1 ms |
204 KB |
Win! |
34 |
Correct |
2 ms |
204 KB |
Win! |
35 |
Correct |
0 ms |
204 KB |
Win! |
36 |
Correct |
0 ms |
296 KB |
Win! |
37 |
Incorrect |
1 ms |
204 KB |
Game over! After 11 turns. |
38 |
Halted |
0 ms |
0 KB |
- |