# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
922318 |
2024-02-05T12:02:20 Z |
Shayan86 |
Maze (JOI23_ho_t3) |
C++14 |
|
496 ms |
479644 KB |
#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("O3,unroll-loops")
// #pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
// Ofast, O0, O1, O2, O3, unroll-loops, fast-math, trapv
typedef long long ll;
typedef pair<ll, ll> pll;
typedef pair<int, int> pii;
#define Mp make_pair
#define sep ' '
#define endl '\n'
#define F first
#define S second
#define pb push_back
#define all(x) (x).begin(),(x).end()
#define kill(res) cout << res << '\n', exit(0);
#define set_dec(x) cout << fixed << setprecision(x);
#define fast_io ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define file_io freopen("input.txt", "r", stdin) ; freopen("output.txt", "w", stdout);
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
const ll N = 6e6 + 50;
const ll Mod = 1e9 + 7;
int R, C, n;
pii s, t;
string a[N];
struct cst{
int F = Mod, S, T;
};
vector<cst> cost[N];
bool ok(int x, int y){
return (0 <= min(x, y) && x < R && y < C);
}
int main(){
fast_io;
cin >> R >> C >> n >> s.F >> s.S >> t.F >> t.S;
s.F--; s.S--; t.F--; t.S--; n--; n = -n;
for(int i = 0; i < R; i++) cin >> a[i];
for(int i = 0; i < R; i++) cost[i].resize(C);
vector<pii> q0, q1;
q0.pb({s.F, s.S});
cost[s.F][s.S] = {0, 0, 0};
while(!q0.empty()){
for(int i = 0; i < q0.size(); i++){
auto [r, c] = q0[i];
auto [x, y, z] = cost[r][c];
if(y != 0){
if(ok(r+1, c) && x < cost[r+1][c].F){
cost[r+1][c] = {x, y+1, z};
q0.pb({r+1, c});
}
if(ok(r-1, c) && x < cost[r-1][c].F){
cost[r-1][c] = {x, y+1, z};
q0.pb({r-1, c});
}
}
}
for(int i = 0; i < q0.size(); i++){
auto [r, c] = q0[i];
auto [x, y, z] = cost[r][c];
if(z != 0){
if(ok(r, c+1) && x < cost[r][c+1].F){
cost[r][c+1] = {x, y, z+1};
q0.pb({r, c+1});
}
if(ok(r, c-1) && x < cost[r][c-1].F){
cost[r][c-1] = {x, y, z+1};
q0.pb({r, c-1});
}
}
}
for(int i = 0; i < q0.size(); i++){
auto [r, c] = q0[i];
auto [x, y, z] = cost[r][c];
if(ok(r+1, c)){
if(a[r+1][c] == '#'){
if(cost[r+1][c].F > x+1){
cost[r+1][c] = {x+1, n, n};
q1.pb({r+1, c});
}
}
else{
if(cost[r+1][c].F > x){
cost[r+1][c] = {x, 0, 0};
q0.pb({r+1, c});
}
}
}
if(ok(r-1, c)){
if(a[r-1][c] == '#'){
if(cost[r-1][c].F > x+1){
cost[r-1][c] = {x+1, n, n};
q1.pb({r-1, c});
}
}
else{
if(cost[r-1][c].F > x){
cost[r-1][c] = {x, 0, 0};
q0.pb({r-1, c});
}
}
}
if(ok(r, c+1)){
if(a[r][c+1] == '#'){
if(cost[r][c+1].F > x+1){
cost[r][c+1] = {x+1, n, n};
q1.pb({r, c+1});
}
}
else{
if(cost[r][c+1].F > x){
cost[r][c+1] = {x, 0, 0};
q0.pb({r, c+1});
}
}
}
if(ok(r, c-1)){
if(a[r][c-1] == '#'){
if(cost[r][c-1].F > x+1){
cost[r][c-1] = {x+1, n, n};
q1.pb({r, c-1});
}
}
else{
if(cost[r][c-1].F > x){
cost[r][c-1] = {x, 0, 0};
q0.pb({r, c-1});
}
}
}
}
q0.clear();
swap(q0, q1);
}
cout << cost[t.F][t.S].F;
}
Compilation message
Main.cpp: In function 'int main()':
Main.cpp:59:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
59 | for(int i = 0; i < q0.size(); i++){
| ~~^~~~~~~~~~~
Main.cpp:60:18: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
60 | auto [r, c] = q0[i];
| ^
Main.cpp:61:18: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
61 | auto [x, y, z] = cost[r][c];
| ^
Main.cpp:73:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
73 | for(int i = 0; i < q0.size(); i++){
| ~~^~~~~~~~~~~
Main.cpp:74:18: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
74 | auto [r, c] = q0[i];
| ^
Main.cpp:75:18: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
75 | auto [x, y, z] = cost[r][c];
| ^
Main.cpp:87:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
87 | for(int i = 0; i < q0.size(); i++){
| ~~^~~~~~~~~~~
Main.cpp:88:18: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
88 | auto [r, c] = q0[i];
| ^
Main.cpp:89:18: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
89 | auto [x, y, z] = cost[r][c];
| ^
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
91 ms |
329044 KB |
Output is correct |
2 |
Correct |
82 ms |
329040 KB |
Output is correct |
3 |
Correct |
79 ms |
329052 KB |
Output is correct |
4 |
Correct |
84 ms |
329232 KB |
Output is correct |
5 |
Correct |
79 ms |
329208 KB |
Output is correct |
6 |
Correct |
81 ms |
329232 KB |
Output is correct |
7 |
Correct |
77 ms |
329112 KB |
Output is correct |
8 |
Correct |
77 ms |
329124 KB |
Output is correct |
9 |
Correct |
80 ms |
329048 KB |
Output is correct |
10 |
Correct |
77 ms |
329048 KB |
Output is correct |
11 |
Correct |
77 ms |
329208 KB |
Output is correct |
12 |
Correct |
80 ms |
329156 KB |
Output is correct |
13 |
Correct |
81 ms |
329204 KB |
Output is correct |
14 |
Correct |
78 ms |
329068 KB |
Output is correct |
15 |
Correct |
81 ms |
329296 KB |
Output is correct |
16 |
Correct |
77 ms |
329012 KB |
Output is correct |
17 |
Correct |
78 ms |
329040 KB |
Output is correct |
18 |
Correct |
80 ms |
329048 KB |
Output is correct |
19 |
Correct |
83 ms |
329848 KB |
Output is correct |
20 |
Correct |
80 ms |
329808 KB |
Output is correct |
21 |
Correct |
83 ms |
330692 KB |
Output is correct |
22 |
Correct |
81 ms |
330068 KB |
Output is correct |
23 |
Correct |
79 ms |
329948 KB |
Output is correct |
24 |
Correct |
84 ms |
329900 KB |
Output is correct |
25 |
Correct |
83 ms |
329984 KB |
Output is correct |
26 |
Correct |
82 ms |
330324 KB |
Output is correct |
27 |
Correct |
82 ms |
329984 KB |
Output is correct |
28 |
Correct |
80 ms |
330088 KB |
Output is correct |
29 |
Correct |
92 ms |
331600 KB |
Output is correct |
30 |
Correct |
82 ms |
330108 KB |
Output is correct |
31 |
Correct |
82 ms |
333432 KB |
Output is correct |
32 |
Correct |
86 ms |
331344 KB |
Output is correct |
33 |
Correct |
83 ms |
331092 KB |
Output is correct |
34 |
Correct |
83 ms |
331400 KB |
Output is correct |
35 |
Correct |
89 ms |
331288 KB |
Output is correct |
36 |
Correct |
89 ms |
331700 KB |
Output is correct |
37 |
Correct |
87 ms |
331512 KB |
Output is correct |
38 |
Correct |
83 ms |
331348 KB |
Output is correct |
39 |
Correct |
153 ms |
349780 KB |
Output is correct |
40 |
Correct |
86 ms |
331460 KB |
Output is correct |
41 |
Correct |
82 ms |
331868 KB |
Output is correct |
42 |
Correct |
90 ms |
332116 KB |
Output is correct |
43 |
Correct |
90 ms |
332572 KB |
Output is correct |
44 |
Correct |
110 ms |
339456 KB |
Output is correct |
45 |
Correct |
104 ms |
340116 KB |
Output is correct |
46 |
Correct |
121 ms |
367200 KB |
Output is correct |
47 |
Correct |
156 ms |
350036 KB |
Output is correct |
48 |
Correct |
146 ms |
349952 KB |
Output is correct |
49 |
Correct |
98 ms |
349688 KB |
Output is correct |
50 |
Correct |
104 ms |
349888 KB |
Output is correct |
51 |
Correct |
159 ms |
350896 KB |
Output is correct |
52 |
Correct |
157 ms |
350416 KB |
Output is correct |
53 |
Correct |
151 ms |
350292 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
79 ms |
329208 KB |
Output is correct |
2 |
Correct |
84 ms |
329100 KB |
Output is correct |
3 |
Correct |
77 ms |
329208 KB |
Output is correct |
4 |
Correct |
78 ms |
329044 KB |
Output is correct |
5 |
Correct |
79 ms |
329116 KB |
Output is correct |
6 |
Correct |
77 ms |
329040 KB |
Output is correct |
7 |
Correct |
79 ms |
329044 KB |
Output is correct |
8 |
Correct |
82 ms |
329036 KB |
Output is correct |
9 |
Correct |
82 ms |
329300 KB |
Output is correct |
10 |
Correct |
78 ms |
329228 KB |
Output is correct |
11 |
Correct |
81 ms |
329224 KB |
Output is correct |
12 |
Correct |
78 ms |
329236 KB |
Output is correct |
13 |
Correct |
79 ms |
329168 KB |
Output is correct |
14 |
Correct |
79 ms |
329420 KB |
Output is correct |
15 |
Correct |
81 ms |
329048 KB |
Output is correct |
16 |
Correct |
81 ms |
329044 KB |
Output is correct |
17 |
Correct |
79 ms |
329300 KB |
Output is correct |
18 |
Correct |
81 ms |
329044 KB |
Output is correct |
19 |
Correct |
84 ms |
329040 KB |
Output is correct |
20 |
Correct |
81 ms |
329036 KB |
Output is correct |
21 |
Correct |
77 ms |
329208 KB |
Output is correct |
22 |
Correct |
81 ms |
329216 KB |
Output is correct |
23 |
Correct |
79 ms |
329012 KB |
Output is correct |
24 |
Correct |
78 ms |
329040 KB |
Output is correct |
25 |
Correct |
78 ms |
329044 KB |
Output is correct |
26 |
Correct |
82 ms |
329044 KB |
Output is correct |
27 |
Correct |
80 ms |
329208 KB |
Output is correct |
28 |
Correct |
79 ms |
329220 KB |
Output is correct |
29 |
Correct |
77 ms |
329208 KB |
Output is correct |
30 |
Correct |
78 ms |
329048 KB |
Output is correct |
31 |
Correct |
80 ms |
329164 KB |
Output is correct |
32 |
Correct |
79 ms |
329064 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
83 ms |
329160 KB |
Output is correct |
2 |
Correct |
79 ms |
329208 KB |
Output is correct |
3 |
Correct |
78 ms |
329040 KB |
Output is correct |
4 |
Correct |
78 ms |
329044 KB |
Output is correct |
5 |
Correct |
80 ms |
329044 KB |
Output is correct |
6 |
Correct |
79 ms |
329040 KB |
Output is correct |
7 |
Correct |
79 ms |
329108 KB |
Output is correct |
8 |
Correct |
83 ms |
329020 KB |
Output is correct |
9 |
Correct |
80 ms |
329084 KB |
Output is correct |
10 |
Correct |
80 ms |
329408 KB |
Output is correct |
11 |
Correct |
83 ms |
329204 KB |
Output is correct |
12 |
Correct |
80 ms |
329040 KB |
Output is correct |
13 |
Correct |
79 ms |
329044 KB |
Output is correct |
14 |
Correct |
80 ms |
329040 KB |
Output is correct |
15 |
Correct |
78 ms |
329212 KB |
Output is correct |
16 |
Correct |
77 ms |
329216 KB |
Output is correct |
17 |
Correct |
80 ms |
329140 KB |
Output is correct |
18 |
Correct |
78 ms |
329208 KB |
Output is correct |
19 |
Correct |
80 ms |
329212 KB |
Output is correct |
20 |
Correct |
78 ms |
328988 KB |
Output is correct |
21 |
Correct |
78 ms |
329220 KB |
Output is correct |
22 |
Correct |
77 ms |
329044 KB |
Output is correct |
23 |
Correct |
81 ms |
329224 KB |
Output is correct |
24 |
Correct |
77 ms |
329168 KB |
Output is correct |
25 |
Correct |
79 ms |
329540 KB |
Output is correct |
26 |
Correct |
80 ms |
330612 KB |
Output is correct |
27 |
Correct |
83 ms |
330452 KB |
Output is correct |
28 |
Correct |
83 ms |
330492 KB |
Output is correct |
29 |
Correct |
83 ms |
330692 KB |
Output is correct |
30 |
Correct |
80 ms |
330448 KB |
Output is correct |
31 |
Correct |
80 ms |
330140 KB |
Output is correct |
32 |
Correct |
81 ms |
330324 KB |
Output is correct |
33 |
Correct |
83 ms |
330148 KB |
Output is correct |
34 |
Correct |
85 ms |
332240 KB |
Output is correct |
35 |
Correct |
85 ms |
333284 KB |
Output is correct |
36 |
Correct |
83 ms |
333256 KB |
Output is correct |
37 |
Correct |
89 ms |
333256 KB |
Output is correct |
38 |
Correct |
84 ms |
333252 KB |
Output is correct |
39 |
Correct |
102 ms |
341700 KB |
Output is correct |
40 |
Correct |
162 ms |
362012 KB |
Output is correct |
41 |
Correct |
128 ms |
366496 KB |
Output is correct |
42 |
Correct |
120 ms |
367672 KB |
Output is correct |
43 |
Correct |
161 ms |
366748 KB |
Output is correct |
44 |
Correct |
164 ms |
367032 KB |
Output is correct |
45 |
Correct |
175 ms |
366452 KB |
Output is correct |
46 |
Correct |
163 ms |
366788 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
79 ms |
329208 KB |
Output is correct |
2 |
Correct |
84 ms |
329100 KB |
Output is correct |
3 |
Correct |
77 ms |
329208 KB |
Output is correct |
4 |
Correct |
78 ms |
329044 KB |
Output is correct |
5 |
Correct |
79 ms |
329116 KB |
Output is correct |
6 |
Correct |
77 ms |
329040 KB |
Output is correct |
7 |
Correct |
79 ms |
329044 KB |
Output is correct |
8 |
Correct |
82 ms |
329036 KB |
Output is correct |
9 |
Correct |
82 ms |
329300 KB |
Output is correct |
10 |
Correct |
78 ms |
329228 KB |
Output is correct |
11 |
Correct |
81 ms |
329224 KB |
Output is correct |
12 |
Correct |
78 ms |
329236 KB |
Output is correct |
13 |
Correct |
79 ms |
329168 KB |
Output is correct |
14 |
Correct |
79 ms |
329420 KB |
Output is correct |
15 |
Correct |
81 ms |
329048 KB |
Output is correct |
16 |
Correct |
81 ms |
329044 KB |
Output is correct |
17 |
Correct |
79 ms |
329300 KB |
Output is correct |
18 |
Correct |
81 ms |
329044 KB |
Output is correct |
19 |
Correct |
84 ms |
329040 KB |
Output is correct |
20 |
Correct |
81 ms |
329036 KB |
Output is correct |
21 |
Correct |
77 ms |
329208 KB |
Output is correct |
22 |
Correct |
81 ms |
329216 KB |
Output is correct |
23 |
Correct |
79 ms |
329012 KB |
Output is correct |
24 |
Correct |
78 ms |
329040 KB |
Output is correct |
25 |
Correct |
78 ms |
329044 KB |
Output is correct |
26 |
Correct |
82 ms |
329044 KB |
Output is correct |
27 |
Correct |
80 ms |
329208 KB |
Output is correct |
28 |
Correct |
79 ms |
329220 KB |
Output is correct |
29 |
Correct |
77 ms |
329208 KB |
Output is correct |
30 |
Correct |
78 ms |
329048 KB |
Output is correct |
31 |
Correct |
80 ms |
329164 KB |
Output is correct |
32 |
Correct |
79 ms |
329064 KB |
Output is correct |
33 |
Correct |
82 ms |
330052 KB |
Output is correct |
34 |
Correct |
78 ms |
329040 KB |
Output is correct |
35 |
Correct |
82 ms |
329216 KB |
Output is correct |
36 |
Correct |
79 ms |
329556 KB |
Output is correct |
37 |
Correct |
83 ms |
329812 KB |
Output is correct |
38 |
Correct |
82 ms |
330444 KB |
Output is correct |
39 |
Correct |
79 ms |
330452 KB |
Output is correct |
40 |
Correct |
84 ms |
330080 KB |
Output is correct |
41 |
Correct |
81 ms |
330060 KB |
Output is correct |
42 |
Correct |
80 ms |
330452 KB |
Output is correct |
43 |
Correct |
86 ms |
330504 KB |
Output is correct |
44 |
Correct |
84 ms |
330440 KB |
Output is correct |
45 |
Correct |
81 ms |
330068 KB |
Output is correct |
46 |
Correct |
81 ms |
329944 KB |
Output is correct |
47 |
Correct |
80 ms |
330068 KB |
Output is correct |
48 |
Correct |
83 ms |
329812 KB |
Output is correct |
49 |
Correct |
83 ms |
330068 KB |
Output is correct |
50 |
Correct |
80 ms |
330064 KB |
Output is correct |
51 |
Correct |
83 ms |
330176 KB |
Output is correct |
52 |
Correct |
87 ms |
330320 KB |
Output is correct |
53 |
Correct |
80 ms |
330068 KB |
Output is correct |
54 |
Correct |
79 ms |
330068 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
79 ms |
329208 KB |
Output is correct |
2 |
Correct |
84 ms |
329100 KB |
Output is correct |
3 |
Correct |
77 ms |
329208 KB |
Output is correct |
4 |
Correct |
78 ms |
329044 KB |
Output is correct |
5 |
Correct |
79 ms |
329116 KB |
Output is correct |
6 |
Correct |
77 ms |
329040 KB |
Output is correct |
7 |
Correct |
79 ms |
329044 KB |
Output is correct |
8 |
Correct |
82 ms |
329036 KB |
Output is correct |
9 |
Correct |
82 ms |
329300 KB |
Output is correct |
10 |
Correct |
78 ms |
329228 KB |
Output is correct |
11 |
Correct |
81 ms |
329224 KB |
Output is correct |
12 |
Correct |
78 ms |
329236 KB |
Output is correct |
13 |
Correct |
79 ms |
329168 KB |
Output is correct |
14 |
Correct |
79 ms |
329420 KB |
Output is correct |
15 |
Correct |
81 ms |
329048 KB |
Output is correct |
16 |
Correct |
81 ms |
329044 KB |
Output is correct |
17 |
Correct |
79 ms |
329300 KB |
Output is correct |
18 |
Correct |
81 ms |
329044 KB |
Output is correct |
19 |
Correct |
84 ms |
329040 KB |
Output is correct |
20 |
Correct |
81 ms |
329036 KB |
Output is correct |
21 |
Correct |
77 ms |
329208 KB |
Output is correct |
22 |
Correct |
81 ms |
329216 KB |
Output is correct |
23 |
Correct |
79 ms |
329012 KB |
Output is correct |
24 |
Correct |
78 ms |
329040 KB |
Output is correct |
25 |
Correct |
78 ms |
329044 KB |
Output is correct |
26 |
Correct |
82 ms |
329044 KB |
Output is correct |
27 |
Correct |
80 ms |
329208 KB |
Output is correct |
28 |
Correct |
79 ms |
329220 KB |
Output is correct |
29 |
Correct |
77 ms |
329208 KB |
Output is correct |
30 |
Correct |
78 ms |
329048 KB |
Output is correct |
31 |
Correct |
80 ms |
329164 KB |
Output is correct |
32 |
Correct |
79 ms |
329064 KB |
Output is correct |
33 |
Correct |
82 ms |
330052 KB |
Output is correct |
34 |
Correct |
78 ms |
329040 KB |
Output is correct |
35 |
Correct |
82 ms |
329216 KB |
Output is correct |
36 |
Correct |
79 ms |
329556 KB |
Output is correct |
37 |
Correct |
83 ms |
329812 KB |
Output is correct |
38 |
Correct |
82 ms |
330444 KB |
Output is correct |
39 |
Correct |
79 ms |
330452 KB |
Output is correct |
40 |
Correct |
84 ms |
330080 KB |
Output is correct |
41 |
Correct |
81 ms |
330060 KB |
Output is correct |
42 |
Correct |
80 ms |
330452 KB |
Output is correct |
43 |
Correct |
86 ms |
330504 KB |
Output is correct |
44 |
Correct |
84 ms |
330440 KB |
Output is correct |
45 |
Correct |
81 ms |
330068 KB |
Output is correct |
46 |
Correct |
81 ms |
329944 KB |
Output is correct |
47 |
Correct |
80 ms |
330068 KB |
Output is correct |
48 |
Correct |
83 ms |
329812 KB |
Output is correct |
49 |
Correct |
83 ms |
330068 KB |
Output is correct |
50 |
Correct |
80 ms |
330064 KB |
Output is correct |
51 |
Correct |
83 ms |
330176 KB |
Output is correct |
52 |
Correct |
87 ms |
330320 KB |
Output is correct |
53 |
Correct |
80 ms |
330068 KB |
Output is correct |
54 |
Correct |
79 ms |
330068 KB |
Output is correct |
55 |
Correct |
82 ms |
331208 KB |
Output is correct |
56 |
Correct |
85 ms |
330016 KB |
Output is correct |
57 |
Correct |
85 ms |
332148 KB |
Output is correct |
58 |
Correct |
84 ms |
331092 KB |
Output is correct |
59 |
Correct |
83 ms |
333284 KB |
Output is correct |
60 |
Correct |
85 ms |
331344 KB |
Output is correct |
61 |
Correct |
83 ms |
331096 KB |
Output is correct |
62 |
Correct |
82 ms |
333436 KB |
Output is correct |
63 |
Correct |
84 ms |
333252 KB |
Output is correct |
64 |
Correct |
88 ms |
333460 KB |
Output is correct |
65 |
Correct |
81 ms |
331232 KB |
Output is correct |
66 |
Correct |
84 ms |
331492 KB |
Output is correct |
67 |
Correct |
82 ms |
331216 KB |
Output is correct |
68 |
Correct |
84 ms |
331348 KB |
Output is correct |
69 |
Correct |
85 ms |
331212 KB |
Output is correct |
70 |
Correct |
88 ms |
331344 KB |
Output is correct |
71 |
Correct |
85 ms |
331488 KB |
Output is correct |
72 |
Correct |
90 ms |
331600 KB |
Output is correct |
73 |
Correct |
89 ms |
331472 KB |
Output is correct |
74 |
Correct |
84 ms |
331164 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
91 ms |
329044 KB |
Output is correct |
2 |
Correct |
82 ms |
329040 KB |
Output is correct |
3 |
Correct |
79 ms |
329052 KB |
Output is correct |
4 |
Correct |
84 ms |
329232 KB |
Output is correct |
5 |
Correct |
79 ms |
329208 KB |
Output is correct |
6 |
Correct |
81 ms |
329232 KB |
Output is correct |
7 |
Correct |
77 ms |
329112 KB |
Output is correct |
8 |
Correct |
77 ms |
329124 KB |
Output is correct |
9 |
Correct |
80 ms |
329048 KB |
Output is correct |
10 |
Correct |
77 ms |
329048 KB |
Output is correct |
11 |
Correct |
77 ms |
329208 KB |
Output is correct |
12 |
Correct |
80 ms |
329156 KB |
Output is correct |
13 |
Correct |
81 ms |
329204 KB |
Output is correct |
14 |
Correct |
78 ms |
329068 KB |
Output is correct |
15 |
Correct |
81 ms |
329296 KB |
Output is correct |
16 |
Correct |
77 ms |
329012 KB |
Output is correct |
17 |
Correct |
78 ms |
329040 KB |
Output is correct |
18 |
Correct |
80 ms |
329048 KB |
Output is correct |
19 |
Correct |
83 ms |
329848 KB |
Output is correct |
20 |
Correct |
80 ms |
329808 KB |
Output is correct |
21 |
Correct |
83 ms |
330692 KB |
Output is correct |
22 |
Correct |
81 ms |
330068 KB |
Output is correct |
23 |
Correct |
79 ms |
329948 KB |
Output is correct |
24 |
Correct |
84 ms |
329900 KB |
Output is correct |
25 |
Correct |
83 ms |
329984 KB |
Output is correct |
26 |
Correct |
82 ms |
330324 KB |
Output is correct |
27 |
Correct |
82 ms |
329984 KB |
Output is correct |
28 |
Correct |
80 ms |
330088 KB |
Output is correct |
29 |
Correct |
92 ms |
331600 KB |
Output is correct |
30 |
Correct |
82 ms |
330108 KB |
Output is correct |
31 |
Correct |
82 ms |
333432 KB |
Output is correct |
32 |
Correct |
86 ms |
331344 KB |
Output is correct |
33 |
Correct |
83 ms |
331092 KB |
Output is correct |
34 |
Correct |
83 ms |
331400 KB |
Output is correct |
35 |
Correct |
89 ms |
331288 KB |
Output is correct |
36 |
Correct |
89 ms |
331700 KB |
Output is correct |
37 |
Correct |
87 ms |
331512 KB |
Output is correct |
38 |
Correct |
83 ms |
331348 KB |
Output is correct |
39 |
Correct |
153 ms |
349780 KB |
Output is correct |
40 |
Correct |
86 ms |
331460 KB |
Output is correct |
41 |
Correct |
82 ms |
331868 KB |
Output is correct |
42 |
Correct |
90 ms |
332116 KB |
Output is correct |
43 |
Correct |
90 ms |
332572 KB |
Output is correct |
44 |
Correct |
110 ms |
339456 KB |
Output is correct |
45 |
Correct |
104 ms |
340116 KB |
Output is correct |
46 |
Correct |
121 ms |
367200 KB |
Output is correct |
47 |
Correct |
156 ms |
350036 KB |
Output is correct |
48 |
Correct |
146 ms |
349952 KB |
Output is correct |
49 |
Correct |
98 ms |
349688 KB |
Output is correct |
50 |
Correct |
104 ms |
349888 KB |
Output is correct |
51 |
Correct |
159 ms |
350896 KB |
Output is correct |
52 |
Correct |
157 ms |
350416 KB |
Output is correct |
53 |
Correct |
151 ms |
350292 KB |
Output is correct |
54 |
Correct |
79 ms |
329208 KB |
Output is correct |
55 |
Correct |
84 ms |
329100 KB |
Output is correct |
56 |
Correct |
77 ms |
329208 KB |
Output is correct |
57 |
Correct |
78 ms |
329044 KB |
Output is correct |
58 |
Correct |
79 ms |
329116 KB |
Output is correct |
59 |
Correct |
77 ms |
329040 KB |
Output is correct |
60 |
Correct |
79 ms |
329044 KB |
Output is correct |
61 |
Correct |
82 ms |
329036 KB |
Output is correct |
62 |
Correct |
82 ms |
329300 KB |
Output is correct |
63 |
Correct |
78 ms |
329228 KB |
Output is correct |
64 |
Correct |
81 ms |
329224 KB |
Output is correct |
65 |
Correct |
78 ms |
329236 KB |
Output is correct |
66 |
Correct |
79 ms |
329168 KB |
Output is correct |
67 |
Correct |
79 ms |
329420 KB |
Output is correct |
68 |
Correct |
81 ms |
329048 KB |
Output is correct |
69 |
Correct |
81 ms |
329044 KB |
Output is correct |
70 |
Correct |
79 ms |
329300 KB |
Output is correct |
71 |
Correct |
81 ms |
329044 KB |
Output is correct |
72 |
Correct |
84 ms |
329040 KB |
Output is correct |
73 |
Correct |
81 ms |
329036 KB |
Output is correct |
74 |
Correct |
77 ms |
329208 KB |
Output is correct |
75 |
Correct |
81 ms |
329216 KB |
Output is correct |
76 |
Correct |
79 ms |
329012 KB |
Output is correct |
77 |
Correct |
78 ms |
329040 KB |
Output is correct |
78 |
Correct |
78 ms |
329044 KB |
Output is correct |
79 |
Correct |
82 ms |
329044 KB |
Output is correct |
80 |
Correct |
80 ms |
329208 KB |
Output is correct |
81 |
Correct |
79 ms |
329220 KB |
Output is correct |
82 |
Correct |
77 ms |
329208 KB |
Output is correct |
83 |
Correct |
78 ms |
329048 KB |
Output is correct |
84 |
Correct |
80 ms |
329164 KB |
Output is correct |
85 |
Correct |
79 ms |
329064 KB |
Output is correct |
86 |
Correct |
83 ms |
329160 KB |
Output is correct |
87 |
Correct |
79 ms |
329208 KB |
Output is correct |
88 |
Correct |
78 ms |
329040 KB |
Output is correct |
89 |
Correct |
78 ms |
329044 KB |
Output is correct |
90 |
Correct |
80 ms |
329044 KB |
Output is correct |
91 |
Correct |
79 ms |
329040 KB |
Output is correct |
92 |
Correct |
79 ms |
329108 KB |
Output is correct |
93 |
Correct |
83 ms |
329020 KB |
Output is correct |
94 |
Correct |
80 ms |
329084 KB |
Output is correct |
95 |
Correct |
80 ms |
329408 KB |
Output is correct |
96 |
Correct |
83 ms |
329204 KB |
Output is correct |
97 |
Correct |
80 ms |
329040 KB |
Output is correct |
98 |
Correct |
79 ms |
329044 KB |
Output is correct |
99 |
Correct |
80 ms |
329040 KB |
Output is correct |
100 |
Correct |
78 ms |
329212 KB |
Output is correct |
101 |
Correct |
77 ms |
329216 KB |
Output is correct |
102 |
Correct |
80 ms |
329140 KB |
Output is correct |
103 |
Correct |
78 ms |
329208 KB |
Output is correct |
104 |
Correct |
80 ms |
329212 KB |
Output is correct |
105 |
Correct |
78 ms |
328988 KB |
Output is correct |
106 |
Correct |
78 ms |
329220 KB |
Output is correct |
107 |
Correct |
77 ms |
329044 KB |
Output is correct |
108 |
Correct |
81 ms |
329224 KB |
Output is correct |
109 |
Correct |
77 ms |
329168 KB |
Output is correct |
110 |
Correct |
79 ms |
329540 KB |
Output is correct |
111 |
Correct |
80 ms |
330612 KB |
Output is correct |
112 |
Correct |
83 ms |
330452 KB |
Output is correct |
113 |
Correct |
83 ms |
330492 KB |
Output is correct |
114 |
Correct |
83 ms |
330692 KB |
Output is correct |
115 |
Correct |
80 ms |
330448 KB |
Output is correct |
116 |
Correct |
80 ms |
330140 KB |
Output is correct |
117 |
Correct |
81 ms |
330324 KB |
Output is correct |
118 |
Correct |
83 ms |
330148 KB |
Output is correct |
119 |
Correct |
85 ms |
332240 KB |
Output is correct |
120 |
Correct |
85 ms |
333284 KB |
Output is correct |
121 |
Correct |
83 ms |
333256 KB |
Output is correct |
122 |
Correct |
89 ms |
333256 KB |
Output is correct |
123 |
Correct |
84 ms |
333252 KB |
Output is correct |
124 |
Correct |
102 ms |
341700 KB |
Output is correct |
125 |
Correct |
162 ms |
362012 KB |
Output is correct |
126 |
Correct |
128 ms |
366496 KB |
Output is correct |
127 |
Correct |
120 ms |
367672 KB |
Output is correct |
128 |
Correct |
161 ms |
366748 KB |
Output is correct |
129 |
Correct |
164 ms |
367032 KB |
Output is correct |
130 |
Correct |
175 ms |
366452 KB |
Output is correct |
131 |
Correct |
163 ms |
366788 KB |
Output is correct |
132 |
Correct |
82 ms |
330052 KB |
Output is correct |
133 |
Correct |
78 ms |
329040 KB |
Output is correct |
134 |
Correct |
82 ms |
329216 KB |
Output is correct |
135 |
Correct |
79 ms |
329556 KB |
Output is correct |
136 |
Correct |
83 ms |
329812 KB |
Output is correct |
137 |
Correct |
82 ms |
330444 KB |
Output is correct |
138 |
Correct |
79 ms |
330452 KB |
Output is correct |
139 |
Correct |
84 ms |
330080 KB |
Output is correct |
140 |
Correct |
81 ms |
330060 KB |
Output is correct |
141 |
Correct |
80 ms |
330452 KB |
Output is correct |
142 |
Correct |
86 ms |
330504 KB |
Output is correct |
143 |
Correct |
84 ms |
330440 KB |
Output is correct |
144 |
Correct |
81 ms |
330068 KB |
Output is correct |
145 |
Correct |
81 ms |
329944 KB |
Output is correct |
146 |
Correct |
80 ms |
330068 KB |
Output is correct |
147 |
Correct |
83 ms |
329812 KB |
Output is correct |
148 |
Correct |
83 ms |
330068 KB |
Output is correct |
149 |
Correct |
80 ms |
330064 KB |
Output is correct |
150 |
Correct |
83 ms |
330176 KB |
Output is correct |
151 |
Correct |
87 ms |
330320 KB |
Output is correct |
152 |
Correct |
80 ms |
330068 KB |
Output is correct |
153 |
Correct |
79 ms |
330068 KB |
Output is correct |
154 |
Correct |
82 ms |
331208 KB |
Output is correct |
155 |
Correct |
85 ms |
330016 KB |
Output is correct |
156 |
Correct |
85 ms |
332148 KB |
Output is correct |
157 |
Correct |
84 ms |
331092 KB |
Output is correct |
158 |
Correct |
83 ms |
333284 KB |
Output is correct |
159 |
Correct |
85 ms |
331344 KB |
Output is correct |
160 |
Correct |
83 ms |
331096 KB |
Output is correct |
161 |
Correct |
82 ms |
333436 KB |
Output is correct |
162 |
Correct |
84 ms |
333252 KB |
Output is correct |
163 |
Correct |
88 ms |
333460 KB |
Output is correct |
164 |
Correct |
81 ms |
331232 KB |
Output is correct |
165 |
Correct |
84 ms |
331492 KB |
Output is correct |
166 |
Correct |
82 ms |
331216 KB |
Output is correct |
167 |
Correct |
84 ms |
331348 KB |
Output is correct |
168 |
Correct |
85 ms |
331212 KB |
Output is correct |
169 |
Correct |
88 ms |
331344 KB |
Output is correct |
170 |
Correct |
85 ms |
331488 KB |
Output is correct |
171 |
Correct |
90 ms |
331600 KB |
Output is correct |
172 |
Correct |
89 ms |
331472 KB |
Output is correct |
173 |
Correct |
84 ms |
331164 KB |
Output is correct |
174 |
Correct |
90 ms |
332036 KB |
Output is correct |
175 |
Correct |
90 ms |
333904 KB |
Output is correct |
176 |
Correct |
114 ms |
339804 KB |
Output is correct |
177 |
Correct |
127 ms |
343124 KB |
Output is correct |
178 |
Correct |
145 ms |
347472 KB |
Output is correct |
179 |
Correct |
142 ms |
350072 KB |
Output is correct |
180 |
Correct |
155 ms |
350552 KB |
Output is correct |
181 |
Correct |
156 ms |
350944 KB |
Output is correct |
182 |
Correct |
152 ms |
352056 KB |
Output is correct |
183 |
Correct |
145 ms |
353332 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
91 ms |
329044 KB |
Output is correct |
2 |
Correct |
82 ms |
329040 KB |
Output is correct |
3 |
Correct |
79 ms |
329052 KB |
Output is correct |
4 |
Correct |
84 ms |
329232 KB |
Output is correct |
5 |
Correct |
79 ms |
329208 KB |
Output is correct |
6 |
Correct |
81 ms |
329232 KB |
Output is correct |
7 |
Correct |
77 ms |
329112 KB |
Output is correct |
8 |
Correct |
77 ms |
329124 KB |
Output is correct |
9 |
Correct |
80 ms |
329048 KB |
Output is correct |
10 |
Correct |
77 ms |
329048 KB |
Output is correct |
11 |
Correct |
77 ms |
329208 KB |
Output is correct |
12 |
Correct |
80 ms |
329156 KB |
Output is correct |
13 |
Correct |
81 ms |
329204 KB |
Output is correct |
14 |
Correct |
78 ms |
329068 KB |
Output is correct |
15 |
Correct |
81 ms |
329296 KB |
Output is correct |
16 |
Correct |
77 ms |
329012 KB |
Output is correct |
17 |
Correct |
78 ms |
329040 KB |
Output is correct |
18 |
Correct |
80 ms |
329048 KB |
Output is correct |
19 |
Correct |
83 ms |
329848 KB |
Output is correct |
20 |
Correct |
80 ms |
329808 KB |
Output is correct |
21 |
Correct |
83 ms |
330692 KB |
Output is correct |
22 |
Correct |
81 ms |
330068 KB |
Output is correct |
23 |
Correct |
79 ms |
329948 KB |
Output is correct |
24 |
Correct |
84 ms |
329900 KB |
Output is correct |
25 |
Correct |
83 ms |
329984 KB |
Output is correct |
26 |
Correct |
82 ms |
330324 KB |
Output is correct |
27 |
Correct |
82 ms |
329984 KB |
Output is correct |
28 |
Correct |
80 ms |
330088 KB |
Output is correct |
29 |
Correct |
92 ms |
331600 KB |
Output is correct |
30 |
Correct |
82 ms |
330108 KB |
Output is correct |
31 |
Correct |
82 ms |
333432 KB |
Output is correct |
32 |
Correct |
86 ms |
331344 KB |
Output is correct |
33 |
Correct |
83 ms |
331092 KB |
Output is correct |
34 |
Correct |
83 ms |
331400 KB |
Output is correct |
35 |
Correct |
89 ms |
331288 KB |
Output is correct |
36 |
Correct |
89 ms |
331700 KB |
Output is correct |
37 |
Correct |
87 ms |
331512 KB |
Output is correct |
38 |
Correct |
83 ms |
331348 KB |
Output is correct |
39 |
Correct |
153 ms |
349780 KB |
Output is correct |
40 |
Correct |
86 ms |
331460 KB |
Output is correct |
41 |
Correct |
82 ms |
331868 KB |
Output is correct |
42 |
Correct |
90 ms |
332116 KB |
Output is correct |
43 |
Correct |
90 ms |
332572 KB |
Output is correct |
44 |
Correct |
110 ms |
339456 KB |
Output is correct |
45 |
Correct |
104 ms |
340116 KB |
Output is correct |
46 |
Correct |
121 ms |
367200 KB |
Output is correct |
47 |
Correct |
156 ms |
350036 KB |
Output is correct |
48 |
Correct |
146 ms |
349952 KB |
Output is correct |
49 |
Correct |
98 ms |
349688 KB |
Output is correct |
50 |
Correct |
104 ms |
349888 KB |
Output is correct |
51 |
Correct |
159 ms |
350896 KB |
Output is correct |
52 |
Correct |
157 ms |
350416 KB |
Output is correct |
53 |
Correct |
151 ms |
350292 KB |
Output is correct |
54 |
Correct |
79 ms |
329208 KB |
Output is correct |
55 |
Correct |
84 ms |
329100 KB |
Output is correct |
56 |
Correct |
77 ms |
329208 KB |
Output is correct |
57 |
Correct |
78 ms |
329044 KB |
Output is correct |
58 |
Correct |
79 ms |
329116 KB |
Output is correct |
59 |
Correct |
77 ms |
329040 KB |
Output is correct |
60 |
Correct |
79 ms |
329044 KB |
Output is correct |
61 |
Correct |
82 ms |
329036 KB |
Output is correct |
62 |
Correct |
82 ms |
329300 KB |
Output is correct |
63 |
Correct |
78 ms |
329228 KB |
Output is correct |
64 |
Correct |
81 ms |
329224 KB |
Output is correct |
65 |
Correct |
78 ms |
329236 KB |
Output is correct |
66 |
Correct |
79 ms |
329168 KB |
Output is correct |
67 |
Correct |
79 ms |
329420 KB |
Output is correct |
68 |
Correct |
81 ms |
329048 KB |
Output is correct |
69 |
Correct |
81 ms |
329044 KB |
Output is correct |
70 |
Correct |
79 ms |
329300 KB |
Output is correct |
71 |
Correct |
81 ms |
329044 KB |
Output is correct |
72 |
Correct |
84 ms |
329040 KB |
Output is correct |
73 |
Correct |
81 ms |
329036 KB |
Output is correct |
74 |
Correct |
77 ms |
329208 KB |
Output is correct |
75 |
Correct |
81 ms |
329216 KB |
Output is correct |
76 |
Correct |
79 ms |
329012 KB |
Output is correct |
77 |
Correct |
78 ms |
329040 KB |
Output is correct |
78 |
Correct |
78 ms |
329044 KB |
Output is correct |
79 |
Correct |
82 ms |
329044 KB |
Output is correct |
80 |
Correct |
80 ms |
329208 KB |
Output is correct |
81 |
Correct |
79 ms |
329220 KB |
Output is correct |
82 |
Correct |
77 ms |
329208 KB |
Output is correct |
83 |
Correct |
78 ms |
329048 KB |
Output is correct |
84 |
Correct |
80 ms |
329164 KB |
Output is correct |
85 |
Correct |
79 ms |
329064 KB |
Output is correct |
86 |
Correct |
83 ms |
329160 KB |
Output is correct |
87 |
Correct |
79 ms |
329208 KB |
Output is correct |
88 |
Correct |
78 ms |
329040 KB |
Output is correct |
89 |
Correct |
78 ms |
329044 KB |
Output is correct |
90 |
Correct |
80 ms |
329044 KB |
Output is correct |
91 |
Correct |
79 ms |
329040 KB |
Output is correct |
92 |
Correct |
79 ms |
329108 KB |
Output is correct |
93 |
Correct |
83 ms |
329020 KB |
Output is correct |
94 |
Correct |
80 ms |
329084 KB |
Output is correct |
95 |
Correct |
80 ms |
329408 KB |
Output is correct |
96 |
Correct |
83 ms |
329204 KB |
Output is correct |
97 |
Correct |
80 ms |
329040 KB |
Output is correct |
98 |
Correct |
79 ms |
329044 KB |
Output is correct |
99 |
Correct |
80 ms |
329040 KB |
Output is correct |
100 |
Correct |
78 ms |
329212 KB |
Output is correct |
101 |
Correct |
77 ms |
329216 KB |
Output is correct |
102 |
Correct |
80 ms |
329140 KB |
Output is correct |
103 |
Correct |
78 ms |
329208 KB |
Output is correct |
104 |
Correct |
80 ms |
329212 KB |
Output is correct |
105 |
Correct |
78 ms |
328988 KB |
Output is correct |
106 |
Correct |
78 ms |
329220 KB |
Output is correct |
107 |
Correct |
77 ms |
329044 KB |
Output is correct |
108 |
Correct |
81 ms |
329224 KB |
Output is correct |
109 |
Correct |
77 ms |
329168 KB |
Output is correct |
110 |
Correct |
79 ms |
329540 KB |
Output is correct |
111 |
Correct |
80 ms |
330612 KB |
Output is correct |
112 |
Correct |
83 ms |
330452 KB |
Output is correct |
113 |
Correct |
83 ms |
330492 KB |
Output is correct |
114 |
Correct |
83 ms |
330692 KB |
Output is correct |
115 |
Correct |
80 ms |
330448 KB |
Output is correct |
116 |
Correct |
80 ms |
330140 KB |
Output is correct |
117 |
Correct |
81 ms |
330324 KB |
Output is correct |
118 |
Correct |
83 ms |
330148 KB |
Output is correct |
119 |
Correct |
85 ms |
332240 KB |
Output is correct |
120 |
Correct |
85 ms |
333284 KB |
Output is correct |
121 |
Correct |
83 ms |
333256 KB |
Output is correct |
122 |
Correct |
89 ms |
333256 KB |
Output is correct |
123 |
Correct |
84 ms |
333252 KB |
Output is correct |
124 |
Correct |
102 ms |
341700 KB |
Output is correct |
125 |
Correct |
162 ms |
362012 KB |
Output is correct |
126 |
Correct |
128 ms |
366496 KB |
Output is correct |
127 |
Correct |
120 ms |
367672 KB |
Output is correct |
128 |
Correct |
161 ms |
366748 KB |
Output is correct |
129 |
Correct |
164 ms |
367032 KB |
Output is correct |
130 |
Correct |
175 ms |
366452 KB |
Output is correct |
131 |
Correct |
163 ms |
366788 KB |
Output is correct |
132 |
Correct |
82 ms |
330052 KB |
Output is correct |
133 |
Correct |
78 ms |
329040 KB |
Output is correct |
134 |
Correct |
82 ms |
329216 KB |
Output is correct |
135 |
Correct |
79 ms |
329556 KB |
Output is correct |
136 |
Correct |
83 ms |
329812 KB |
Output is correct |
137 |
Correct |
82 ms |
330444 KB |
Output is correct |
138 |
Correct |
79 ms |
330452 KB |
Output is correct |
139 |
Correct |
84 ms |
330080 KB |
Output is correct |
140 |
Correct |
81 ms |
330060 KB |
Output is correct |
141 |
Correct |
80 ms |
330452 KB |
Output is correct |
142 |
Correct |
86 ms |
330504 KB |
Output is correct |
143 |
Correct |
84 ms |
330440 KB |
Output is correct |
144 |
Correct |
81 ms |
330068 KB |
Output is correct |
145 |
Correct |
81 ms |
329944 KB |
Output is correct |
146 |
Correct |
80 ms |
330068 KB |
Output is correct |
147 |
Correct |
83 ms |
329812 KB |
Output is correct |
148 |
Correct |
83 ms |
330068 KB |
Output is correct |
149 |
Correct |
80 ms |
330064 KB |
Output is correct |
150 |
Correct |
83 ms |
330176 KB |
Output is correct |
151 |
Correct |
87 ms |
330320 KB |
Output is correct |
152 |
Correct |
80 ms |
330068 KB |
Output is correct |
153 |
Correct |
79 ms |
330068 KB |
Output is correct |
154 |
Correct |
82 ms |
331208 KB |
Output is correct |
155 |
Correct |
85 ms |
330016 KB |
Output is correct |
156 |
Correct |
85 ms |
332148 KB |
Output is correct |
157 |
Correct |
84 ms |
331092 KB |
Output is correct |
158 |
Correct |
83 ms |
333284 KB |
Output is correct |
159 |
Correct |
85 ms |
331344 KB |
Output is correct |
160 |
Correct |
83 ms |
331096 KB |
Output is correct |
161 |
Correct |
82 ms |
333436 KB |
Output is correct |
162 |
Correct |
84 ms |
333252 KB |
Output is correct |
163 |
Correct |
88 ms |
333460 KB |
Output is correct |
164 |
Correct |
81 ms |
331232 KB |
Output is correct |
165 |
Correct |
84 ms |
331492 KB |
Output is correct |
166 |
Correct |
82 ms |
331216 KB |
Output is correct |
167 |
Correct |
84 ms |
331348 KB |
Output is correct |
168 |
Correct |
85 ms |
331212 KB |
Output is correct |
169 |
Correct |
88 ms |
331344 KB |
Output is correct |
170 |
Correct |
85 ms |
331488 KB |
Output is correct |
171 |
Correct |
90 ms |
331600 KB |
Output is correct |
172 |
Correct |
89 ms |
331472 KB |
Output is correct |
173 |
Correct |
84 ms |
331164 KB |
Output is correct |
174 |
Correct |
90 ms |
332036 KB |
Output is correct |
175 |
Correct |
90 ms |
333904 KB |
Output is correct |
176 |
Correct |
114 ms |
339804 KB |
Output is correct |
177 |
Correct |
127 ms |
343124 KB |
Output is correct |
178 |
Correct |
145 ms |
347472 KB |
Output is correct |
179 |
Correct |
142 ms |
350072 KB |
Output is correct |
180 |
Correct |
155 ms |
350552 KB |
Output is correct |
181 |
Correct |
156 ms |
350944 KB |
Output is correct |
182 |
Correct |
152 ms |
352056 KB |
Output is correct |
183 |
Correct |
145 ms |
353332 KB |
Output is correct |
184 |
Correct |
221 ms |
370636 KB |
Output is correct |
185 |
Correct |
151 ms |
351856 KB |
Output is correct |
186 |
Correct |
186 ms |
377952 KB |
Output is correct |
187 |
Correct |
170 ms |
360256 KB |
Output is correct |
188 |
Correct |
180 ms |
404824 KB |
Output is correct |
189 |
Correct |
243 ms |
370836 KB |
Output is correct |
190 |
Correct |
198 ms |
370596 KB |
Output is correct |
191 |
Correct |
169 ms |
405764 KB |
Output is correct |
192 |
Correct |
278 ms |
404644 KB |
Output is correct |
193 |
Correct |
235 ms |
404048 KB |
Output is correct |
194 |
Correct |
116 ms |
371344 KB |
Output is correct |
195 |
Correct |
136 ms |
370580 KB |
Output is correct |
196 |
Correct |
202 ms |
370996 KB |
Output is correct |
197 |
Correct |
223 ms |
371324 KB |
Output is correct |
198 |
Correct |
211 ms |
372388 KB |
Output is correct |
199 |
Correct |
210 ms |
373680 KB |
Output is correct |
200 |
Correct |
262 ms |
372048 KB |
Output is correct |
201 |
Correct |
245 ms |
371440 KB |
Output is correct |
202 |
Correct |
224 ms |
371008 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
91 ms |
329044 KB |
Output is correct |
2 |
Correct |
82 ms |
329040 KB |
Output is correct |
3 |
Correct |
79 ms |
329052 KB |
Output is correct |
4 |
Correct |
84 ms |
329232 KB |
Output is correct |
5 |
Correct |
79 ms |
329208 KB |
Output is correct |
6 |
Correct |
81 ms |
329232 KB |
Output is correct |
7 |
Correct |
77 ms |
329112 KB |
Output is correct |
8 |
Correct |
77 ms |
329124 KB |
Output is correct |
9 |
Correct |
80 ms |
329048 KB |
Output is correct |
10 |
Correct |
77 ms |
329048 KB |
Output is correct |
11 |
Correct |
77 ms |
329208 KB |
Output is correct |
12 |
Correct |
80 ms |
329156 KB |
Output is correct |
13 |
Correct |
81 ms |
329204 KB |
Output is correct |
14 |
Correct |
78 ms |
329068 KB |
Output is correct |
15 |
Correct |
81 ms |
329296 KB |
Output is correct |
16 |
Correct |
77 ms |
329012 KB |
Output is correct |
17 |
Correct |
78 ms |
329040 KB |
Output is correct |
18 |
Correct |
80 ms |
329048 KB |
Output is correct |
19 |
Correct |
83 ms |
329848 KB |
Output is correct |
20 |
Correct |
80 ms |
329808 KB |
Output is correct |
21 |
Correct |
83 ms |
330692 KB |
Output is correct |
22 |
Correct |
81 ms |
330068 KB |
Output is correct |
23 |
Correct |
79 ms |
329948 KB |
Output is correct |
24 |
Correct |
84 ms |
329900 KB |
Output is correct |
25 |
Correct |
83 ms |
329984 KB |
Output is correct |
26 |
Correct |
82 ms |
330324 KB |
Output is correct |
27 |
Correct |
82 ms |
329984 KB |
Output is correct |
28 |
Correct |
80 ms |
330088 KB |
Output is correct |
29 |
Correct |
92 ms |
331600 KB |
Output is correct |
30 |
Correct |
82 ms |
330108 KB |
Output is correct |
31 |
Correct |
82 ms |
333432 KB |
Output is correct |
32 |
Correct |
86 ms |
331344 KB |
Output is correct |
33 |
Correct |
83 ms |
331092 KB |
Output is correct |
34 |
Correct |
83 ms |
331400 KB |
Output is correct |
35 |
Correct |
89 ms |
331288 KB |
Output is correct |
36 |
Correct |
89 ms |
331700 KB |
Output is correct |
37 |
Correct |
87 ms |
331512 KB |
Output is correct |
38 |
Correct |
83 ms |
331348 KB |
Output is correct |
39 |
Correct |
153 ms |
349780 KB |
Output is correct |
40 |
Correct |
86 ms |
331460 KB |
Output is correct |
41 |
Correct |
82 ms |
331868 KB |
Output is correct |
42 |
Correct |
90 ms |
332116 KB |
Output is correct |
43 |
Correct |
90 ms |
332572 KB |
Output is correct |
44 |
Correct |
110 ms |
339456 KB |
Output is correct |
45 |
Correct |
104 ms |
340116 KB |
Output is correct |
46 |
Correct |
121 ms |
367200 KB |
Output is correct |
47 |
Correct |
156 ms |
350036 KB |
Output is correct |
48 |
Correct |
146 ms |
349952 KB |
Output is correct |
49 |
Correct |
98 ms |
349688 KB |
Output is correct |
50 |
Correct |
104 ms |
349888 KB |
Output is correct |
51 |
Correct |
159 ms |
350896 KB |
Output is correct |
52 |
Correct |
157 ms |
350416 KB |
Output is correct |
53 |
Correct |
151 ms |
350292 KB |
Output is correct |
54 |
Correct |
79 ms |
329208 KB |
Output is correct |
55 |
Correct |
84 ms |
329100 KB |
Output is correct |
56 |
Correct |
77 ms |
329208 KB |
Output is correct |
57 |
Correct |
78 ms |
329044 KB |
Output is correct |
58 |
Correct |
79 ms |
329116 KB |
Output is correct |
59 |
Correct |
77 ms |
329040 KB |
Output is correct |
60 |
Correct |
79 ms |
329044 KB |
Output is correct |
61 |
Correct |
82 ms |
329036 KB |
Output is correct |
62 |
Correct |
82 ms |
329300 KB |
Output is correct |
63 |
Correct |
78 ms |
329228 KB |
Output is correct |
64 |
Correct |
81 ms |
329224 KB |
Output is correct |
65 |
Correct |
78 ms |
329236 KB |
Output is correct |
66 |
Correct |
79 ms |
329168 KB |
Output is correct |
67 |
Correct |
79 ms |
329420 KB |
Output is correct |
68 |
Correct |
81 ms |
329048 KB |
Output is correct |
69 |
Correct |
81 ms |
329044 KB |
Output is correct |
70 |
Correct |
79 ms |
329300 KB |
Output is correct |
71 |
Correct |
81 ms |
329044 KB |
Output is correct |
72 |
Correct |
84 ms |
329040 KB |
Output is correct |
73 |
Correct |
81 ms |
329036 KB |
Output is correct |
74 |
Correct |
77 ms |
329208 KB |
Output is correct |
75 |
Correct |
81 ms |
329216 KB |
Output is correct |
76 |
Correct |
79 ms |
329012 KB |
Output is correct |
77 |
Correct |
78 ms |
329040 KB |
Output is correct |
78 |
Correct |
78 ms |
329044 KB |
Output is correct |
79 |
Correct |
82 ms |
329044 KB |
Output is correct |
80 |
Correct |
80 ms |
329208 KB |
Output is correct |
81 |
Correct |
79 ms |
329220 KB |
Output is correct |
82 |
Correct |
77 ms |
329208 KB |
Output is correct |
83 |
Correct |
78 ms |
329048 KB |
Output is correct |
84 |
Correct |
80 ms |
329164 KB |
Output is correct |
85 |
Correct |
79 ms |
329064 KB |
Output is correct |
86 |
Correct |
83 ms |
329160 KB |
Output is correct |
87 |
Correct |
79 ms |
329208 KB |
Output is correct |
88 |
Correct |
78 ms |
329040 KB |
Output is correct |
89 |
Correct |
78 ms |
329044 KB |
Output is correct |
90 |
Correct |
80 ms |
329044 KB |
Output is correct |
91 |
Correct |
79 ms |
329040 KB |
Output is correct |
92 |
Correct |
79 ms |
329108 KB |
Output is correct |
93 |
Correct |
83 ms |
329020 KB |
Output is correct |
94 |
Correct |
80 ms |
329084 KB |
Output is correct |
95 |
Correct |
80 ms |
329408 KB |
Output is correct |
96 |
Correct |
83 ms |
329204 KB |
Output is correct |
97 |
Correct |
80 ms |
329040 KB |
Output is correct |
98 |
Correct |
79 ms |
329044 KB |
Output is correct |
99 |
Correct |
80 ms |
329040 KB |
Output is correct |
100 |
Correct |
78 ms |
329212 KB |
Output is correct |
101 |
Correct |
77 ms |
329216 KB |
Output is correct |
102 |
Correct |
80 ms |
329140 KB |
Output is correct |
103 |
Correct |
78 ms |
329208 KB |
Output is correct |
104 |
Correct |
80 ms |
329212 KB |
Output is correct |
105 |
Correct |
78 ms |
328988 KB |
Output is correct |
106 |
Correct |
78 ms |
329220 KB |
Output is correct |
107 |
Correct |
77 ms |
329044 KB |
Output is correct |
108 |
Correct |
81 ms |
329224 KB |
Output is correct |
109 |
Correct |
77 ms |
329168 KB |
Output is correct |
110 |
Correct |
79 ms |
329540 KB |
Output is correct |
111 |
Correct |
80 ms |
330612 KB |
Output is correct |
112 |
Correct |
83 ms |
330452 KB |
Output is correct |
113 |
Correct |
83 ms |
330492 KB |
Output is correct |
114 |
Correct |
83 ms |
330692 KB |
Output is correct |
115 |
Correct |
80 ms |
330448 KB |
Output is correct |
116 |
Correct |
80 ms |
330140 KB |
Output is correct |
117 |
Correct |
81 ms |
330324 KB |
Output is correct |
118 |
Correct |
83 ms |
330148 KB |
Output is correct |
119 |
Correct |
85 ms |
332240 KB |
Output is correct |
120 |
Correct |
85 ms |
333284 KB |
Output is correct |
121 |
Correct |
83 ms |
333256 KB |
Output is correct |
122 |
Correct |
89 ms |
333256 KB |
Output is correct |
123 |
Correct |
84 ms |
333252 KB |
Output is correct |
124 |
Correct |
102 ms |
341700 KB |
Output is correct |
125 |
Correct |
162 ms |
362012 KB |
Output is correct |
126 |
Correct |
128 ms |
366496 KB |
Output is correct |
127 |
Correct |
120 ms |
367672 KB |
Output is correct |
128 |
Correct |
161 ms |
366748 KB |
Output is correct |
129 |
Correct |
164 ms |
367032 KB |
Output is correct |
130 |
Correct |
175 ms |
366452 KB |
Output is correct |
131 |
Correct |
163 ms |
366788 KB |
Output is correct |
132 |
Correct |
82 ms |
330052 KB |
Output is correct |
133 |
Correct |
78 ms |
329040 KB |
Output is correct |
134 |
Correct |
82 ms |
329216 KB |
Output is correct |
135 |
Correct |
79 ms |
329556 KB |
Output is correct |
136 |
Correct |
83 ms |
329812 KB |
Output is correct |
137 |
Correct |
82 ms |
330444 KB |
Output is correct |
138 |
Correct |
79 ms |
330452 KB |
Output is correct |
139 |
Correct |
84 ms |
330080 KB |
Output is correct |
140 |
Correct |
81 ms |
330060 KB |
Output is correct |
141 |
Correct |
80 ms |
330452 KB |
Output is correct |
142 |
Correct |
86 ms |
330504 KB |
Output is correct |
143 |
Correct |
84 ms |
330440 KB |
Output is correct |
144 |
Correct |
81 ms |
330068 KB |
Output is correct |
145 |
Correct |
81 ms |
329944 KB |
Output is correct |
146 |
Correct |
80 ms |
330068 KB |
Output is correct |
147 |
Correct |
83 ms |
329812 KB |
Output is correct |
148 |
Correct |
83 ms |
330068 KB |
Output is correct |
149 |
Correct |
80 ms |
330064 KB |
Output is correct |
150 |
Correct |
83 ms |
330176 KB |
Output is correct |
151 |
Correct |
87 ms |
330320 KB |
Output is correct |
152 |
Correct |
80 ms |
330068 KB |
Output is correct |
153 |
Correct |
79 ms |
330068 KB |
Output is correct |
154 |
Correct |
82 ms |
331208 KB |
Output is correct |
155 |
Correct |
85 ms |
330016 KB |
Output is correct |
156 |
Correct |
85 ms |
332148 KB |
Output is correct |
157 |
Correct |
84 ms |
331092 KB |
Output is correct |
158 |
Correct |
83 ms |
333284 KB |
Output is correct |
159 |
Correct |
85 ms |
331344 KB |
Output is correct |
160 |
Correct |
83 ms |
331096 KB |
Output is correct |
161 |
Correct |
82 ms |
333436 KB |
Output is correct |
162 |
Correct |
84 ms |
333252 KB |
Output is correct |
163 |
Correct |
88 ms |
333460 KB |
Output is correct |
164 |
Correct |
81 ms |
331232 KB |
Output is correct |
165 |
Correct |
84 ms |
331492 KB |
Output is correct |
166 |
Correct |
82 ms |
331216 KB |
Output is correct |
167 |
Correct |
84 ms |
331348 KB |
Output is correct |
168 |
Correct |
85 ms |
331212 KB |
Output is correct |
169 |
Correct |
88 ms |
331344 KB |
Output is correct |
170 |
Correct |
85 ms |
331488 KB |
Output is correct |
171 |
Correct |
90 ms |
331600 KB |
Output is correct |
172 |
Correct |
89 ms |
331472 KB |
Output is correct |
173 |
Correct |
84 ms |
331164 KB |
Output is correct |
174 |
Correct |
90 ms |
332036 KB |
Output is correct |
175 |
Correct |
90 ms |
333904 KB |
Output is correct |
176 |
Correct |
114 ms |
339804 KB |
Output is correct |
177 |
Correct |
127 ms |
343124 KB |
Output is correct |
178 |
Correct |
145 ms |
347472 KB |
Output is correct |
179 |
Correct |
142 ms |
350072 KB |
Output is correct |
180 |
Correct |
155 ms |
350552 KB |
Output is correct |
181 |
Correct |
156 ms |
350944 KB |
Output is correct |
182 |
Correct |
152 ms |
352056 KB |
Output is correct |
183 |
Correct |
145 ms |
353332 KB |
Output is correct |
184 |
Correct |
221 ms |
370636 KB |
Output is correct |
185 |
Correct |
151 ms |
351856 KB |
Output is correct |
186 |
Correct |
186 ms |
377952 KB |
Output is correct |
187 |
Correct |
170 ms |
360256 KB |
Output is correct |
188 |
Correct |
180 ms |
404824 KB |
Output is correct |
189 |
Correct |
243 ms |
370836 KB |
Output is correct |
190 |
Correct |
198 ms |
370596 KB |
Output is correct |
191 |
Correct |
169 ms |
405764 KB |
Output is correct |
192 |
Correct |
278 ms |
404644 KB |
Output is correct |
193 |
Correct |
235 ms |
404048 KB |
Output is correct |
194 |
Correct |
116 ms |
371344 KB |
Output is correct |
195 |
Correct |
136 ms |
370580 KB |
Output is correct |
196 |
Correct |
202 ms |
370996 KB |
Output is correct |
197 |
Correct |
223 ms |
371324 KB |
Output is correct |
198 |
Correct |
211 ms |
372388 KB |
Output is correct |
199 |
Correct |
210 ms |
373680 KB |
Output is correct |
200 |
Correct |
262 ms |
372048 KB |
Output is correct |
201 |
Correct |
245 ms |
371440 KB |
Output is correct |
202 |
Correct |
224 ms |
371008 KB |
Output is correct |
203 |
Correct |
376 ms |
411984 KB |
Output is correct |
204 |
Correct |
219 ms |
381420 KB |
Output is correct |
205 |
Correct |
281 ms |
380804 KB |
Output is correct |
206 |
Correct |
294 ms |
411464 KB |
Output is correct |
207 |
Correct |
286 ms |
479644 KB |
Output is correct |
208 |
Correct |
461 ms |
412560 KB |
Output is correct |
209 |
Correct |
381 ms |
412016 KB |
Output is correct |
210 |
Correct |
272 ms |
478892 KB |
Output is correct |
211 |
Correct |
453 ms |
477656 KB |
Output is correct |
212 |
Correct |
393 ms |
479116 KB |
Output is correct |
213 |
Correct |
154 ms |
412004 KB |
Output is correct |
214 |
Correct |
171 ms |
413184 KB |
Output is correct |
215 |
Correct |
340 ms |
412160 KB |
Output is correct |
216 |
Correct |
331 ms |
412940 KB |
Output is correct |
217 |
Correct |
352 ms |
414680 KB |
Output is correct |
218 |
Correct |
392 ms |
417864 KB |
Output is correct |
219 |
Correct |
381 ms |
441464 KB |
Output is correct |
220 |
Correct |
428 ms |
456084 KB |
Output is correct |
221 |
Correct |
476 ms |
476344 KB |
Output is correct |
222 |
Correct |
496 ms |
476592 KB |
Output is correct |
223 |
Correct |
460 ms |
413848 KB |
Output is correct |
224 |
Correct |
466 ms |
412956 KB |
Output is correct |
225 |
Correct |
400 ms |
412156 KB |
Output is correct |