#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define st first
#define nd second
#define pb push_back
#define sz(x) (int)(x).size()
#define all(x) (x).begin(), (x).end()
#define ll long long
#define ld long double
ll mod=1000000007;
int inf=1000000007;
ll infl=1000000000000000007;
const int N=(1<<13)+7;
set<int>G[N];
bool DP[N],nDP[N];
int n,m,k;
void bt(int x,int p,int i,int y)
{
int X=x|p;
if(i==n)
{
if(X!=(1<<n)-1) return ;
G[x].insert(y);
return ;
}
bt(x,p,i+1,y);
if(i<n-1)
{
if(!(X&(1<<i))&&!(X&(1<<(i+1)))&&!(y&(1<<(i+1)))) bt(x,p|(1<<i)|(1<<(i+1)),i+1,y|(1<<(i+1)));
if(!(X&(1<<i))&&!(X&(1<<(i+1)))&&!(y&(1<<i))) bt(x,p|(1<<i)|(1<<(i+1)),i+1,y|(1<<i));
if(!(X&(1<<i))&&!(y&(1<<(i+1)))&&!(y&(1<<i))) bt(x,p|(1<<i),i+1,y|(1<<i)|(1<<(i+1)));
}
if(i>0&&!(X&(1<<i))&&!(y&(1<<(i-1)))&&!(y&(1<<i))) bt(x,p|(1<<i),i+1,y|(1<<i)|(1<<(i-1)));
}
set<int>S;
map<int,vector<int>>M;
vector<int>G3[8][2];
vector<int>G2[4][3];
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin>>n>>m>>k;
for(int i=0;i<(1<<n);i++) bt(i,0,0,0);
if(n==3)
{
for(int c=0;c<8;c++)
{
memset(DP,0,sizeof DP);
DP[c]=1;
for(int j=0; j<2; j++)
{
memset(nDP,0,sizeof nDP);
for(int i=0; i<(1<<n); i++)
{
if(!DP[i]) continue;
for(auto x:G[i]) nDP[x]=1;
}
for(int i=0;i<(1<<n);i++) DP[i]=nDP[i];
for(int i=0;i<(1<<n);i++)
{
if(DP[i]) G3[c][j^1].pb(i);
}
}
}
}
if(n==2)
{
for(int c=0;c<4;c++)
{
memset(DP,0,sizeof DP);
DP[c]=1;
for(int j=0; j<3; j++)
{
memset(nDP,0,sizeof nDP);
for(int i=0; i<(1<<n); i++)
{
if(!DP[i]) continue;
for(auto x:G[i]) nDP[x]=1;
}
for(int i=0;i<(1<<n);i++) DP[i]=nDP[i];
for(int i=0;i<(1<<n);i++)
{
if(DP[i]) G2[c][(j+1)%3].pb(i);
}
}
}
}
for(int i=0;i<k;i++)
{
int x,y;
cin>>x>>y;
S.insert(y);
M[y].pb(x);
}
S.insert(m);
memset(DP,0,sizeof DP);
memset(nDP,0,sizeof nDP);
DP[0]=1;
int l=1;
for(auto p:S)
{
int X=0;
for(auto c:M[p]) X|=(1<<(c-1));
if(p-l>15)
{
if(n>3)
{
vector<bool>is(3,0);
for(int i=0; i<(1<<n); i++)
{
if(DP[i]) is[__builtin_popcount(i)%3]=1;
}
for(int i=0; i<(1<<n); i++)
{
if(is[((p-l)%3*n%3+__builtin_popcount(i))%3]) DP[i]=1;
else DP[i]=0;
}
}
else if(n==3)
{
memset(nDP,0,sizeof nDP);
for(int i=0;i<(1<<n);i++)
{
if(!DP[i]) continue;
for(auto x:G3[i][(p-l)%2]) nDP[x]=1;
}
for(int i=0;i<(1<<n);i++) DP[i]=nDP[i];
}
else if(n==2)
{
memset(nDP,0,sizeof nDP);
for(int i=0;i<(1<<n);i++)
{
if(!DP[i]) continue;
for(auto x:G2[i][(p-l)%3]) nDP[x]=1;
}
for(int i=0;i<(1<<n);i++) DP[i]=nDP[i];
}
}
else
{
for(int j=0;j<p-l;j++)
{
memset(nDP,0,sizeof nDP);
for(int i=0; i<(1<<n); i++)
{
if(!DP[i]) continue;
for(auto x:G[i]) nDP[x]=1;
}
for(int i=0;i<(1<<n);i++) DP[i]=nDP[i];
}
}
memset(nDP,0,sizeof nDP);
for(int i=0;i<(1<<n);i++)
{
if(DP[i]&&!(i&X)) nDP[i|X]=1;
}
for(int i=0;i<(1<<n);i++) DP[i]=nDP[i];
l=p;
}
if(DP[(1<<n)-1]) cout<<"YES";
else cout<<"NO";
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
596 KB |
Output is correct |
2 |
Correct |
1 ms |
596 KB |
Output is correct |
3 |
Correct |
1 ms |
596 KB |
Output is correct |
4 |
Correct |
1 ms |
724 KB |
Output is correct |
5 |
Correct |
1 ms |
724 KB |
Output is correct |
6 |
Correct |
1 ms |
724 KB |
Output is correct |
7 |
Correct |
1 ms |
724 KB |
Output is correct |
8 |
Correct |
78 ms |
4068 KB |
Output is correct |
9 |
Correct |
20 ms |
1956 KB |
Output is correct |
10 |
Correct |
2 ms |
852 KB |
Output is correct |
11 |
Correct |
75 ms |
4032 KB |
Output is correct |
12 |
Correct |
7 ms |
1108 KB |
Output is correct |
13 |
Correct |
1 ms |
596 KB |
Output is correct |
14 |
Correct |
1 ms |
724 KB |
Output is correct |
15 |
Correct |
78 ms |
4076 KB |
Output is correct |
16 |
Correct |
1105 ms |
9680 KB |
Output is correct |
17 |
Correct |
11 ms |
1108 KB |
Output is correct |
18 |
Correct |
258 ms |
4108 KB |
Output is correct |
19 |
Correct |
2 ms |
724 KB |
Output is correct |
20 |
Correct |
791 ms |
9804 KB |
Output is correct |
21 |
Correct |
253 ms |
4128 KB |
Output is correct |
22 |
Correct |
1 ms |
772 KB |
Output is correct |
23 |
Correct |
2 ms |
724 KB |
Output is correct |
24 |
Correct |
1 ms |
724 KB |
Output is correct |
25 |
Correct |
381 ms |
9592 KB |
Output is correct |
26 |
Correct |
732 ms |
9656 KB |
Output is correct |
27 |
Correct |
1 ms |
692 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
724 KB |
Output is correct |
2 |
Correct |
1 ms |
664 KB |
Output is correct |
3 |
Correct |
1 ms |
596 KB |
Output is correct |
4 |
Correct |
1 ms |
724 KB |
Output is correct |
5 |
Correct |
72 ms |
4072 KB |
Output is correct |
6 |
Correct |
20 ms |
1888 KB |
Output is correct |
7 |
Correct |
6 ms |
1108 KB |
Output is correct |
8 |
Correct |
2 ms |
724 KB |
Output is correct |
9 |
Correct |
1 ms |
596 KB |
Output is correct |
10 |
Correct |
1 ms |
724 KB |
Output is correct |
11 |
Correct |
1 ms |
596 KB |
Output is correct |
12 |
Correct |
1 ms |
596 KB |
Output is correct |
13 |
Correct |
1 ms |
596 KB |
Output is correct |
14 |
Correct |
1 ms |
724 KB |
Output is correct |
15 |
Correct |
1 ms |
724 KB |
Output is correct |
16 |
Correct |
1 ms |
716 KB |
Output is correct |
17 |
Correct |
1 ms |
596 KB |
Output is correct |
18 |
Correct |
266 ms |
9572 KB |
Output is correct |
19 |
Correct |
248 ms |
9564 KB |
Output is correct |
20 |
Correct |
1 ms |
724 KB |
Output is correct |
21 |
Correct |
1 ms |
724 KB |
Output is correct |
22 |
Correct |
3 ms |
852 KB |
Output is correct |
23 |
Correct |
2 ms |
852 KB |
Output is correct |
24 |
Correct |
3 ms |
852 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
596 KB |
Output is correct |
2 |
Correct |
1 ms |
596 KB |
Output is correct |
3 |
Correct |
1 ms |
596 KB |
Output is correct |
4 |
Correct |
1 ms |
596 KB |
Output is correct |
5 |
Correct |
1 ms |
724 KB |
Output is correct |
6 |
Correct |
1 ms |
596 KB |
Output is correct |
7 |
Correct |
0 ms |
596 KB |
Output is correct |
8 |
Correct |
1 ms |
596 KB |
Output is correct |
9 |
Correct |
1 ms |
724 KB |
Output is correct |
10 |
Correct |
1 ms |
596 KB |
Output is correct |
11 |
Correct |
1 ms |
724 KB |
Output is correct |
12 |
Correct |
1 ms |
724 KB |
Output is correct |
13 |
Correct |
1 ms |
596 KB |
Output is correct |
14 |
Correct |
1 ms |
724 KB |
Output is correct |
15 |
Correct |
1 ms |
724 KB |
Output is correct |
16 |
Correct |
1 ms |
596 KB |
Output is correct |
17 |
Correct |
1 ms |
724 KB |
Output is correct |
18 |
Correct |
1 ms |
596 KB |
Output is correct |
19 |
Correct |
1 ms |
712 KB |
Output is correct |
20 |
Correct |
1 ms |
724 KB |
Output is correct |
21 |
Correct |
1 ms |
724 KB |
Output is correct |
22 |
Correct |
1 ms |
724 KB |
Output is correct |
23 |
Correct |
1 ms |
724 KB |
Output is correct |
24 |
Correct |
1 ms |
724 KB |
Output is correct |
25 |
Correct |
1 ms |
724 KB |
Output is correct |
26 |
Correct |
1 ms |
724 KB |
Output is correct |
27 |
Correct |
1 ms |
724 KB |
Output is correct |
28 |
Correct |
1 ms |
724 KB |
Output is correct |
29 |
Correct |
1 ms |
596 KB |
Output is correct |
30 |
Correct |
1 ms |
708 KB |
Output is correct |
31 |
Correct |
1 ms |
724 KB |
Output is correct |
32 |
Correct |
1 ms |
724 KB |
Output is correct |
33 |
Correct |
1 ms |
724 KB |
Output is correct |
34 |
Correct |
1 ms |
724 KB |
Output is correct |
35 |
Correct |
1 ms |
724 KB |
Output is correct |
36 |
Correct |
1 ms |
712 KB |
Output is correct |
37 |
Correct |
1 ms |
724 KB |
Output is correct |
38 |
Correct |
1 ms |
724 KB |
Output is correct |
39 |
Correct |
1 ms |
724 KB |
Output is correct |
40 |
Correct |
1 ms |
724 KB |
Output is correct |
41 |
Correct |
1 ms |
708 KB |
Output is correct |
42 |
Correct |
1 ms |
724 KB |
Output is correct |
43 |
Correct |
1 ms |
724 KB |
Output is correct |
44 |
Correct |
1 ms |
724 KB |
Output is correct |
45 |
Correct |
1 ms |
724 KB |
Output is correct |
46 |
Correct |
1 ms |
724 KB |
Output is correct |
47 |
Correct |
1 ms |
716 KB |
Output is correct |
48 |
Correct |
1 ms |
724 KB |
Output is correct |
49 |
Correct |
1 ms |
712 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
724 KB |
Output is correct |
2 |
Correct |
1 ms |
724 KB |
Output is correct |
3 |
Correct |
1 ms |
724 KB |
Output is correct |
4 |
Correct |
1 ms |
724 KB |
Output is correct |
5 |
Correct |
1 ms |
724 KB |
Output is correct |
6 |
Correct |
1 ms |
724 KB |
Output is correct |
7 |
Correct |
1 ms |
596 KB |
Output is correct |
8 |
Correct |
1 ms |
724 KB |
Output is correct |
9 |
Correct |
1 ms |
724 KB |
Output is correct |
10 |
Correct |
1 ms |
724 KB |
Output is correct |
11 |
Correct |
1 ms |
724 KB |
Output is correct |
12 |
Correct |
1 ms |
724 KB |
Output is correct |
13 |
Correct |
1 ms |
724 KB |
Output is correct |
14 |
Correct |
1 ms |
724 KB |
Output is correct |
15 |
Correct |
1 ms |
724 KB |
Output is correct |
16 |
Correct |
1 ms |
724 KB |
Output is correct |
17 |
Correct |
1 ms |
724 KB |
Output is correct |
18 |
Correct |
1 ms |
724 KB |
Output is correct |
19 |
Correct |
1 ms |
724 KB |
Output is correct |
20 |
Correct |
1 ms |
724 KB |
Output is correct |
21 |
Correct |
1 ms |
724 KB |
Output is correct |
22 |
Correct |
1 ms |
724 KB |
Output is correct |
23 |
Correct |
1 ms |
724 KB |
Output is correct |
24 |
Correct |
1 ms |
724 KB |
Output is correct |
25 |
Correct |
1 ms |
724 KB |
Output is correct |
26 |
Correct |
1 ms |
724 KB |
Output is correct |
27 |
Correct |
1 ms |
724 KB |
Output is correct |
28 |
Correct |
1 ms |
644 KB |
Output is correct |
29 |
Correct |
1 ms |
724 KB |
Output is correct |
30 |
Correct |
1 ms |
724 KB |
Output is correct |
31 |
Correct |
1 ms |
724 KB |
Output is correct |
32 |
Correct |
1 ms |
724 KB |
Output is correct |
33 |
Correct |
1 ms |
724 KB |
Output is correct |
34 |
Correct |
2 ms |
724 KB |
Output is correct |
35 |
Correct |
2 ms |
724 KB |
Output is correct |
36 |
Correct |
1 ms |
724 KB |
Output is correct |
37 |
Correct |
1 ms |
724 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
724 KB |
Output is correct |
2 |
Correct |
1 ms |
724 KB |
Output is correct |
3 |
Correct |
1 ms |
724 KB |
Output is correct |
4 |
Correct |
79 ms |
4088 KB |
Output is correct |
5 |
Correct |
23 ms |
1880 KB |
Output is correct |
6 |
Correct |
25 ms |
1916 KB |
Output is correct |
7 |
Correct |
8 ms |
1108 KB |
Output is correct |
8 |
Correct |
8 ms |
1220 KB |
Output is correct |
9 |
Correct |
9 ms |
1160 KB |
Output is correct |
10 |
Correct |
10 ms |
1196 KB |
Output is correct |
11 |
Correct |
76 ms |
4100 KB |
Output is correct |
12 |
Correct |
22 ms |
1920 KB |
Output is correct |
13 |
Correct |
2 ms |
852 KB |
Output is correct |
14 |
Correct |
70 ms |
4028 KB |
Output is correct |
15 |
Correct |
1 ms |
724 KB |
Output is correct |
16 |
Correct |
1 ms |
724 KB |
Output is correct |
17 |
Correct |
10 ms |
1108 KB |
Output is correct |
18 |
Correct |
2 ms |
724 KB |
Output is correct |
19 |
Correct |
3 ms |
932 KB |
Output is correct |
20 |
Correct |
84 ms |
4028 KB |
Output is correct |
21 |
Correct |
24 ms |
2004 KB |
Output is correct |
22 |
Correct |
2 ms |
724 KB |
Output is correct |
23 |
Correct |
3 ms |
852 KB |
Output is correct |
24 |
Correct |
263 ms |
9676 KB |
Output is correct |
25 |
Correct |
81 ms |
4120 KB |
Output is correct |
26 |
Correct |
265 ms |
9696 KB |
Output is correct |
27 |
Correct |
260 ms |
9684 KB |
Output is correct |
28 |
Correct |
286 ms |
9628 KB |
Output is correct |
29 |
Correct |
290 ms |
9824 KB |
Output is correct |
30 |
Correct |
443 ms |
9764 KB |
Output is correct |
31 |
Correct |
263 ms |
9784 KB |
Output is correct |
32 |
Correct |
304 ms |
9672 KB |
Output is correct |
33 |
Correct |
81 ms |
4028 KB |
Output is correct |
34 |
Correct |
278 ms |
9676 KB |
Output is correct |
35 |
Correct |
315 ms |
9688 KB |
Output is correct |
36 |
Correct |
279 ms |
9632 KB |
Output is correct |
37 |
Correct |
104 ms |
4072 KB |
Output is correct |
38 |
Correct |
97 ms |
4040 KB |
Output is correct |
39 |
Correct |
29 ms |
2004 KB |
Output is correct |
40 |
Correct |
289 ms |
9680 KB |
Output is correct |
41 |
Correct |
28 ms |
1956 KB |
Output is correct |
42 |
Correct |
267 ms |
9608 KB |
Output is correct |
43 |
Correct |
576 ms |
9692 KB |
Output is correct |
44 |
Correct |
323 ms |
9680 KB |
Output is correct |
45 |
Correct |
274 ms |
9792 KB |
Output is correct |
46 |
Correct |
80 ms |
4104 KB |
Output is correct |
47 |
Correct |
2962 ms |
9696 KB |
Output is correct |
48 |
Correct |
2387 ms |
9696 KB |
Output is correct |
49 |
Correct |
832 ms |
9784 KB |
Output is correct |
50 |
Correct |
102 ms |
2004 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
596 KB |
Output is correct |
2 |
Correct |
1 ms |
596 KB |
Output is correct |
3 |
Correct |
1 ms |
596 KB |
Output is correct |
4 |
Correct |
1 ms |
724 KB |
Output is correct |
5 |
Correct |
1 ms |
724 KB |
Output is correct |
6 |
Correct |
1 ms |
724 KB |
Output is correct |
7 |
Correct |
1 ms |
724 KB |
Output is correct |
8 |
Correct |
78 ms |
4068 KB |
Output is correct |
9 |
Correct |
20 ms |
1956 KB |
Output is correct |
10 |
Correct |
2 ms |
852 KB |
Output is correct |
11 |
Correct |
75 ms |
4032 KB |
Output is correct |
12 |
Correct |
7 ms |
1108 KB |
Output is correct |
13 |
Correct |
1 ms |
596 KB |
Output is correct |
14 |
Correct |
1 ms |
724 KB |
Output is correct |
15 |
Correct |
78 ms |
4076 KB |
Output is correct |
16 |
Correct |
1105 ms |
9680 KB |
Output is correct |
17 |
Correct |
11 ms |
1108 KB |
Output is correct |
18 |
Correct |
258 ms |
4108 KB |
Output is correct |
19 |
Correct |
2 ms |
724 KB |
Output is correct |
20 |
Correct |
791 ms |
9804 KB |
Output is correct |
21 |
Correct |
253 ms |
4128 KB |
Output is correct |
22 |
Correct |
1 ms |
772 KB |
Output is correct |
23 |
Correct |
2 ms |
724 KB |
Output is correct |
24 |
Correct |
1 ms |
724 KB |
Output is correct |
25 |
Correct |
381 ms |
9592 KB |
Output is correct |
26 |
Correct |
732 ms |
9656 KB |
Output is correct |
27 |
Correct |
1 ms |
692 KB |
Output is correct |
28 |
Correct |
1 ms |
724 KB |
Output is correct |
29 |
Correct |
1 ms |
664 KB |
Output is correct |
30 |
Correct |
1 ms |
596 KB |
Output is correct |
31 |
Correct |
1 ms |
724 KB |
Output is correct |
32 |
Correct |
72 ms |
4072 KB |
Output is correct |
33 |
Correct |
20 ms |
1888 KB |
Output is correct |
34 |
Correct |
6 ms |
1108 KB |
Output is correct |
35 |
Correct |
2 ms |
724 KB |
Output is correct |
36 |
Correct |
1 ms |
596 KB |
Output is correct |
37 |
Correct |
1 ms |
724 KB |
Output is correct |
38 |
Correct |
1 ms |
596 KB |
Output is correct |
39 |
Correct |
1 ms |
596 KB |
Output is correct |
40 |
Correct |
1 ms |
596 KB |
Output is correct |
41 |
Correct |
1 ms |
724 KB |
Output is correct |
42 |
Correct |
1 ms |
724 KB |
Output is correct |
43 |
Correct |
1 ms |
716 KB |
Output is correct |
44 |
Correct |
1 ms |
596 KB |
Output is correct |
45 |
Correct |
266 ms |
9572 KB |
Output is correct |
46 |
Correct |
248 ms |
9564 KB |
Output is correct |
47 |
Correct |
1 ms |
724 KB |
Output is correct |
48 |
Correct |
1 ms |
724 KB |
Output is correct |
49 |
Correct |
3 ms |
852 KB |
Output is correct |
50 |
Correct |
2 ms |
852 KB |
Output is correct |
51 |
Correct |
3 ms |
852 KB |
Output is correct |
52 |
Correct |
1 ms |
596 KB |
Output is correct |
53 |
Correct |
1 ms |
596 KB |
Output is correct |
54 |
Correct |
1 ms |
596 KB |
Output is correct |
55 |
Correct |
1 ms |
596 KB |
Output is correct |
56 |
Correct |
1 ms |
724 KB |
Output is correct |
57 |
Correct |
1 ms |
596 KB |
Output is correct |
58 |
Correct |
0 ms |
596 KB |
Output is correct |
59 |
Correct |
1 ms |
596 KB |
Output is correct |
60 |
Correct |
1 ms |
724 KB |
Output is correct |
61 |
Correct |
1 ms |
596 KB |
Output is correct |
62 |
Correct |
1 ms |
724 KB |
Output is correct |
63 |
Correct |
1 ms |
724 KB |
Output is correct |
64 |
Correct |
1 ms |
596 KB |
Output is correct |
65 |
Correct |
1 ms |
724 KB |
Output is correct |
66 |
Correct |
1 ms |
724 KB |
Output is correct |
67 |
Correct |
1 ms |
596 KB |
Output is correct |
68 |
Correct |
1 ms |
724 KB |
Output is correct |
69 |
Correct |
1 ms |
596 KB |
Output is correct |
70 |
Correct |
1 ms |
712 KB |
Output is correct |
71 |
Correct |
1 ms |
724 KB |
Output is correct |
72 |
Correct |
1 ms |
724 KB |
Output is correct |
73 |
Correct |
1 ms |
724 KB |
Output is correct |
74 |
Correct |
1 ms |
724 KB |
Output is correct |
75 |
Correct |
1 ms |
724 KB |
Output is correct |
76 |
Correct |
1 ms |
724 KB |
Output is correct |
77 |
Correct |
1 ms |
724 KB |
Output is correct |
78 |
Correct |
1 ms |
724 KB |
Output is correct |
79 |
Correct |
1 ms |
724 KB |
Output is correct |
80 |
Correct |
1 ms |
596 KB |
Output is correct |
81 |
Correct |
1 ms |
708 KB |
Output is correct |
82 |
Correct |
1 ms |
724 KB |
Output is correct |
83 |
Correct |
1 ms |
724 KB |
Output is correct |
84 |
Correct |
1 ms |
724 KB |
Output is correct |
85 |
Correct |
1 ms |
724 KB |
Output is correct |
86 |
Correct |
1 ms |
724 KB |
Output is correct |
87 |
Correct |
1 ms |
712 KB |
Output is correct |
88 |
Correct |
1 ms |
724 KB |
Output is correct |
89 |
Correct |
1 ms |
724 KB |
Output is correct |
90 |
Correct |
1 ms |
724 KB |
Output is correct |
91 |
Correct |
1 ms |
724 KB |
Output is correct |
92 |
Correct |
1 ms |
708 KB |
Output is correct |
93 |
Correct |
1 ms |
724 KB |
Output is correct |
94 |
Correct |
1 ms |
724 KB |
Output is correct |
95 |
Correct |
1 ms |
724 KB |
Output is correct |
96 |
Correct |
1 ms |
724 KB |
Output is correct |
97 |
Correct |
1 ms |
724 KB |
Output is correct |
98 |
Correct |
1 ms |
716 KB |
Output is correct |
99 |
Correct |
1 ms |
724 KB |
Output is correct |
100 |
Correct |
1 ms |
712 KB |
Output is correct |
101 |
Correct |
1 ms |
724 KB |
Output is correct |
102 |
Correct |
1 ms |
724 KB |
Output is correct |
103 |
Correct |
1 ms |
724 KB |
Output is correct |
104 |
Correct |
1 ms |
724 KB |
Output is correct |
105 |
Correct |
1 ms |
724 KB |
Output is correct |
106 |
Correct |
1 ms |
724 KB |
Output is correct |
107 |
Correct |
1 ms |
596 KB |
Output is correct |
108 |
Correct |
1 ms |
724 KB |
Output is correct |
109 |
Correct |
1 ms |
724 KB |
Output is correct |
110 |
Correct |
1 ms |
724 KB |
Output is correct |
111 |
Correct |
1 ms |
724 KB |
Output is correct |
112 |
Correct |
1 ms |
724 KB |
Output is correct |
113 |
Correct |
1 ms |
724 KB |
Output is correct |
114 |
Correct |
1 ms |
724 KB |
Output is correct |
115 |
Correct |
1 ms |
724 KB |
Output is correct |
116 |
Correct |
1 ms |
724 KB |
Output is correct |
117 |
Correct |
1 ms |
724 KB |
Output is correct |
118 |
Correct |
1 ms |
724 KB |
Output is correct |
119 |
Correct |
1 ms |
724 KB |
Output is correct |
120 |
Correct |
1 ms |
724 KB |
Output is correct |
121 |
Correct |
1 ms |
724 KB |
Output is correct |
122 |
Correct |
1 ms |
724 KB |
Output is correct |
123 |
Correct |
1 ms |
724 KB |
Output is correct |
124 |
Correct |
1 ms |
724 KB |
Output is correct |
125 |
Correct |
1 ms |
724 KB |
Output is correct |
126 |
Correct |
1 ms |
724 KB |
Output is correct |
127 |
Correct |
1 ms |
724 KB |
Output is correct |
128 |
Correct |
1 ms |
644 KB |
Output is correct |
129 |
Correct |
1 ms |
724 KB |
Output is correct |
130 |
Correct |
1 ms |
724 KB |
Output is correct |
131 |
Correct |
1 ms |
724 KB |
Output is correct |
132 |
Correct |
1 ms |
724 KB |
Output is correct |
133 |
Correct |
1 ms |
724 KB |
Output is correct |
134 |
Correct |
2 ms |
724 KB |
Output is correct |
135 |
Correct |
2 ms |
724 KB |
Output is correct |
136 |
Correct |
1 ms |
724 KB |
Output is correct |
137 |
Correct |
1 ms |
724 KB |
Output is correct |
138 |
Correct |
1 ms |
724 KB |
Output is correct |
139 |
Correct |
1 ms |
724 KB |
Output is correct |
140 |
Correct |
1 ms |
724 KB |
Output is correct |
141 |
Correct |
79 ms |
4088 KB |
Output is correct |
142 |
Correct |
23 ms |
1880 KB |
Output is correct |
143 |
Correct |
25 ms |
1916 KB |
Output is correct |
144 |
Correct |
8 ms |
1108 KB |
Output is correct |
145 |
Correct |
8 ms |
1220 KB |
Output is correct |
146 |
Correct |
9 ms |
1160 KB |
Output is correct |
147 |
Correct |
10 ms |
1196 KB |
Output is correct |
148 |
Correct |
76 ms |
4100 KB |
Output is correct |
149 |
Correct |
22 ms |
1920 KB |
Output is correct |
150 |
Correct |
2 ms |
852 KB |
Output is correct |
151 |
Correct |
70 ms |
4028 KB |
Output is correct |
152 |
Correct |
1 ms |
724 KB |
Output is correct |
153 |
Correct |
1 ms |
724 KB |
Output is correct |
154 |
Correct |
10 ms |
1108 KB |
Output is correct |
155 |
Correct |
2 ms |
724 KB |
Output is correct |
156 |
Correct |
3 ms |
932 KB |
Output is correct |
157 |
Correct |
84 ms |
4028 KB |
Output is correct |
158 |
Correct |
24 ms |
2004 KB |
Output is correct |
159 |
Correct |
2 ms |
724 KB |
Output is correct |
160 |
Correct |
3 ms |
852 KB |
Output is correct |
161 |
Correct |
263 ms |
9676 KB |
Output is correct |
162 |
Correct |
81 ms |
4120 KB |
Output is correct |
163 |
Correct |
265 ms |
9696 KB |
Output is correct |
164 |
Correct |
260 ms |
9684 KB |
Output is correct |
165 |
Correct |
286 ms |
9628 KB |
Output is correct |
166 |
Correct |
290 ms |
9824 KB |
Output is correct |
167 |
Correct |
443 ms |
9764 KB |
Output is correct |
168 |
Correct |
263 ms |
9784 KB |
Output is correct |
169 |
Correct |
304 ms |
9672 KB |
Output is correct |
170 |
Correct |
81 ms |
4028 KB |
Output is correct |
171 |
Correct |
278 ms |
9676 KB |
Output is correct |
172 |
Correct |
315 ms |
9688 KB |
Output is correct |
173 |
Correct |
279 ms |
9632 KB |
Output is correct |
174 |
Correct |
104 ms |
4072 KB |
Output is correct |
175 |
Correct |
97 ms |
4040 KB |
Output is correct |
176 |
Correct |
29 ms |
2004 KB |
Output is correct |
177 |
Correct |
289 ms |
9680 KB |
Output is correct |
178 |
Correct |
28 ms |
1956 KB |
Output is correct |
179 |
Correct |
267 ms |
9608 KB |
Output is correct |
180 |
Correct |
576 ms |
9692 KB |
Output is correct |
181 |
Correct |
323 ms |
9680 KB |
Output is correct |
182 |
Correct |
274 ms |
9792 KB |
Output is correct |
183 |
Correct |
80 ms |
4104 KB |
Output is correct |
184 |
Correct |
2962 ms |
9696 KB |
Output is correct |
185 |
Correct |
2387 ms |
9696 KB |
Output is correct |
186 |
Correct |
832 ms |
9784 KB |
Output is correct |
187 |
Correct |
102 ms |
2004 KB |
Output is correct |
188 |
Correct |
258 ms |
9564 KB |
Output is correct |
189 |
Correct |
1 ms |
596 KB |
Output is correct |
190 |
Correct |
1 ms |
724 KB |
Output is correct |
191 |
Correct |
1 ms |
724 KB |
Output is correct |
192 |
Correct |
2 ms |
724 KB |
Output is correct |
193 |
Correct |
1 ms |
724 KB |
Output is correct |
194 |
Correct |
1 ms |
724 KB |
Output is correct |
195 |
Correct |
1 ms |
724 KB |
Output is correct |
196 |
Correct |
1 ms |
596 KB |
Output is correct |
197 |
Correct |
1 ms |
724 KB |
Output is correct |
198 |
Correct |
1 ms |
724 KB |
Output is correct |
199 |
Correct |
24 ms |
1988 KB |
Output is correct |
200 |
Correct |
1 ms |
712 KB |
Output is correct |
201 |
Correct |
7 ms |
1228 KB |
Output is correct |
202 |
Correct |
9 ms |
1100 KB |
Output is correct |
203 |
Correct |
1 ms |
724 KB |
Output is correct |
204 |
Correct |
1 ms |
724 KB |
Output is correct |
205 |
Correct |
1 ms |
724 KB |
Output is correct |
206 |
Correct |
1 ms |
724 KB |
Output is correct |
207 |
Correct |
1 ms |
724 KB |
Output is correct |
208 |
Correct |
1448 ms |
9728 KB |
Output is correct |
209 |
Correct |
1770 ms |
9688 KB |
Output is correct |
210 |
Correct |
1 ms |
724 KB |
Output is correct |
211 |
Correct |
3 ms |
724 KB |
Output is correct |
212 |
Correct |
77 ms |
4048 KB |
Output is correct |
213 |
Correct |
1 ms |
724 KB |
Output is correct |
214 |
Correct |
4 ms |
852 KB |
Output is correct |
215 |
Correct |
1 ms |
724 KB |
Output is correct |
216 |
Correct |
261 ms |
9672 KB |
Output is correct |
217 |
Correct |
281 ms |
9676 KB |
Output is correct |
218 |
Correct |
2 ms |
672 KB |
Output is correct |
219 |
Correct |
1 ms |
724 KB |
Output is correct |
220 |
Correct |
1 ms |
724 KB |
Output is correct |
221 |
Correct |
1 ms |
724 KB |
Output is correct |
222 |
Correct |
1 ms |
724 KB |
Output is correct |
223 |
Correct |
1 ms |
716 KB |
Output is correct |
224 |
Correct |
3105 ms |
9696 KB |
Output is correct |
225 |
Correct |
1 ms |
724 KB |
Output is correct |
226 |
Correct |
1 ms |
712 KB |
Output is correct |
227 |
Correct |
1 ms |
724 KB |
Output is correct |
228 |
Correct |
295 ms |
9676 KB |
Output is correct |
229 |
Correct |
254 ms |
9664 KB |
Output is correct |
230 |
Correct |
252 ms |
9556 KB |
Output is correct |
231 |
Correct |
258 ms |
9676 KB |
Output is correct |
232 |
Correct |
1 ms |
724 KB |
Output is correct |
233 |
Correct |
1 ms |
724 KB |
Output is correct |
234 |
Correct |
285 ms |
9628 KB |
Output is correct |
235 |
Correct |
1 ms |
724 KB |
Output is correct |
236 |
Correct |
84 ms |
4056 KB |
Output is correct |
237 |
Correct |
1 ms |
724 KB |
Output is correct |
238 |
Correct |
1 ms |
716 KB |
Output is correct |
239 |
Correct |
27 ms |
1984 KB |
Output is correct |
240 |
Correct |
259 ms |
9580 KB |
Output is correct |
241 |
Correct |
1 ms |
724 KB |
Output is correct |
242 |
Correct |
1 ms |
724 KB |
Output is correct |
243 |
Correct |
1 ms |
712 KB |
Output is correct |
244 |
Correct |
1 ms |
712 KB |
Output is correct |
245 |
Correct |
71 ms |
4064 KB |
Output is correct |