# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1066233 |
2024-08-19T16:47:55 Z |
Dennis_Jason |
Maze (JOI23_ho_t3) |
C++14 |
|
491 ms |
123744 KB |
#include <bits/stdc++.h>
#define NMAX 1010
//#define int long long
#define pb push_back
#define eb emplace_back
#define MOD 1000000007
#define nl '\n'
#define INF 1000000007
#define LLONG_MAX 9223372036854775807
#define pii pair<int,int>
#define tpl tuple<int,int,int,int>
//#pragma GCC optimize("O3")
using namespace std;
ifstream fin("aib.in");
ofstream fout("aib.out");
/*
*
*
----------------DEMONSTRATION-------------------
1 2 2 3 4 2
1 2 3 4 5 6
1 2 3 4 5 6
1 2 3 4 5 6
1 2 4 5
---------------------END------------------------
*/
int r,c,n;
int i_s,j_s,i_f,j_f;
int di[]={1,-1,0,0};
int dj[]={0,0,1,-1};
bool inmat(int i,int j)
{
return i>=1 && i<=r && j>=1 && j<=c;
}
signed main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cin>>r>>c>>n;
cin>>i_s>>j_s;
cin>>i_f>>j_f;
vector<vector<int>>mat(r+1,vector<int>(c+1));
vector<vector<int>>dist(r+1,vector<int>(c+1,-1));
queue<tpl>white,black;
for(int i=1;i<=r;++i)
{
for(int j=1;j<=c;++j)
{
char x;
cin>>x;
if(x=='.')
{
mat[i][j]=0;
}
else
{
mat[i][j]=1;
}
}
}
dist[i_s][j_s]=0;
white.push({i_s,j_s,0,0});
while(!white.empty() || !black.empty())
{
while(!black.empty())
{
auto [i,j,x,y]=black.front();
black.pop();
// cout<<i<<" "<<j<<"b"<<nl;
if(x==0 || y==0)
{
white.push({i,j,0,0});
}
for(int d=0;d<4;++d)
{
int inou=i+di[d];
int jnou=j+dj[d];
int pas_x=x-abs(di[d]);
int pas_y=y-abs(dj[d]);
if((pas_x>=0 && pas_y>=0)&& inmat(inou,jnou) && dist[inou][jnou]==-1)
{
dist[inou][jnou]=dist[i][j];
black.push({inou,jnou,pas_x,pas_y});
}
}
}
while(!white.empty())
{
auto [i,j,x,y]=white.front();
white.pop();
// cout<<i<<" "<<j<<"w"<<nl;
for(int d=0;d<4;++d)
{
int inou=i+di[d];
int jnou=j+dj[d];
if(inmat(inou,jnou) && dist[inou][jnou]==-1)
{
if(mat[inou][jnou]==1)
{
dist[inou][jnou]=dist[i][j]+1;
black.push({inou,jnou,n-1,n-1});
}
else
{
dist[inou][jnou]=dist[i][j];
white.push({inou,jnou,0,0});
}
}
}
}
}
cout<<dist[i_f][j_f];
return 0;
}
Compilation message
Main.cpp:9: warning: "LLONG_MAX" redefined
9 | #define LLONG_MAX 9223372036854775807
|
In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/limits.h:195,
from /usr/lib/gcc/x86_64-linux-gnu/10/include/syslimits.h:7,
from /usr/lib/gcc/x86_64-linux-gnu/10/include/limits.h:34,
from /usr/include/c++/10/climits:42,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:39,
from Main.cpp:1:
/usr/include/limits.h:135: note: this is the location of the previous definition
135 | # define LLONG_MAX __LONG_LONG_MAX__
|
Main.cpp: In function 'int main()':
Main.cpp:69:18: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
69 | auto [i,j,x,y]=black.front();
| ^
Main.cpp:93:18: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
93 | auto [i,j,x,y]=white.front();
| ^
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
460 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
1 ms |
344 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
1 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
604 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
3 ms |
860 KB |
Output is correct |
20 |
Correct |
2 ms |
1188 KB |
Output is correct |
21 |
Correct |
2 ms |
860 KB |
Output is correct |
22 |
Correct |
4 ms |
860 KB |
Output is correct |
23 |
Correct |
4 ms |
860 KB |
Output is correct |
24 |
Correct |
2 ms |
1648 KB |
Output is correct |
25 |
Correct |
3 ms |
1524 KB |
Output is correct |
26 |
Correct |
4 ms |
860 KB |
Output is correct |
27 |
Correct |
4 ms |
1016 KB |
Output is correct |
28 |
Correct |
3 ms |
860 KB |
Output is correct |
29 |
Correct |
8 ms |
1628 KB |
Output is correct |
30 |
Correct |
3 ms |
1140 KB |
Output is correct |
31 |
Correct |
5 ms |
1824 KB |
Output is correct |
32 |
Correct |
8 ms |
1624 KB |
Output is correct |
33 |
Correct |
7 ms |
1628 KB |
Output is correct |
34 |
Correct |
5 ms |
3340 KB |
Output is correct |
35 |
Correct |
7 ms |
3344 KB |
Output is correct |
36 |
Correct |
9 ms |
1956 KB |
Output is correct |
37 |
Correct |
9 ms |
1884 KB |
Output is correct |
38 |
Correct |
7 ms |
1852 KB |
Output is correct |
39 |
Correct |
90 ms |
13808 KB |
Output is correct |
40 |
Correct |
9 ms |
2140 KB |
Output is correct |
41 |
Correct |
7 ms |
4232 KB |
Output is correct |
42 |
Correct |
11 ms |
2396 KB |
Output is correct |
43 |
Correct |
13 ms |
4040 KB |
Output is correct |
44 |
Correct |
30 ms |
8312 KB |
Output is correct |
45 |
Correct |
38 ms |
9192 KB |
Output is correct |
46 |
Correct |
54 ms |
13900 KB |
Output is correct |
47 |
Correct |
105 ms |
13788 KB |
Output is correct |
48 |
Correct |
77 ms |
13776 KB |
Output is correct |
49 |
Correct |
42 ms |
31220 KB |
Output is correct |
50 |
Correct |
57 ms |
31288 KB |
Output is correct |
51 |
Correct |
116 ms |
14256 KB |
Output is correct |
52 |
Correct |
95 ms |
13916 KB |
Output is correct |
53 |
Correct |
83 ms |
13660 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
360 KB |
Output is correct |
3 |
Correct |
1 ms |
344 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
348 KB |
Output is correct |
6 |
Correct |
1 ms |
344 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
1 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
1 ms |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
1 ms |
348 KB |
Output is correct |
19 |
Correct |
1 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
460 KB |
Output is correct |
21 |
Correct |
1 ms |
348 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
1 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
1 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
344 KB |
Output is correct |
10 |
Correct |
1 ms |
344 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
1 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
460 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
1 ms |
456 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
1 ms |
344 KB |
Output is correct |
25 |
Correct |
2 ms |
604 KB |
Output is correct |
26 |
Correct |
4 ms |
980 KB |
Output is correct |
27 |
Correct |
2 ms |
856 KB |
Output is correct |
28 |
Correct |
2 ms |
860 KB |
Output is correct |
29 |
Correct |
3 ms |
1016 KB |
Output is correct |
30 |
Correct |
4 ms |
1012 KB |
Output is correct |
31 |
Correct |
2 ms |
860 KB |
Output is correct |
32 |
Correct |
4 ms |
1012 KB |
Output is correct |
33 |
Correct |
3 ms |
992 KB |
Output is correct |
34 |
Correct |
6 ms |
1884 KB |
Output is correct |
35 |
Correct |
5 ms |
1828 KB |
Output is correct |
36 |
Correct |
5 ms |
1628 KB |
Output is correct |
37 |
Correct |
8 ms |
1628 KB |
Output is correct |
38 |
Correct |
7 ms |
1624 KB |
Output is correct |
39 |
Correct |
21 ms |
6348 KB |
Output is correct |
40 |
Correct |
64 ms |
17168 KB |
Output is correct |
41 |
Correct |
46 ms |
14016 KB |
Output is correct |
42 |
Correct |
44 ms |
13908 KB |
Output is correct |
43 |
Correct |
48 ms |
13764 KB |
Output is correct |
44 |
Correct |
48 ms |
13660 KB |
Output is correct |
45 |
Correct |
78 ms |
21732 KB |
Output is correct |
46 |
Correct |
81 ms |
21816 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
360 KB |
Output is correct |
3 |
Correct |
1 ms |
344 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
348 KB |
Output is correct |
6 |
Correct |
1 ms |
344 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
1 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
1 ms |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
1 ms |
348 KB |
Output is correct |
19 |
Correct |
1 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
460 KB |
Output is correct |
21 |
Correct |
1 ms |
348 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
1 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
1 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
33 |
Correct |
4 ms |
856 KB |
Output is correct |
34 |
Correct |
1 ms |
348 KB |
Output is correct |
35 |
Correct |
1 ms |
348 KB |
Output is correct |
36 |
Correct |
2 ms |
604 KB |
Output is correct |
37 |
Correct |
3 ms |
1184 KB |
Output is correct |
38 |
Correct |
3 ms |
1116 KB |
Output is correct |
39 |
Correct |
4 ms |
856 KB |
Output is correct |
40 |
Correct |
4 ms |
860 KB |
Output is correct |
41 |
Correct |
5 ms |
1024 KB |
Output is correct |
42 |
Correct |
2 ms |
860 KB |
Output is correct |
43 |
Correct |
2 ms |
856 KB |
Output is correct |
44 |
Correct |
2 ms |
860 KB |
Output is correct |
45 |
Correct |
2 ms |
1648 KB |
Output is correct |
46 |
Correct |
5 ms |
1648 KB |
Output is correct |
47 |
Correct |
3 ms |
1116 KB |
Output is correct |
48 |
Correct |
4 ms |
1036 KB |
Output is correct |
49 |
Correct |
3 ms |
860 KB |
Output is correct |
50 |
Correct |
3 ms |
860 KB |
Output is correct |
51 |
Correct |
3 ms |
860 KB |
Output is correct |
52 |
Correct |
3 ms |
860 KB |
Output is correct |
53 |
Correct |
4 ms |
856 KB |
Output is correct |
54 |
Correct |
6 ms |
1024 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
360 KB |
Output is correct |
3 |
Correct |
1 ms |
344 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
348 KB |
Output is correct |
6 |
Correct |
1 ms |
344 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
1 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
1 ms |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
1 ms |
348 KB |
Output is correct |
19 |
Correct |
1 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
460 KB |
Output is correct |
21 |
Correct |
1 ms |
348 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
1 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
1 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
33 |
Correct |
4 ms |
856 KB |
Output is correct |
34 |
Correct |
1 ms |
348 KB |
Output is correct |
35 |
Correct |
1 ms |
348 KB |
Output is correct |
36 |
Correct |
2 ms |
604 KB |
Output is correct |
37 |
Correct |
3 ms |
1184 KB |
Output is correct |
38 |
Correct |
3 ms |
1116 KB |
Output is correct |
39 |
Correct |
4 ms |
856 KB |
Output is correct |
40 |
Correct |
4 ms |
860 KB |
Output is correct |
41 |
Correct |
5 ms |
1024 KB |
Output is correct |
42 |
Correct |
2 ms |
860 KB |
Output is correct |
43 |
Correct |
2 ms |
856 KB |
Output is correct |
44 |
Correct |
2 ms |
860 KB |
Output is correct |
45 |
Correct |
2 ms |
1648 KB |
Output is correct |
46 |
Correct |
5 ms |
1648 KB |
Output is correct |
47 |
Correct |
3 ms |
1116 KB |
Output is correct |
48 |
Correct |
4 ms |
1036 KB |
Output is correct |
49 |
Correct |
3 ms |
860 KB |
Output is correct |
50 |
Correct |
3 ms |
860 KB |
Output is correct |
51 |
Correct |
3 ms |
860 KB |
Output is correct |
52 |
Correct |
3 ms |
860 KB |
Output is correct |
53 |
Correct |
4 ms |
856 KB |
Output is correct |
54 |
Correct |
6 ms |
1024 KB |
Output is correct |
55 |
Correct |
7 ms |
1836 KB |
Output is correct |
56 |
Correct |
4 ms |
1140 KB |
Output is correct |
57 |
Correct |
6 ms |
2012 KB |
Output is correct |
58 |
Correct |
10 ms |
1800 KB |
Output is correct |
59 |
Correct |
5 ms |
1628 KB |
Output is correct |
60 |
Correct |
9 ms |
1624 KB |
Output is correct |
61 |
Correct |
7 ms |
1628 KB |
Output is correct |
62 |
Correct |
5 ms |
1628 KB |
Output is correct |
63 |
Correct |
7 ms |
1792 KB |
Output is correct |
64 |
Correct |
5 ms |
1788 KB |
Output is correct |
65 |
Correct |
6 ms |
3344 KB |
Output is correct |
66 |
Correct |
7 ms |
3468 KB |
Output is correct |
67 |
Correct |
6 ms |
2556 KB |
Output is correct |
68 |
Correct |
6 ms |
1628 KB |
Output is correct |
69 |
Correct |
6 ms |
1844 KB |
Output is correct |
70 |
Correct |
6 ms |
1824 KB |
Output is correct |
71 |
Correct |
6 ms |
1628 KB |
Output is correct |
72 |
Correct |
8 ms |
1952 KB |
Output is correct |
73 |
Correct |
12 ms |
1752 KB |
Output is correct |
74 |
Correct |
7 ms |
1628 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
460 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
1 ms |
344 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
1 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
604 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
3 ms |
860 KB |
Output is correct |
20 |
Correct |
2 ms |
1188 KB |
Output is correct |
21 |
Correct |
2 ms |
860 KB |
Output is correct |
22 |
Correct |
4 ms |
860 KB |
Output is correct |
23 |
Correct |
4 ms |
860 KB |
Output is correct |
24 |
Correct |
2 ms |
1648 KB |
Output is correct |
25 |
Correct |
3 ms |
1524 KB |
Output is correct |
26 |
Correct |
4 ms |
860 KB |
Output is correct |
27 |
Correct |
4 ms |
1016 KB |
Output is correct |
28 |
Correct |
3 ms |
860 KB |
Output is correct |
29 |
Correct |
8 ms |
1628 KB |
Output is correct |
30 |
Correct |
3 ms |
1140 KB |
Output is correct |
31 |
Correct |
5 ms |
1824 KB |
Output is correct |
32 |
Correct |
8 ms |
1624 KB |
Output is correct |
33 |
Correct |
7 ms |
1628 KB |
Output is correct |
34 |
Correct |
5 ms |
3340 KB |
Output is correct |
35 |
Correct |
7 ms |
3344 KB |
Output is correct |
36 |
Correct |
9 ms |
1956 KB |
Output is correct |
37 |
Correct |
9 ms |
1884 KB |
Output is correct |
38 |
Correct |
7 ms |
1852 KB |
Output is correct |
39 |
Correct |
90 ms |
13808 KB |
Output is correct |
40 |
Correct |
9 ms |
2140 KB |
Output is correct |
41 |
Correct |
7 ms |
4232 KB |
Output is correct |
42 |
Correct |
11 ms |
2396 KB |
Output is correct |
43 |
Correct |
13 ms |
4040 KB |
Output is correct |
44 |
Correct |
30 ms |
8312 KB |
Output is correct |
45 |
Correct |
38 ms |
9192 KB |
Output is correct |
46 |
Correct |
54 ms |
13900 KB |
Output is correct |
47 |
Correct |
105 ms |
13788 KB |
Output is correct |
48 |
Correct |
77 ms |
13776 KB |
Output is correct |
49 |
Correct |
42 ms |
31220 KB |
Output is correct |
50 |
Correct |
57 ms |
31288 KB |
Output is correct |
51 |
Correct |
116 ms |
14256 KB |
Output is correct |
52 |
Correct |
95 ms |
13916 KB |
Output is correct |
53 |
Correct |
83 ms |
13660 KB |
Output is correct |
54 |
Correct |
0 ms |
348 KB |
Output is correct |
55 |
Correct |
1 ms |
360 KB |
Output is correct |
56 |
Correct |
1 ms |
344 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
1 ms |
348 KB |
Output is correct |
59 |
Correct |
1 ms |
344 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
348 KB |
Output is correct |
62 |
Correct |
1 ms |
348 KB |
Output is correct |
63 |
Correct |
1 ms |
348 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
0 ms |
348 KB |
Output is correct |
66 |
Correct |
0 ms |
348 KB |
Output is correct |
67 |
Correct |
0 ms |
348 KB |
Output is correct |
68 |
Correct |
1 ms |
348 KB |
Output is correct |
69 |
Correct |
1 ms |
348 KB |
Output is correct |
70 |
Correct |
0 ms |
348 KB |
Output is correct |
71 |
Correct |
1 ms |
348 KB |
Output is correct |
72 |
Correct |
1 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
460 KB |
Output is correct |
74 |
Correct |
1 ms |
348 KB |
Output is correct |
75 |
Correct |
1 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
348 KB |
Output is correct |
77 |
Correct |
1 ms |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
348 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
1 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
0 ms |
348 KB |
Output is correct |
84 |
Correct |
0 ms |
348 KB |
Output is correct |
85 |
Correct |
0 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
348 KB |
Output is correct |
87 |
Correct |
0 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
348 KB |
Output is correct |
89 |
Correct |
1 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
1 ms |
348 KB |
Output is correct |
92 |
Correct |
1 ms |
348 KB |
Output is correct |
93 |
Correct |
0 ms |
348 KB |
Output is correct |
94 |
Correct |
1 ms |
344 KB |
Output is correct |
95 |
Correct |
1 ms |
344 KB |
Output is correct |
96 |
Correct |
1 ms |
348 KB |
Output is correct |
97 |
Correct |
1 ms |
348 KB |
Output is correct |
98 |
Correct |
0 ms |
460 KB |
Output is correct |
99 |
Correct |
1 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
0 ms |
348 KB |
Output is correct |
102 |
Correct |
1 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
348 KB |
Output is correct |
104 |
Correct |
0 ms |
348 KB |
Output is correct |
105 |
Correct |
0 ms |
348 KB |
Output is correct |
106 |
Correct |
1 ms |
456 KB |
Output is correct |
107 |
Correct |
0 ms |
348 KB |
Output is correct |
108 |
Correct |
0 ms |
348 KB |
Output is correct |
109 |
Correct |
1 ms |
344 KB |
Output is correct |
110 |
Correct |
2 ms |
604 KB |
Output is correct |
111 |
Correct |
4 ms |
980 KB |
Output is correct |
112 |
Correct |
2 ms |
856 KB |
Output is correct |
113 |
Correct |
2 ms |
860 KB |
Output is correct |
114 |
Correct |
3 ms |
1016 KB |
Output is correct |
115 |
Correct |
4 ms |
1012 KB |
Output is correct |
116 |
Correct |
2 ms |
860 KB |
Output is correct |
117 |
Correct |
4 ms |
1012 KB |
Output is correct |
118 |
Correct |
3 ms |
992 KB |
Output is correct |
119 |
Correct |
6 ms |
1884 KB |
Output is correct |
120 |
Correct |
5 ms |
1828 KB |
Output is correct |
121 |
Correct |
5 ms |
1628 KB |
Output is correct |
122 |
Correct |
8 ms |
1628 KB |
Output is correct |
123 |
Correct |
7 ms |
1624 KB |
Output is correct |
124 |
Correct |
21 ms |
6348 KB |
Output is correct |
125 |
Correct |
64 ms |
17168 KB |
Output is correct |
126 |
Correct |
46 ms |
14016 KB |
Output is correct |
127 |
Correct |
44 ms |
13908 KB |
Output is correct |
128 |
Correct |
48 ms |
13764 KB |
Output is correct |
129 |
Correct |
48 ms |
13660 KB |
Output is correct |
130 |
Correct |
78 ms |
21732 KB |
Output is correct |
131 |
Correct |
81 ms |
21816 KB |
Output is correct |
132 |
Correct |
4 ms |
856 KB |
Output is correct |
133 |
Correct |
1 ms |
348 KB |
Output is correct |
134 |
Correct |
1 ms |
348 KB |
Output is correct |
135 |
Correct |
2 ms |
604 KB |
Output is correct |
136 |
Correct |
3 ms |
1184 KB |
Output is correct |
137 |
Correct |
3 ms |
1116 KB |
Output is correct |
138 |
Correct |
4 ms |
856 KB |
Output is correct |
139 |
Correct |
4 ms |
860 KB |
Output is correct |
140 |
Correct |
5 ms |
1024 KB |
Output is correct |
141 |
Correct |
2 ms |
860 KB |
Output is correct |
142 |
Correct |
2 ms |
856 KB |
Output is correct |
143 |
Correct |
2 ms |
860 KB |
Output is correct |
144 |
Correct |
2 ms |
1648 KB |
Output is correct |
145 |
Correct |
5 ms |
1648 KB |
Output is correct |
146 |
Correct |
3 ms |
1116 KB |
Output is correct |
147 |
Correct |
4 ms |
1036 KB |
Output is correct |
148 |
Correct |
3 ms |
860 KB |
Output is correct |
149 |
Correct |
3 ms |
860 KB |
Output is correct |
150 |
Correct |
3 ms |
860 KB |
Output is correct |
151 |
Correct |
3 ms |
860 KB |
Output is correct |
152 |
Correct |
4 ms |
856 KB |
Output is correct |
153 |
Correct |
6 ms |
1024 KB |
Output is correct |
154 |
Correct |
7 ms |
1836 KB |
Output is correct |
155 |
Correct |
4 ms |
1140 KB |
Output is correct |
156 |
Correct |
6 ms |
2012 KB |
Output is correct |
157 |
Correct |
10 ms |
1800 KB |
Output is correct |
158 |
Correct |
5 ms |
1628 KB |
Output is correct |
159 |
Correct |
9 ms |
1624 KB |
Output is correct |
160 |
Correct |
7 ms |
1628 KB |
Output is correct |
161 |
Correct |
5 ms |
1628 KB |
Output is correct |
162 |
Correct |
7 ms |
1792 KB |
Output is correct |
163 |
Correct |
5 ms |
1788 KB |
Output is correct |
164 |
Correct |
6 ms |
3344 KB |
Output is correct |
165 |
Correct |
7 ms |
3468 KB |
Output is correct |
166 |
Correct |
6 ms |
2556 KB |
Output is correct |
167 |
Correct |
6 ms |
1628 KB |
Output is correct |
168 |
Correct |
6 ms |
1844 KB |
Output is correct |
169 |
Correct |
6 ms |
1824 KB |
Output is correct |
170 |
Correct |
6 ms |
1628 KB |
Output is correct |
171 |
Correct |
8 ms |
1952 KB |
Output is correct |
172 |
Correct |
12 ms |
1752 KB |
Output is correct |
173 |
Correct |
7 ms |
1628 KB |
Output is correct |
174 |
Correct |
10 ms |
2392 KB |
Output is correct |
175 |
Correct |
14 ms |
3420 KB |
Output is correct |
176 |
Correct |
35 ms |
10164 KB |
Output is correct |
177 |
Correct |
48 ms |
9868 KB |
Output is correct |
178 |
Correct |
73 ms |
12240 KB |
Output is correct |
179 |
Correct |
52 ms |
14088 KB |
Output is correct |
180 |
Correct |
58 ms |
13844 KB |
Output is correct |
181 |
Correct |
57 ms |
13656 KB |
Output is correct |
182 |
Correct |
65 ms |
13584 KB |
Output is correct |
183 |
Correct |
68 ms |
14960 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
460 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
1 ms |
344 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
1 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
604 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
3 ms |
860 KB |
Output is correct |
20 |
Correct |
2 ms |
1188 KB |
Output is correct |
21 |
Correct |
2 ms |
860 KB |
Output is correct |
22 |
Correct |
4 ms |
860 KB |
Output is correct |
23 |
Correct |
4 ms |
860 KB |
Output is correct |
24 |
Correct |
2 ms |
1648 KB |
Output is correct |
25 |
Correct |
3 ms |
1524 KB |
Output is correct |
26 |
Correct |
4 ms |
860 KB |
Output is correct |
27 |
Correct |
4 ms |
1016 KB |
Output is correct |
28 |
Correct |
3 ms |
860 KB |
Output is correct |
29 |
Correct |
8 ms |
1628 KB |
Output is correct |
30 |
Correct |
3 ms |
1140 KB |
Output is correct |
31 |
Correct |
5 ms |
1824 KB |
Output is correct |
32 |
Correct |
8 ms |
1624 KB |
Output is correct |
33 |
Correct |
7 ms |
1628 KB |
Output is correct |
34 |
Correct |
5 ms |
3340 KB |
Output is correct |
35 |
Correct |
7 ms |
3344 KB |
Output is correct |
36 |
Correct |
9 ms |
1956 KB |
Output is correct |
37 |
Correct |
9 ms |
1884 KB |
Output is correct |
38 |
Correct |
7 ms |
1852 KB |
Output is correct |
39 |
Correct |
90 ms |
13808 KB |
Output is correct |
40 |
Correct |
9 ms |
2140 KB |
Output is correct |
41 |
Correct |
7 ms |
4232 KB |
Output is correct |
42 |
Correct |
11 ms |
2396 KB |
Output is correct |
43 |
Correct |
13 ms |
4040 KB |
Output is correct |
44 |
Correct |
30 ms |
8312 KB |
Output is correct |
45 |
Correct |
38 ms |
9192 KB |
Output is correct |
46 |
Correct |
54 ms |
13900 KB |
Output is correct |
47 |
Correct |
105 ms |
13788 KB |
Output is correct |
48 |
Correct |
77 ms |
13776 KB |
Output is correct |
49 |
Correct |
42 ms |
31220 KB |
Output is correct |
50 |
Correct |
57 ms |
31288 KB |
Output is correct |
51 |
Correct |
116 ms |
14256 KB |
Output is correct |
52 |
Correct |
95 ms |
13916 KB |
Output is correct |
53 |
Correct |
83 ms |
13660 KB |
Output is correct |
54 |
Correct |
0 ms |
348 KB |
Output is correct |
55 |
Correct |
1 ms |
360 KB |
Output is correct |
56 |
Correct |
1 ms |
344 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
1 ms |
348 KB |
Output is correct |
59 |
Correct |
1 ms |
344 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
348 KB |
Output is correct |
62 |
Correct |
1 ms |
348 KB |
Output is correct |
63 |
Correct |
1 ms |
348 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
0 ms |
348 KB |
Output is correct |
66 |
Correct |
0 ms |
348 KB |
Output is correct |
67 |
Correct |
0 ms |
348 KB |
Output is correct |
68 |
Correct |
1 ms |
348 KB |
Output is correct |
69 |
Correct |
1 ms |
348 KB |
Output is correct |
70 |
Correct |
0 ms |
348 KB |
Output is correct |
71 |
Correct |
1 ms |
348 KB |
Output is correct |
72 |
Correct |
1 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
460 KB |
Output is correct |
74 |
Correct |
1 ms |
348 KB |
Output is correct |
75 |
Correct |
1 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
348 KB |
Output is correct |
77 |
Correct |
1 ms |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
348 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
1 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
0 ms |
348 KB |
Output is correct |
84 |
Correct |
0 ms |
348 KB |
Output is correct |
85 |
Correct |
0 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
348 KB |
Output is correct |
87 |
Correct |
0 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
348 KB |
Output is correct |
89 |
Correct |
1 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
1 ms |
348 KB |
Output is correct |
92 |
Correct |
1 ms |
348 KB |
Output is correct |
93 |
Correct |
0 ms |
348 KB |
Output is correct |
94 |
Correct |
1 ms |
344 KB |
Output is correct |
95 |
Correct |
1 ms |
344 KB |
Output is correct |
96 |
Correct |
1 ms |
348 KB |
Output is correct |
97 |
Correct |
1 ms |
348 KB |
Output is correct |
98 |
Correct |
0 ms |
460 KB |
Output is correct |
99 |
Correct |
1 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
0 ms |
348 KB |
Output is correct |
102 |
Correct |
1 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
348 KB |
Output is correct |
104 |
Correct |
0 ms |
348 KB |
Output is correct |
105 |
Correct |
0 ms |
348 KB |
Output is correct |
106 |
Correct |
1 ms |
456 KB |
Output is correct |
107 |
Correct |
0 ms |
348 KB |
Output is correct |
108 |
Correct |
0 ms |
348 KB |
Output is correct |
109 |
Correct |
1 ms |
344 KB |
Output is correct |
110 |
Correct |
2 ms |
604 KB |
Output is correct |
111 |
Correct |
4 ms |
980 KB |
Output is correct |
112 |
Correct |
2 ms |
856 KB |
Output is correct |
113 |
Correct |
2 ms |
860 KB |
Output is correct |
114 |
Correct |
3 ms |
1016 KB |
Output is correct |
115 |
Correct |
4 ms |
1012 KB |
Output is correct |
116 |
Correct |
2 ms |
860 KB |
Output is correct |
117 |
Correct |
4 ms |
1012 KB |
Output is correct |
118 |
Correct |
3 ms |
992 KB |
Output is correct |
119 |
Correct |
6 ms |
1884 KB |
Output is correct |
120 |
Correct |
5 ms |
1828 KB |
Output is correct |
121 |
Correct |
5 ms |
1628 KB |
Output is correct |
122 |
Correct |
8 ms |
1628 KB |
Output is correct |
123 |
Correct |
7 ms |
1624 KB |
Output is correct |
124 |
Correct |
21 ms |
6348 KB |
Output is correct |
125 |
Correct |
64 ms |
17168 KB |
Output is correct |
126 |
Correct |
46 ms |
14016 KB |
Output is correct |
127 |
Correct |
44 ms |
13908 KB |
Output is correct |
128 |
Correct |
48 ms |
13764 KB |
Output is correct |
129 |
Correct |
48 ms |
13660 KB |
Output is correct |
130 |
Correct |
78 ms |
21732 KB |
Output is correct |
131 |
Correct |
81 ms |
21816 KB |
Output is correct |
132 |
Correct |
4 ms |
856 KB |
Output is correct |
133 |
Correct |
1 ms |
348 KB |
Output is correct |
134 |
Correct |
1 ms |
348 KB |
Output is correct |
135 |
Correct |
2 ms |
604 KB |
Output is correct |
136 |
Correct |
3 ms |
1184 KB |
Output is correct |
137 |
Correct |
3 ms |
1116 KB |
Output is correct |
138 |
Correct |
4 ms |
856 KB |
Output is correct |
139 |
Correct |
4 ms |
860 KB |
Output is correct |
140 |
Correct |
5 ms |
1024 KB |
Output is correct |
141 |
Correct |
2 ms |
860 KB |
Output is correct |
142 |
Correct |
2 ms |
856 KB |
Output is correct |
143 |
Correct |
2 ms |
860 KB |
Output is correct |
144 |
Correct |
2 ms |
1648 KB |
Output is correct |
145 |
Correct |
5 ms |
1648 KB |
Output is correct |
146 |
Correct |
3 ms |
1116 KB |
Output is correct |
147 |
Correct |
4 ms |
1036 KB |
Output is correct |
148 |
Correct |
3 ms |
860 KB |
Output is correct |
149 |
Correct |
3 ms |
860 KB |
Output is correct |
150 |
Correct |
3 ms |
860 KB |
Output is correct |
151 |
Correct |
3 ms |
860 KB |
Output is correct |
152 |
Correct |
4 ms |
856 KB |
Output is correct |
153 |
Correct |
6 ms |
1024 KB |
Output is correct |
154 |
Correct |
7 ms |
1836 KB |
Output is correct |
155 |
Correct |
4 ms |
1140 KB |
Output is correct |
156 |
Correct |
6 ms |
2012 KB |
Output is correct |
157 |
Correct |
10 ms |
1800 KB |
Output is correct |
158 |
Correct |
5 ms |
1628 KB |
Output is correct |
159 |
Correct |
9 ms |
1624 KB |
Output is correct |
160 |
Correct |
7 ms |
1628 KB |
Output is correct |
161 |
Correct |
5 ms |
1628 KB |
Output is correct |
162 |
Correct |
7 ms |
1792 KB |
Output is correct |
163 |
Correct |
5 ms |
1788 KB |
Output is correct |
164 |
Correct |
6 ms |
3344 KB |
Output is correct |
165 |
Correct |
7 ms |
3468 KB |
Output is correct |
166 |
Correct |
6 ms |
2556 KB |
Output is correct |
167 |
Correct |
6 ms |
1628 KB |
Output is correct |
168 |
Correct |
6 ms |
1844 KB |
Output is correct |
169 |
Correct |
6 ms |
1824 KB |
Output is correct |
170 |
Correct |
6 ms |
1628 KB |
Output is correct |
171 |
Correct |
8 ms |
1952 KB |
Output is correct |
172 |
Correct |
12 ms |
1752 KB |
Output is correct |
173 |
Correct |
7 ms |
1628 KB |
Output is correct |
174 |
Correct |
10 ms |
2392 KB |
Output is correct |
175 |
Correct |
14 ms |
3420 KB |
Output is correct |
176 |
Correct |
35 ms |
10164 KB |
Output is correct |
177 |
Correct |
48 ms |
9868 KB |
Output is correct |
178 |
Correct |
73 ms |
12240 KB |
Output is correct |
179 |
Correct |
52 ms |
14088 KB |
Output is correct |
180 |
Correct |
58 ms |
13844 KB |
Output is correct |
181 |
Correct |
57 ms |
13656 KB |
Output is correct |
182 |
Correct |
65 ms |
13584 KB |
Output is correct |
183 |
Correct |
68 ms |
14960 KB |
Output is correct |
184 |
Correct |
190 ms |
26884 KB |
Output is correct |
185 |
Correct |
68 ms |
15612 KB |
Output is correct |
186 |
Correct |
70 ms |
22868 KB |
Output is correct |
187 |
Correct |
81 ms |
19312 KB |
Output is correct |
188 |
Correct |
112 ms |
27520 KB |
Output is correct |
189 |
Correct |
210 ms |
26964 KB |
Output is correct |
190 |
Correct |
170 ms |
26900 KB |
Output is correct |
191 |
Correct |
93 ms |
27396 KB |
Output is correct |
192 |
Correct |
123 ms |
26884 KB |
Output is correct |
193 |
Correct |
105 ms |
27036 KB |
Output is correct |
194 |
Correct |
91 ms |
62108 KB |
Output is correct |
195 |
Correct |
128 ms |
62104 KB |
Output is correct |
196 |
Correct |
121 ms |
27648 KB |
Output is correct |
197 |
Correct |
119 ms |
27312 KB |
Output is correct |
198 |
Correct |
101 ms |
26992 KB |
Output is correct |
199 |
Correct |
93 ms |
27032 KB |
Output is correct |
200 |
Correct |
220 ms |
27652 KB |
Output is correct |
201 |
Correct |
214 ms |
27360 KB |
Output is correct |
202 |
Correct |
201 ms |
27136 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
460 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
1 ms |
344 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
1 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
604 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
3 ms |
860 KB |
Output is correct |
20 |
Correct |
2 ms |
1188 KB |
Output is correct |
21 |
Correct |
2 ms |
860 KB |
Output is correct |
22 |
Correct |
4 ms |
860 KB |
Output is correct |
23 |
Correct |
4 ms |
860 KB |
Output is correct |
24 |
Correct |
2 ms |
1648 KB |
Output is correct |
25 |
Correct |
3 ms |
1524 KB |
Output is correct |
26 |
Correct |
4 ms |
860 KB |
Output is correct |
27 |
Correct |
4 ms |
1016 KB |
Output is correct |
28 |
Correct |
3 ms |
860 KB |
Output is correct |
29 |
Correct |
8 ms |
1628 KB |
Output is correct |
30 |
Correct |
3 ms |
1140 KB |
Output is correct |
31 |
Correct |
5 ms |
1824 KB |
Output is correct |
32 |
Correct |
8 ms |
1624 KB |
Output is correct |
33 |
Correct |
7 ms |
1628 KB |
Output is correct |
34 |
Correct |
5 ms |
3340 KB |
Output is correct |
35 |
Correct |
7 ms |
3344 KB |
Output is correct |
36 |
Correct |
9 ms |
1956 KB |
Output is correct |
37 |
Correct |
9 ms |
1884 KB |
Output is correct |
38 |
Correct |
7 ms |
1852 KB |
Output is correct |
39 |
Correct |
90 ms |
13808 KB |
Output is correct |
40 |
Correct |
9 ms |
2140 KB |
Output is correct |
41 |
Correct |
7 ms |
4232 KB |
Output is correct |
42 |
Correct |
11 ms |
2396 KB |
Output is correct |
43 |
Correct |
13 ms |
4040 KB |
Output is correct |
44 |
Correct |
30 ms |
8312 KB |
Output is correct |
45 |
Correct |
38 ms |
9192 KB |
Output is correct |
46 |
Correct |
54 ms |
13900 KB |
Output is correct |
47 |
Correct |
105 ms |
13788 KB |
Output is correct |
48 |
Correct |
77 ms |
13776 KB |
Output is correct |
49 |
Correct |
42 ms |
31220 KB |
Output is correct |
50 |
Correct |
57 ms |
31288 KB |
Output is correct |
51 |
Correct |
116 ms |
14256 KB |
Output is correct |
52 |
Correct |
95 ms |
13916 KB |
Output is correct |
53 |
Correct |
83 ms |
13660 KB |
Output is correct |
54 |
Correct |
0 ms |
348 KB |
Output is correct |
55 |
Correct |
1 ms |
360 KB |
Output is correct |
56 |
Correct |
1 ms |
344 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
1 ms |
348 KB |
Output is correct |
59 |
Correct |
1 ms |
344 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
348 KB |
Output is correct |
62 |
Correct |
1 ms |
348 KB |
Output is correct |
63 |
Correct |
1 ms |
348 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
0 ms |
348 KB |
Output is correct |
66 |
Correct |
0 ms |
348 KB |
Output is correct |
67 |
Correct |
0 ms |
348 KB |
Output is correct |
68 |
Correct |
1 ms |
348 KB |
Output is correct |
69 |
Correct |
1 ms |
348 KB |
Output is correct |
70 |
Correct |
0 ms |
348 KB |
Output is correct |
71 |
Correct |
1 ms |
348 KB |
Output is correct |
72 |
Correct |
1 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
460 KB |
Output is correct |
74 |
Correct |
1 ms |
348 KB |
Output is correct |
75 |
Correct |
1 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
348 KB |
Output is correct |
77 |
Correct |
1 ms |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
348 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
1 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
0 ms |
348 KB |
Output is correct |
84 |
Correct |
0 ms |
348 KB |
Output is correct |
85 |
Correct |
0 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
348 KB |
Output is correct |
87 |
Correct |
0 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
348 KB |
Output is correct |
89 |
Correct |
1 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
1 ms |
348 KB |
Output is correct |
92 |
Correct |
1 ms |
348 KB |
Output is correct |
93 |
Correct |
0 ms |
348 KB |
Output is correct |
94 |
Correct |
1 ms |
344 KB |
Output is correct |
95 |
Correct |
1 ms |
344 KB |
Output is correct |
96 |
Correct |
1 ms |
348 KB |
Output is correct |
97 |
Correct |
1 ms |
348 KB |
Output is correct |
98 |
Correct |
0 ms |
460 KB |
Output is correct |
99 |
Correct |
1 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
0 ms |
348 KB |
Output is correct |
102 |
Correct |
1 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
348 KB |
Output is correct |
104 |
Correct |
0 ms |
348 KB |
Output is correct |
105 |
Correct |
0 ms |
348 KB |
Output is correct |
106 |
Correct |
1 ms |
456 KB |
Output is correct |
107 |
Correct |
0 ms |
348 KB |
Output is correct |
108 |
Correct |
0 ms |
348 KB |
Output is correct |
109 |
Correct |
1 ms |
344 KB |
Output is correct |
110 |
Correct |
2 ms |
604 KB |
Output is correct |
111 |
Correct |
4 ms |
980 KB |
Output is correct |
112 |
Correct |
2 ms |
856 KB |
Output is correct |
113 |
Correct |
2 ms |
860 KB |
Output is correct |
114 |
Correct |
3 ms |
1016 KB |
Output is correct |
115 |
Correct |
4 ms |
1012 KB |
Output is correct |
116 |
Correct |
2 ms |
860 KB |
Output is correct |
117 |
Correct |
4 ms |
1012 KB |
Output is correct |
118 |
Correct |
3 ms |
992 KB |
Output is correct |
119 |
Correct |
6 ms |
1884 KB |
Output is correct |
120 |
Correct |
5 ms |
1828 KB |
Output is correct |
121 |
Correct |
5 ms |
1628 KB |
Output is correct |
122 |
Correct |
8 ms |
1628 KB |
Output is correct |
123 |
Correct |
7 ms |
1624 KB |
Output is correct |
124 |
Correct |
21 ms |
6348 KB |
Output is correct |
125 |
Correct |
64 ms |
17168 KB |
Output is correct |
126 |
Correct |
46 ms |
14016 KB |
Output is correct |
127 |
Correct |
44 ms |
13908 KB |
Output is correct |
128 |
Correct |
48 ms |
13764 KB |
Output is correct |
129 |
Correct |
48 ms |
13660 KB |
Output is correct |
130 |
Correct |
78 ms |
21732 KB |
Output is correct |
131 |
Correct |
81 ms |
21816 KB |
Output is correct |
132 |
Correct |
4 ms |
856 KB |
Output is correct |
133 |
Correct |
1 ms |
348 KB |
Output is correct |
134 |
Correct |
1 ms |
348 KB |
Output is correct |
135 |
Correct |
2 ms |
604 KB |
Output is correct |
136 |
Correct |
3 ms |
1184 KB |
Output is correct |
137 |
Correct |
3 ms |
1116 KB |
Output is correct |
138 |
Correct |
4 ms |
856 KB |
Output is correct |
139 |
Correct |
4 ms |
860 KB |
Output is correct |
140 |
Correct |
5 ms |
1024 KB |
Output is correct |
141 |
Correct |
2 ms |
860 KB |
Output is correct |
142 |
Correct |
2 ms |
856 KB |
Output is correct |
143 |
Correct |
2 ms |
860 KB |
Output is correct |
144 |
Correct |
2 ms |
1648 KB |
Output is correct |
145 |
Correct |
5 ms |
1648 KB |
Output is correct |
146 |
Correct |
3 ms |
1116 KB |
Output is correct |
147 |
Correct |
4 ms |
1036 KB |
Output is correct |
148 |
Correct |
3 ms |
860 KB |
Output is correct |
149 |
Correct |
3 ms |
860 KB |
Output is correct |
150 |
Correct |
3 ms |
860 KB |
Output is correct |
151 |
Correct |
3 ms |
860 KB |
Output is correct |
152 |
Correct |
4 ms |
856 KB |
Output is correct |
153 |
Correct |
6 ms |
1024 KB |
Output is correct |
154 |
Correct |
7 ms |
1836 KB |
Output is correct |
155 |
Correct |
4 ms |
1140 KB |
Output is correct |
156 |
Correct |
6 ms |
2012 KB |
Output is correct |
157 |
Correct |
10 ms |
1800 KB |
Output is correct |
158 |
Correct |
5 ms |
1628 KB |
Output is correct |
159 |
Correct |
9 ms |
1624 KB |
Output is correct |
160 |
Correct |
7 ms |
1628 KB |
Output is correct |
161 |
Correct |
5 ms |
1628 KB |
Output is correct |
162 |
Correct |
7 ms |
1792 KB |
Output is correct |
163 |
Correct |
5 ms |
1788 KB |
Output is correct |
164 |
Correct |
6 ms |
3344 KB |
Output is correct |
165 |
Correct |
7 ms |
3468 KB |
Output is correct |
166 |
Correct |
6 ms |
2556 KB |
Output is correct |
167 |
Correct |
6 ms |
1628 KB |
Output is correct |
168 |
Correct |
6 ms |
1844 KB |
Output is correct |
169 |
Correct |
6 ms |
1824 KB |
Output is correct |
170 |
Correct |
6 ms |
1628 KB |
Output is correct |
171 |
Correct |
8 ms |
1952 KB |
Output is correct |
172 |
Correct |
12 ms |
1752 KB |
Output is correct |
173 |
Correct |
7 ms |
1628 KB |
Output is correct |
174 |
Correct |
10 ms |
2392 KB |
Output is correct |
175 |
Correct |
14 ms |
3420 KB |
Output is correct |
176 |
Correct |
35 ms |
10164 KB |
Output is correct |
177 |
Correct |
48 ms |
9868 KB |
Output is correct |
178 |
Correct |
73 ms |
12240 KB |
Output is correct |
179 |
Correct |
52 ms |
14088 KB |
Output is correct |
180 |
Correct |
58 ms |
13844 KB |
Output is correct |
181 |
Correct |
57 ms |
13656 KB |
Output is correct |
182 |
Correct |
65 ms |
13584 KB |
Output is correct |
183 |
Correct |
68 ms |
14960 KB |
Output is correct |
184 |
Correct |
190 ms |
26884 KB |
Output is correct |
185 |
Correct |
68 ms |
15612 KB |
Output is correct |
186 |
Correct |
70 ms |
22868 KB |
Output is correct |
187 |
Correct |
81 ms |
19312 KB |
Output is correct |
188 |
Correct |
112 ms |
27520 KB |
Output is correct |
189 |
Correct |
210 ms |
26964 KB |
Output is correct |
190 |
Correct |
170 ms |
26900 KB |
Output is correct |
191 |
Correct |
93 ms |
27396 KB |
Output is correct |
192 |
Correct |
123 ms |
26884 KB |
Output is correct |
193 |
Correct |
105 ms |
27036 KB |
Output is correct |
194 |
Correct |
91 ms |
62108 KB |
Output is correct |
195 |
Correct |
128 ms |
62104 KB |
Output is correct |
196 |
Correct |
121 ms |
27648 KB |
Output is correct |
197 |
Correct |
119 ms |
27312 KB |
Output is correct |
198 |
Correct |
101 ms |
26992 KB |
Output is correct |
199 |
Correct |
93 ms |
27032 KB |
Output is correct |
200 |
Correct |
220 ms |
27652 KB |
Output is correct |
201 |
Correct |
214 ms |
27360 KB |
Output is correct |
202 |
Correct |
201 ms |
27136 KB |
Output is correct |
203 |
Correct |
404 ms |
53476 KB |
Output is correct |
204 |
Correct |
108 ms |
27924 KB |
Output is correct |
205 |
Correct |
211 ms |
32896 KB |
Output is correct |
206 |
Correct |
305 ms |
54996 KB |
Output is correct |
207 |
Correct |
238 ms |
54356 KB |
Output is correct |
208 |
Correct |
464 ms |
53560 KB |
Output is correct |
209 |
Correct |
375 ms |
53332 KB |
Output is correct |
210 |
Correct |
210 ms |
54412 KB |
Output is correct |
211 |
Correct |
199 ms |
53344 KB |
Output is correct |
212 |
Correct |
246 ms |
53468 KB |
Output is correct |
213 |
Correct |
169 ms |
123572 KB |
Output is correct |
214 |
Correct |
256 ms |
123744 KB |
Output is correct |
215 |
Correct |
241 ms |
54284 KB |
Output is correct |
216 |
Correct |
225 ms |
54068 KB |
Output is correct |
217 |
Correct |
214 ms |
53968 KB |
Output is correct |
218 |
Correct |
229 ms |
53308 KB |
Output is correct |
219 |
Correct |
281 ms |
64508 KB |
Output is correct |
220 |
Correct |
307 ms |
74312 KB |
Output is correct |
221 |
Correct |
361 ms |
86448 KB |
Output is correct |
222 |
Correct |
325 ms |
86484 KB |
Output is correct |
223 |
Correct |
457 ms |
54392 KB |
Output is correct |
224 |
Correct |
491 ms |
53860 KB |
Output is correct |
225 |
Correct |
428 ms |
53428 KB |
Output is correct |