# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
292805 | 2020-09-07T13:39:04 Z | 송준혁(#5803) | Express 20/19 (ROI19_express) | C++17 | 1122 ms | 278136 KB |
#include <bits/stdc++.h> #define fi first #define se second #define pb push_back using namespace std; typedef long long LL; typedef pair<LL,LL> pii; int TC, N, M, Q, P; int ans[505050]; vector<pii> adj[505050], V[505050], qu[505050], B; int main(){ scanf("%d", &TC); while (TC--){ scanf("%d %d %d %d", &N, &M, &Q, &P); for (int i=1; i<=N; i++) adj[i].clear(), V[i].clear(), qu[i].clear(); for (int i=1; i<=M; i++){ int u, v; LL w; scanf("%d %d %lld", &u, &v, &w); adj[u].pb(pii(v, w)); } for (int i=1; i<=Q; i++){ int u; LL w; scanf("%d %lld", &u, &w); qu[u].pb(pii(w, i)); } V[1].pb(pii(0, 0)); for (int i=1; i<=N; i++){ sort(V[i].begin(), V[i].end()); LL l=V[i][0].fi, r=V[i][0].se; for (pii t : V[i]){ if ((r+1)*P/(P-1) >= t.fi) r = max(r, t.se); else B.pb(pii(l, r)), l=t.fi, r=t.se; } B.pb(pii(l, r)); for (pii q : qu[i]){ ans[q.se] = 0; for (pii t : B){ if (t.fi <= q.fi && q.fi <= t.se) ans[q.se] = 1; else if (q.fi < t.fi && q.fi*P/(P-1) >= t.fi) ans[q.se] = 1; } } for (pii v : adj[i]) for (pii t : B) V[v.fi].pb(pii(t.fi+v.se, t.se+v.se)); B.clear(); } for (int i=1; i<=Q; i++) printf("%d", ans[i]); printf("\n"); } return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 25 ms | 35840 KB | Output is correct |
2 | Correct | 24 ms | 35840 KB | Output is correct |
3 | Correct | 25 ms | 35840 KB | Output is correct |
4 | Correct | 24 ms | 35944 KB | Output is correct |
5 | Correct | 31 ms | 35968 KB | Output is correct |
6 | Correct | 24 ms | 35968 KB | Output is correct |
7 | Correct | 25 ms | 35832 KB | Output is correct |
8 | Correct | 26 ms | 35840 KB | Output is correct |
9 | Correct | 24 ms | 35840 KB | Output is correct |
10 | Correct | 24 ms | 35840 KB | Output is correct |
11 | Correct | 25 ms | 35872 KB | Output is correct |
12 | Correct | 33 ms | 35968 KB | Output is correct |
13 | Correct | 34 ms | 35960 KB | Output is correct |
14 | Correct | 34 ms | 35968 KB | Output is correct |
15 | Correct | 33 ms | 35968 KB | Output is correct |
16 | Correct | 33 ms | 35968 KB | Output is correct |
17 | Correct | 33 ms | 35968 KB | Output is correct |
18 | Correct | 33 ms | 35968 KB | Output is correct |
19 | Correct | 33 ms | 35968 KB | Output is correct |
20 | Correct | 33 ms | 35960 KB | Output is correct |
21 | Correct | 33 ms | 35968 KB | Output is correct |
22 | Correct | 31 ms | 35968 KB | Output is correct |
23 | Correct | 32 ms | 35968 KB | Output is correct |
24 | Correct | 30 ms | 35968 KB | Output is correct |
25 | Correct | 31 ms | 35956 KB | Output is correct |
26 | Correct | 30 ms | 36000 KB | Output is correct |
27 | Correct | 32 ms | 35968 KB | Output is correct |
28 | Correct | 31 ms | 35960 KB | Output is correct |
29 | Correct | 31 ms | 35960 KB | Output is correct |
30 | Correct | 32 ms | 35968 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 24 ms | 35840 KB | Output is correct |
2 | Correct | 25 ms | 35840 KB | Output is correct |
3 | Correct | 25 ms | 35840 KB | Output is correct |
4 | Correct | 25 ms | 35968 KB | Output is correct |
5 | Correct | 28 ms | 35840 KB | Output is correct |
6 | Correct | 25 ms | 35840 KB | Output is correct |
7 | Correct | 25 ms | 35960 KB | Output is correct |
8 | Correct | 25 ms | 35832 KB | Output is correct |
9 | Correct | 25 ms | 35832 KB | Output is correct |
10 | Correct | 29 ms | 36096 KB | Output is correct |
11 | Correct | 29 ms | 36472 KB | Output is correct |
12 | Correct | 29 ms | 36352 KB | Output is correct |
13 | Correct | 30 ms | 36472 KB | Output is correct |
14 | Correct | 29 ms | 35960 KB | Output is correct |
15 | Correct | 28 ms | 35968 KB | Output is correct |
16 | Correct | 29 ms | 35968 KB | Output is correct |
17 | Correct | 28 ms | 35968 KB | Output is correct |
18 | Correct | 28 ms | 35968 KB | Output is correct |
19 | Correct | 28 ms | 35960 KB | Output is correct |
20 | Correct | 28 ms | 35968 KB | Output is correct |
21 | Correct | 28 ms | 35968 KB | Output is correct |
22 | Correct | 31 ms | 36352 KB | Output is correct |
23 | Correct | 31 ms | 36480 KB | Output is correct |
24 | Correct | 28 ms | 36096 KB | Output is correct |
25 | Correct | 28 ms | 36096 KB | Output is correct |
26 | Correct | 28 ms | 36096 KB | Output is correct |
27 | Correct | 28 ms | 36096 KB | Output is correct |
28 | Correct | 27 ms | 35960 KB | Output is correct |
29 | Correct | 27 ms | 35968 KB | Output is correct |
30 | Correct | 27 ms | 35968 KB | Output is correct |
31 | Correct | 28 ms | 35968 KB | Output is correct |
32 | Correct | 30 ms | 36608 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 24 ms | 35840 KB | Output is correct |
2 | Correct | 479 ms | 60716 KB | Output is correct |
3 | Correct | 341 ms | 40824 KB | Output is correct |
4 | Correct | 306 ms | 38520 KB | Output is correct |
5 | Correct | 268 ms | 36344 KB | Output is correct |
6 | Correct | 363 ms | 44008 KB | Output is correct |
7 | Correct | 316 ms | 39928 KB | Output is correct |
8 | Correct | 365 ms | 44056 KB | Output is correct |
9 | Correct | 317 ms | 40060 KB | Output is correct |
10 | Correct | 327 ms | 44152 KB | Output is correct |
11 | Correct | 292 ms | 39928 KB | Output is correct |
12 | Correct | 108 ms | 35968 KB | Output is correct |
13 | Correct | 29 ms | 35968 KB | Output is correct |
14 | Correct | 29 ms | 35960 KB | Output is correct |
15 | Correct | 32 ms | 35944 KB | Output is correct |
16 | Correct | 32 ms | 35968 KB | Output is correct |
17 | Correct | 44 ms | 35968 KB | Output is correct |
18 | Correct | 116 ms | 36344 KB | Output is correct |
19 | Correct | 41 ms | 35968 KB | Output is correct |
20 | Correct | 52 ms | 35968 KB | Output is correct |
21 | Correct | 54 ms | 35968 KB | Output is correct |
22 | Correct | 54 ms | 35968 KB | Output is correct |
23 | Correct | 144 ms | 48504 KB | Output is correct |
24 | Correct | 321 ms | 67576 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 24 ms | 35840 KB | Output is correct |
2 | Correct | 479 ms | 60716 KB | Output is correct |
3 | Correct | 341 ms | 40824 KB | Output is correct |
4 | Correct | 306 ms | 38520 KB | Output is correct |
5 | Correct | 268 ms | 36344 KB | Output is correct |
6 | Correct | 363 ms | 44008 KB | Output is correct |
7 | Correct | 316 ms | 39928 KB | Output is correct |
8 | Correct | 365 ms | 44056 KB | Output is correct |
9 | Correct | 317 ms | 40060 KB | Output is correct |
10 | Correct | 327 ms | 44152 KB | Output is correct |
11 | Correct | 292 ms | 39928 KB | Output is correct |
12 | Correct | 108 ms | 35968 KB | Output is correct |
13 | Correct | 29 ms | 35968 KB | Output is correct |
14 | Correct | 29 ms | 35960 KB | Output is correct |
15 | Correct | 32 ms | 35944 KB | Output is correct |
16 | Correct | 32 ms | 35968 KB | Output is correct |
17 | Correct | 44 ms | 35968 KB | Output is correct |
18 | Correct | 116 ms | 36344 KB | Output is correct |
19 | Correct | 41 ms | 35968 KB | Output is correct |
20 | Correct | 52 ms | 35968 KB | Output is correct |
21 | Correct | 54 ms | 35968 KB | Output is correct |
22 | Correct | 54 ms | 35968 KB | Output is correct |
23 | Correct | 144 ms | 48504 KB | Output is correct |
24 | Correct | 321 ms | 67576 KB | Output is correct |
25 | Correct | 741 ms | 71064 KB | Output is correct |
26 | Correct | 602 ms | 43548 KB | Output is correct |
27 | Correct | 558 ms | 40184 KB | Output is correct |
28 | Correct | 508 ms | 37496 KB | Output is correct |
29 | Correct | 472 ms | 36472 KB | Output is correct |
30 | Correct | 515 ms | 36864 KB | Output is correct |
31 | Correct | 367 ms | 44152 KB | Output is correct |
32 | Correct | 354 ms | 40184 KB | Output is correct |
33 | Correct | 364 ms | 44072 KB | Output is correct |
34 | Correct | 310 ms | 39928 KB | Output is correct |
35 | Correct | 333 ms | 44152 KB | Output is correct |
36 | Correct | 287 ms | 40060 KB | Output is correct |
37 | Correct | 96 ms | 35960 KB | Output is correct |
38 | Correct | 28 ms | 35968 KB | Output is correct |
39 | Correct | 29 ms | 36096 KB | Output is correct |
40 | Correct | 460 ms | 134512 KB | Output is correct |
41 | Correct | 483 ms | 152064 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 24 ms | 35880 KB | Output is correct |
2 | Correct | 24 ms | 35860 KB | Output is correct |
3 | Correct | 25 ms | 35968 KB | Output is correct |
4 | Correct | 27 ms | 36096 KB | Output is correct |
5 | Correct | 25 ms | 35968 KB | Output is correct |
6 | Correct | 26 ms | 35968 KB | Output is correct |
7 | Correct | 26 ms | 36096 KB | Output is correct |
8 | Correct | 27 ms | 36480 KB | Output is correct |
9 | Correct | 26 ms | 35968 KB | Output is correct |
10 | Correct | 27 ms | 35968 KB | Output is correct |
11 | Correct | 27 ms | 35968 KB | Output is correct |
12 | Correct | 26 ms | 35960 KB | Output is correct |
13 | Correct | 26 ms | 35968 KB | Output is correct |
14 | Correct | 26 ms | 35968 KB | Output is correct |
15 | Correct | 27 ms | 35968 KB | Output is correct |
16 | Correct | 26 ms | 35960 KB | Output is correct |
17 | Correct | 27 ms | 36224 KB | Output is correct |
18 | Correct | 27 ms | 36224 KB | Output is correct |
19 | Correct | 26 ms | 36096 KB | Output is correct |
20 | Correct | 27 ms | 36096 KB | Output is correct |
21 | Correct | 27 ms | 36224 KB | Output is correct |
22 | Correct | 28 ms | 36344 KB | Output is correct |
23 | Correct | 27 ms | 36096 KB | Output is correct |
24 | Correct | 27 ms | 36224 KB | Output is correct |
25 | Correct | 27 ms | 36096 KB | Output is correct |
26 | Correct | 25 ms | 35968 KB | Output is correct |
27 | Correct | 26 ms | 35968 KB | Output is correct |
28 | Correct | 25 ms | 35968 KB | Output is correct |
29 | Correct | 25 ms | 35840 KB | Output is correct |
30 | Correct | 25 ms | 35968 KB | Output is correct |
31 | Correct | 25 ms | 35968 KB | Output is correct |
32 | Correct | 25 ms | 35968 KB | Output is correct |
33 | Correct | 25 ms | 35968 KB | Output is correct |
34 | Correct | 26 ms | 35968 KB | Output is correct |
35 | Correct | 28 ms | 35968 KB | Output is correct |
36 | Correct | 25 ms | 35964 KB | Output is correct |
37 | Correct | 26 ms | 35968 KB | Output is correct |
38 | Correct | 27 ms | 35960 KB | Output is correct |
39 | Correct | 26 ms | 35968 KB | Output is correct |
40 | Correct | 27 ms | 35968 KB | Output is correct |
41 | Correct | 26 ms | 35968 KB | Output is correct |
42 | Correct | 26 ms | 35968 KB | Output is correct |
43 | Correct | 26 ms | 36524 KB | Output is correct |
44 | Correct | 27 ms | 36384 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 24 ms | 35880 KB | Output is correct |
2 | Correct | 24 ms | 35860 KB | Output is correct |
3 | Correct | 25 ms | 35968 KB | Output is correct |
4 | Correct | 27 ms | 36096 KB | Output is correct |
5 | Correct | 25 ms | 35968 KB | Output is correct |
6 | Correct | 26 ms | 35968 KB | Output is correct |
7 | Correct | 26 ms | 36096 KB | Output is correct |
8 | Correct | 27 ms | 36480 KB | Output is correct |
9 | Correct | 26 ms | 35968 KB | Output is correct |
10 | Correct | 27 ms | 35968 KB | Output is correct |
11 | Correct | 27 ms | 35968 KB | Output is correct |
12 | Correct | 26 ms | 35960 KB | Output is correct |
13 | Correct | 26 ms | 35968 KB | Output is correct |
14 | Correct | 26 ms | 35968 KB | Output is correct |
15 | Correct | 27 ms | 35968 KB | Output is correct |
16 | Correct | 26 ms | 35960 KB | Output is correct |
17 | Correct | 27 ms | 36224 KB | Output is correct |
18 | Correct | 27 ms | 36224 KB | Output is correct |
19 | Correct | 26 ms | 36096 KB | Output is correct |
20 | Correct | 27 ms | 36096 KB | Output is correct |
21 | Correct | 27 ms | 36224 KB | Output is correct |
22 | Correct | 28 ms | 36344 KB | Output is correct |
23 | Correct | 27 ms | 36096 KB | Output is correct |
24 | Correct | 27 ms | 36224 KB | Output is correct |
25 | Correct | 27 ms | 36096 KB | Output is correct |
26 | Correct | 25 ms | 35968 KB | Output is correct |
27 | Correct | 26 ms | 35968 KB | Output is correct |
28 | Correct | 25 ms | 35968 KB | Output is correct |
29 | Correct | 25 ms | 35840 KB | Output is correct |
30 | Correct | 25 ms | 35968 KB | Output is correct |
31 | Correct | 25 ms | 35968 KB | Output is correct |
32 | Correct | 25 ms | 35968 KB | Output is correct |
33 | Correct | 25 ms | 35968 KB | Output is correct |
34 | Correct | 26 ms | 35968 KB | Output is correct |
35 | Correct | 28 ms | 35968 KB | Output is correct |
36 | Correct | 25 ms | 35964 KB | Output is correct |
37 | Correct | 26 ms | 35968 KB | Output is correct |
38 | Correct | 27 ms | 35960 KB | Output is correct |
39 | Correct | 26 ms | 35968 KB | Output is correct |
40 | Correct | 27 ms | 35968 KB | Output is correct |
41 | Correct | 26 ms | 35968 KB | Output is correct |
42 | Correct | 26 ms | 35968 KB | Output is correct |
43 | Correct | 26 ms | 36524 KB | Output is correct |
44 | Correct | 27 ms | 36384 KB | Output is correct |
45 | Correct | 818 ms | 57592 KB | Output is correct |
46 | Correct | 957 ms | 122232 KB | Output is correct |
47 | Correct | 1010 ms | 81272 KB | Output is correct |
48 | Correct | 566 ms | 38520 KB | Output is correct |
49 | Correct | 406 ms | 40184 KB | Output is correct |
50 | Correct | 384 ms | 37368 KB | Output is correct |
51 | Correct | 26 ms | 35840 KB | Output is correct |
52 | Correct | 26 ms | 35840 KB | Output is correct |
53 | Correct | 50 ms | 35968 KB | Output is correct |
54 | Correct | 36 ms | 35960 KB | Output is correct |
55 | Correct | 364 ms | 39288 KB | Output is correct |
56 | Correct | 380 ms | 36856 KB | Output is correct |
57 | Correct | 441 ms | 37264 KB | Output is correct |
58 | Correct | 400 ms | 41724 KB | Output is correct |
59 | Correct | 393 ms | 37304 KB | Output is correct |
60 | Correct | 442 ms | 38904 KB | Output is correct |
61 | Correct | 623 ms | 50152 KB | Output is correct |
62 | Correct | 479 ms | 106360 KB | Output is correct |
63 | Correct | 317 ms | 72440 KB | Output is correct |
64 | Correct | 289 ms | 37116 KB | Output is correct |
65 | Correct | 615 ms | 74488 KB | Output is correct |
66 | Correct | 737 ms | 73464 KB | Output is correct |
67 | Correct | 820 ms | 83668 KB | Output is correct |
68 | Correct | 756 ms | 85756 KB | Output is correct |
69 | Correct | 713 ms | 79736 KB | Output is correct |
70 | Correct | 857 ms | 102708 KB | Output is correct |
71 | Correct | 602 ms | 185860 KB | Output is correct |
72 | Correct | 168 ms | 36092 KB | Output is correct |
73 | Correct | 759 ms | 85368 KB | Output is correct |
74 | Correct | 614 ms | 69112 KB | Output is correct |
75 | Correct | 74 ms | 36216 KB | Output is correct |
76 | Correct | 76 ms | 36216 KB | Output is correct |
77 | Correct | 65 ms | 36216 KB | Output is correct |
78 | Correct | 90 ms | 36376 KB | Output is correct |
79 | Correct | 260 ms | 44364 KB | Output is correct |
80 | Correct | 259 ms | 44280 KB | Output is correct |
81 | Correct | 254 ms | 44312 KB | Output is correct |
82 | Correct | 261 ms | 44344 KB | Output is correct |
83 | Correct | 514 ms | 159148 KB | Output is correct |
84 | Correct | 464 ms | 134904 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 25 ms | 35840 KB | Output is correct |
2 | Correct | 24 ms | 35840 KB | Output is correct |
3 | Correct | 25 ms | 35840 KB | Output is correct |
4 | Correct | 24 ms | 35944 KB | Output is correct |
5 | Correct | 31 ms | 35968 KB | Output is correct |
6 | Correct | 24 ms | 35968 KB | Output is correct |
7 | Correct | 25 ms | 35832 KB | Output is correct |
8 | Correct | 26 ms | 35840 KB | Output is correct |
9 | Correct | 24 ms | 35840 KB | Output is correct |
10 | Correct | 24 ms | 35840 KB | Output is correct |
11 | Correct | 25 ms | 35872 KB | Output is correct |
12 | Correct | 33 ms | 35968 KB | Output is correct |
13 | Correct | 34 ms | 35960 KB | Output is correct |
14 | Correct | 34 ms | 35968 KB | Output is correct |
15 | Correct | 33 ms | 35968 KB | Output is correct |
16 | Correct | 33 ms | 35968 KB | Output is correct |
17 | Correct | 33 ms | 35968 KB | Output is correct |
18 | Correct | 33 ms | 35968 KB | Output is correct |
19 | Correct | 33 ms | 35968 KB | Output is correct |
20 | Correct | 33 ms | 35960 KB | Output is correct |
21 | Correct | 33 ms | 35968 KB | Output is correct |
22 | Correct | 31 ms | 35968 KB | Output is correct |
23 | Correct | 32 ms | 35968 KB | Output is correct |
24 | Correct | 30 ms | 35968 KB | Output is correct |
25 | Correct | 31 ms | 35956 KB | Output is correct |
26 | Correct | 30 ms | 36000 KB | Output is correct |
27 | Correct | 32 ms | 35968 KB | Output is correct |
28 | Correct | 31 ms | 35960 KB | Output is correct |
29 | Correct | 31 ms | 35960 KB | Output is correct |
30 | Correct | 32 ms | 35968 KB | Output is correct |
31 | Correct | 24 ms | 35840 KB | Output is correct |
32 | Correct | 25 ms | 35840 KB | Output is correct |
33 | Correct | 25 ms | 35840 KB | Output is correct |
34 | Correct | 25 ms | 35968 KB | Output is correct |
35 | Correct | 28 ms | 35840 KB | Output is correct |
36 | Correct | 25 ms | 35840 KB | Output is correct |
37 | Correct | 25 ms | 35960 KB | Output is correct |
38 | Correct | 25 ms | 35832 KB | Output is correct |
39 | Correct | 25 ms | 35832 KB | Output is correct |
40 | Correct | 29 ms | 36096 KB | Output is correct |
41 | Correct | 29 ms | 36472 KB | Output is correct |
42 | Correct | 29 ms | 36352 KB | Output is correct |
43 | Correct | 30 ms | 36472 KB | Output is correct |
44 | Correct | 29 ms | 35960 KB | Output is correct |
45 | Correct | 28 ms | 35968 KB | Output is correct |
46 | Correct | 29 ms | 35968 KB | Output is correct |
47 | Correct | 28 ms | 35968 KB | Output is correct |
48 | Correct | 28 ms | 35968 KB | Output is correct |
49 | Correct | 28 ms | 35960 KB | Output is correct |
50 | Correct | 28 ms | 35968 KB | Output is correct |
51 | Correct | 28 ms | 35968 KB | Output is correct |
52 | Correct | 31 ms | 36352 KB | Output is correct |
53 | Correct | 31 ms | 36480 KB | Output is correct |
54 | Correct | 28 ms | 36096 KB | Output is correct |
55 | Correct | 28 ms | 36096 KB | Output is correct |
56 | Correct | 28 ms | 36096 KB | Output is correct |
57 | Correct | 28 ms | 36096 KB | Output is correct |
58 | Correct | 27 ms | 35960 KB | Output is correct |
59 | Correct | 27 ms | 35968 KB | Output is correct |
60 | Correct | 27 ms | 35968 KB | Output is correct |
61 | Correct | 28 ms | 35968 KB | Output is correct |
62 | Correct | 30 ms | 36608 KB | Output is correct |
63 | Correct | 24 ms | 35840 KB | Output is correct |
64 | Correct | 479 ms | 60716 KB | Output is correct |
65 | Correct | 341 ms | 40824 KB | Output is correct |
66 | Correct | 306 ms | 38520 KB | Output is correct |
67 | Correct | 268 ms | 36344 KB | Output is correct |
68 | Correct | 363 ms | 44008 KB | Output is correct |
69 | Correct | 316 ms | 39928 KB | Output is correct |
70 | Correct | 365 ms | 44056 KB | Output is correct |
71 | Correct | 317 ms | 40060 KB | Output is correct |
72 | Correct | 327 ms | 44152 KB | Output is correct |
73 | Correct | 292 ms | 39928 KB | Output is correct |
74 | Correct | 108 ms | 35968 KB | Output is correct |
75 | Correct | 29 ms | 35968 KB | Output is correct |
76 | Correct | 29 ms | 35960 KB | Output is correct |
77 | Correct | 32 ms | 35944 KB | Output is correct |
78 | Correct | 32 ms | 35968 KB | Output is correct |
79 | Correct | 44 ms | 35968 KB | Output is correct |
80 | Correct | 116 ms | 36344 KB | Output is correct |
81 | Correct | 41 ms | 35968 KB | Output is correct |
82 | Correct | 52 ms | 35968 KB | Output is correct |
83 | Correct | 54 ms | 35968 KB | Output is correct |
84 | Correct | 54 ms | 35968 KB | Output is correct |
85 | Correct | 144 ms | 48504 KB | Output is correct |
86 | Correct | 321 ms | 67576 KB | Output is correct |
87 | Correct | 741 ms | 71064 KB | Output is correct |
88 | Correct | 602 ms | 43548 KB | Output is correct |
89 | Correct | 558 ms | 40184 KB | Output is correct |
90 | Correct | 508 ms | 37496 KB | Output is correct |
91 | Correct | 472 ms | 36472 KB | Output is correct |
92 | Correct | 515 ms | 36864 KB | Output is correct |
93 | Correct | 367 ms | 44152 KB | Output is correct |
94 | Correct | 354 ms | 40184 KB | Output is correct |
95 | Correct | 364 ms | 44072 KB | Output is correct |
96 | Correct | 310 ms | 39928 KB | Output is correct |
97 | Correct | 333 ms | 44152 KB | Output is correct |
98 | Correct | 287 ms | 40060 KB | Output is correct |
99 | Correct | 96 ms | 35960 KB | Output is correct |
100 | Correct | 28 ms | 35968 KB | Output is correct |
101 | Correct | 29 ms | 36096 KB | Output is correct |
102 | Correct | 460 ms | 134512 KB | Output is correct |
103 | Correct | 483 ms | 152064 KB | Output is correct |
104 | Correct | 24 ms | 35880 KB | Output is correct |
105 | Correct | 24 ms | 35860 KB | Output is correct |
106 | Correct | 25 ms | 35968 KB | Output is correct |
107 | Correct | 27 ms | 36096 KB | Output is correct |
108 | Correct | 25 ms | 35968 KB | Output is correct |
109 | Correct | 26 ms | 35968 KB | Output is correct |
110 | Correct | 26 ms | 36096 KB | Output is correct |
111 | Correct | 27 ms | 36480 KB | Output is correct |
112 | Correct | 26 ms | 35968 KB | Output is correct |
113 | Correct | 27 ms | 35968 KB | Output is correct |
114 | Correct | 27 ms | 35968 KB | Output is correct |
115 | Correct | 26 ms | 35960 KB | Output is correct |
116 | Correct | 26 ms | 35968 KB | Output is correct |
117 | Correct | 26 ms | 35968 KB | Output is correct |
118 | Correct | 27 ms | 35968 KB | Output is correct |
119 | Correct | 26 ms | 35960 KB | Output is correct |
120 | Correct | 27 ms | 36224 KB | Output is correct |
121 | Correct | 27 ms | 36224 KB | Output is correct |
122 | Correct | 26 ms | 36096 KB | Output is correct |
123 | Correct | 27 ms | 36096 KB | Output is correct |
124 | Correct | 27 ms | 36224 KB | Output is correct |
125 | Correct | 28 ms | 36344 KB | Output is correct |
126 | Correct | 27 ms | 36096 KB | Output is correct |
127 | Correct | 27 ms | 36224 KB | Output is correct |
128 | Correct | 27 ms | 36096 KB | Output is correct |
129 | Correct | 25 ms | 35968 KB | Output is correct |
130 | Correct | 26 ms | 35968 KB | Output is correct |
131 | Correct | 25 ms | 35968 KB | Output is correct |
132 | Correct | 25 ms | 35840 KB | Output is correct |
133 | Correct | 25 ms | 35968 KB | Output is correct |
134 | Correct | 25 ms | 35968 KB | Output is correct |
135 | Correct | 25 ms | 35968 KB | Output is correct |
136 | Correct | 25 ms | 35968 KB | Output is correct |
137 | Correct | 26 ms | 35968 KB | Output is correct |
138 | Correct | 28 ms | 35968 KB | Output is correct |
139 | Correct | 25 ms | 35964 KB | Output is correct |
140 | Correct | 26 ms | 35968 KB | Output is correct |
141 | Correct | 27 ms | 35960 KB | Output is correct |
142 | Correct | 26 ms | 35968 KB | Output is correct |
143 | Correct | 27 ms | 35968 KB | Output is correct |
144 | Correct | 26 ms | 35968 KB | Output is correct |
145 | Correct | 26 ms | 35968 KB | Output is correct |
146 | Correct | 26 ms | 36524 KB | Output is correct |
147 | Correct | 27 ms | 36384 KB | Output is correct |
148 | Correct | 818 ms | 57592 KB | Output is correct |
149 | Correct | 957 ms | 122232 KB | Output is correct |
150 | Correct | 1010 ms | 81272 KB | Output is correct |
151 | Correct | 566 ms | 38520 KB | Output is correct |
152 | Correct | 406 ms | 40184 KB | Output is correct |
153 | Correct | 384 ms | 37368 KB | Output is correct |
154 | Correct | 26 ms | 35840 KB | Output is correct |
155 | Correct | 26 ms | 35840 KB | Output is correct |
156 | Correct | 50 ms | 35968 KB | Output is correct |
157 | Correct | 36 ms | 35960 KB | Output is correct |
158 | Correct | 364 ms | 39288 KB | Output is correct |
159 | Correct | 380 ms | 36856 KB | Output is correct |
160 | Correct | 441 ms | 37264 KB | Output is correct |
161 | Correct | 400 ms | 41724 KB | Output is correct |
162 | Correct | 393 ms | 37304 KB | Output is correct |
163 | Correct | 442 ms | 38904 KB | Output is correct |
164 | Correct | 623 ms | 50152 KB | Output is correct |
165 | Correct | 479 ms | 106360 KB | Output is correct |
166 | Correct | 317 ms | 72440 KB | Output is correct |
167 | Correct | 289 ms | 37116 KB | Output is correct |
168 | Correct | 615 ms | 74488 KB | Output is correct |
169 | Correct | 737 ms | 73464 KB | Output is correct |
170 | Correct | 820 ms | 83668 KB | Output is correct |
171 | Correct | 756 ms | 85756 KB | Output is correct |
172 | Correct | 713 ms | 79736 KB | Output is correct |
173 | Correct | 857 ms | 102708 KB | Output is correct |
174 | Correct | 602 ms | 185860 KB | Output is correct |
175 | Correct | 168 ms | 36092 KB | Output is correct |
176 | Correct | 759 ms | 85368 KB | Output is correct |
177 | Correct | 614 ms | 69112 KB | Output is correct |
178 | Correct | 74 ms | 36216 KB | Output is correct |
179 | Correct | 76 ms | 36216 KB | Output is correct |
180 | Correct | 65 ms | 36216 KB | Output is correct |
181 | Correct | 90 ms | 36376 KB | Output is correct |
182 | Correct | 260 ms | 44364 KB | Output is correct |
183 | Correct | 259 ms | 44280 KB | Output is correct |
184 | Correct | 254 ms | 44312 KB | Output is correct |
185 | Correct | 261 ms | 44344 KB | Output is correct |
186 | Correct | 514 ms | 159148 KB | Output is correct |
187 | Correct | 464 ms | 134904 KB | Output is correct |
188 | Correct | 844 ms | 57572 KB | Output is correct |
189 | Correct | 1022 ms | 122116 KB | Output is correct |
190 | Correct | 1056 ms | 81260 KB | Output is correct |
191 | Correct | 653 ms | 39780 KB | Output is correct |
192 | Correct | 587 ms | 36896 KB | Output is correct |
193 | Correct | 526 ms | 36684 KB | Output is correct |
194 | Correct | 490 ms | 40296 KB | Output is correct |
195 | Correct | 459 ms | 37368 KB | Output is correct |
196 | Correct | 840 ms | 51192 KB | Output is correct |
197 | Correct | 852 ms | 55268 KB | Output is correct |
198 | Correct | 792 ms | 51088 KB | Output is correct |
199 | Correct | 823 ms | 52704 KB | Output is correct |
200 | Correct | 818 ms | 51180 KB | Output is correct |
201 | Correct | 774 ms | 55240 KB | Output is correct |
202 | Correct | 689 ms | 39160 KB | Output is correct |
203 | Correct | 440 ms | 37584 KB | Output is correct |
204 | Correct | 301 ms | 36728 KB | Output is correct |
205 | Correct | 112 ms | 36088 KB | Output is correct |
206 | Correct | 972 ms | 42428 KB | Output is correct |
207 | Correct | 790 ms | 39416 KB | Output is correct |
208 | Correct | 566 ms | 37388 KB | Output is correct |
209 | Correct | 806 ms | 278000 KB | Output is correct |
210 | Correct | 797 ms | 278136 KB | Output is correct |
211 | Correct | 600 ms | 49292 KB | Output is correct |
212 | Correct | 504 ms | 163064 KB | Output is correct |
213 | Correct | 522 ms | 174820 KB | Output is correct |
214 | Correct | 37 ms | 38272 KB | Output is correct |
215 | Correct | 77 ms | 45052 KB | Output is correct |
216 | Correct | 142 ms | 58488 KB | Output is correct |
217 | Correct | 228 ms | 71164 KB | Output is correct |
218 | Correct | 346 ms | 86136 KB | Output is correct |
219 | Correct | 503 ms | 113240 KB | Output is correct |
220 | Correct | 673 ms | 138192 KB | Output is correct |
221 | Correct | 46 ms | 41080 KB | Output is correct |
222 | Correct | 115 ms | 55416 KB | Output is correct |
223 | Correct | 219 ms | 70392 KB | Output is correct |
224 | Correct | 356 ms | 90500 KB | Output is correct |
225 | Correct | 566 ms | 127420 KB | Output is correct |
226 | Correct | 814 ms | 158256 KB | Output is correct |
227 | Correct | 1073 ms | 194232 KB | Output is correct |
228 | Correct | 1122 ms | 202248 KB | Output is correct |