# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1022224 | 2024-07-13T11:17:49 Z | parsadox2 | Shortcut (IOI16_shortcut) | C++17 | 2000 ms | 94544 KB |
#include "shortcut.h" #include <bits/stdc++.h> using namespace std; const int N = 1e6 + 10; const long long int inf = 1e18; long long n , c , d[N]; long long s[N]; struct NODE{ long long mxp , mxm; long long ans; NODE(){ mxp = mxm = ans = 0; } }; struct SEG{ NODE t[N << 2]; NODE Merge(NODE aa , NODE bb) { NODE res; res.mxp = max(aa.mxp , bb.mxp); res.mxm = max(aa.mxm , bb.mxm); res.ans = max({aa.ans , bb.ans , 1LL * bb.mxp + aa.mxm}); return res; } void Build(int node = 1 , int nl = 0 , int nr = n) { if(nr - nl == 1) { t[node].mxp = d[nl] + s[nl]; t[node].mxm = d[nl] - s[nl]; t[node].ans = 0; return; } int mid = (nl + nr) >> 1 , lc = node << 1 , rc = lc | 1; Build(lc , nl , mid); Build(rc , mid , nr); t[node] = Merge(t[lc] , t[rc]); } NODE Get(int l , int r , int node = 1 , int nl = 0 , int nr = n) { if(r <= nl || nr <= l || r <= l) { NODE emp; emp.mxm = -inf; return emp; } if(l <= nl && nr <= r) { //cout << "WTFFF " << nl << " " << nr << " " << t[node].mxm << endl; return t[node]; } int mid = (nl + nr) >> 1 , lc = node << 1 , rc = lc | 1; return Merge(Get(l , r , lc , nl , mid) , Get(l , r , rc , mid , nr)); } } seg; long long Solve(int a , int b) { if(c >= s[b] - s[a]) return seg.Get(0 , n).ans; auto L = seg.Get(0 , a + 1) , R = seg.Get(b , n); long long res = max({L.ans , R.ans , R.mxp - s[b] + s[a] + L.mxm + min(c , s[b] - s[a])}); //cout << a << " " << b << " " << res << endl; long long tmp = (c + s[a] + s[b]) / 2; int pos = upper_bound(s , s + n , tmp) - s; pos = min(pos , b + 1); auto L1 = seg.Get(0 , pos) , L2 = seg.Get(pos , b + 1); //cout << "WTF " << L1.ans << " " << L.mxm << " " << L2.mxm << endl; res = max({res , L1.ans , c + s[b] + s[a] + L.mxm + L2.mxm}); //cout << a << " " << b << " p1 " << pos << " " << res << endl; tmp = (s[a] + s[b] - c) / 2; if(s[a] + s[b] - c < 0) tmp = -1; pos = upper_bound(s , s + n , tmp) - s; pos = max(pos , a); auto R1 = seg.Get(a , pos) , R2 = seg.Get(pos , n); //cout << "WTF " << R2.ans << " " << R.mxp << " " << R1.mxp << endl; res = max({res , R2.ans , c - s[a] - s[b] + R.mxp + R1.mxp}); //cout << a << " " << b << " p2 " << pos << " " << res << endl; for(int i = a ; i < b ; i++) for(int j = i + 1 ; j < b ; j++) res = max(res , min(d[i] + d[j] + s[j] - s[i] , d[i] + d[j] + c + s[b] - s[a] - s[j] + s[i])); //cout << a << " " << b << " " << res << endl; return res; } long long find_shortcut(int nn, std::vector<int> l, std::vector<int> D, int C) { n = nn; c = C; for(int i = 1 ; i < n ; i++) s[i] = s[i - 1] + l[i - 1]; for(int i = 0 ; i < n ; i++) d[i] = D[i]; seg.Build(); long long res = inf; for(int a = 0 ; a + 1 < n ; a++) for(int b = a + 1 ; b < n ; b++) { //cout << a << " " << b << endl; res = min(res , Solve(a , b)); } return res; }
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 39 ms | 94292 KB | n = 4, 80 is a correct answer |
2 | Correct | 40 ms | 94124 KB | n = 9, 110 is a correct answer |
3 | Correct | 39 ms | 94220 KB | n = 4, 21 is a correct answer |
4 | Correct | 40 ms | 94292 KB | n = 3, 4 is a correct answer |
5 | Correct | 38 ms | 94288 KB | n = 2, 62 is a correct answer |
6 | Correct | 41 ms | 94300 KB | n = 2, 3 is a correct answer |
7 | Correct | 42 ms | 94292 KB | n = 3, 29 is a correct answer |
8 | Correct | 39 ms | 94296 KB | n = 2, 3 is a correct answer |
9 | Correct | 39 ms | 94292 KB | n = 2, 3 is a correct answer |
10 | Correct | 43 ms | 94204 KB | n = 2, 2000000001 is a correct answer |
11 | Correct | 40 ms | 94288 KB | n = 2, 3000000000 is a correct answer |
12 | Correct | 36 ms | 94152 KB | n = 3, 3000000000 is a correct answer |
13 | Correct | 38 ms | 94184 KB | n = 3, 3000000000 is a correct answer |
14 | Correct | 35 ms | 94300 KB | n = 4, 3000000001 is a correct answer |
15 | Correct | 36 ms | 94236 KB | n = 4, 4000000000 is a correct answer |
16 | Correct | 39 ms | 94288 KB | n = 5, 4000000000 is a correct answer |
17 | Correct | 39 ms | 94288 KB | n = 10, 1000000343 is a correct answer |
18 | Correct | 38 ms | 94288 KB | n = 10, 3189 is a correct answer |
19 | Correct | 37 ms | 94284 KB | n = 10, 7000000000 is a correct answer |
20 | Correct | 38 ms | 94288 KB | n = 5, 12 is a correct answer |
21 | Correct | 43 ms | 94300 KB | n = 5, 25 is a correct answer |
22 | Correct | 37 ms | 94300 KB | n = 2, 122 is a correct answer |
23 | Correct | 37 ms | 94292 KB | n = 10, 117 is a correct answer |
24 | Correct | 39 ms | 94124 KB | n = 10, 336 is a correct answer |
25 | Correct | 39 ms | 94348 KB | n = 10, 438 is a correct answer |
26 | Correct | 49 ms | 94292 KB | n = 10, 206 is a correct answer |
27 | Correct | 40 ms | 94288 KB | n = 10, 636 is a correct answer |
28 | Correct | 38 ms | 94288 KB | n = 4, 2399 is a correct answer |
29 | Correct | 38 ms | 94300 KB | n = 10, 10992 is a correct answer |
30 | Correct | 39 ms | 94288 KB | n = 10, 3112 is a correct answer |
31 | Correct | 44 ms | 94292 KB | n = 100, 51000000001 is a correct answer |
32 | Correct | 38 ms | 94292 KB | n = 50, 197881272 is a correct answer |
33 | Correct | 53 ms | 94292 KB | n = 100, 20969 is a correct answer |
34 | Correct | 47 ms | 94360 KB | n = 100, 20969 is a correct answer |
35 | Correct | 46 ms | 94368 KB | n = 100, 52000000000 is a correct answer |
36 | Correct | 60 ms | 94288 KB | n = 100, 285 is a correct answer |
37 | Correct | 47 ms | 94256 KB | n = 100, 21272 is a correct answer |
38 | Correct | 48 ms | 94544 KB | n = 100, 12161 is a correct answer |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 39 ms | 94292 KB | n = 4, 80 is a correct answer |
2 | Correct | 40 ms | 94124 KB | n = 9, 110 is a correct answer |
3 | Correct | 39 ms | 94220 KB | n = 4, 21 is a correct answer |
4 | Correct | 40 ms | 94292 KB | n = 3, 4 is a correct answer |
5 | Correct | 38 ms | 94288 KB | n = 2, 62 is a correct answer |
6 | Correct | 41 ms | 94300 KB | n = 2, 3 is a correct answer |
7 | Correct | 42 ms | 94292 KB | n = 3, 29 is a correct answer |
8 | Correct | 39 ms | 94296 KB | n = 2, 3 is a correct answer |
9 | Correct | 39 ms | 94292 KB | n = 2, 3 is a correct answer |
10 | Correct | 43 ms | 94204 KB | n = 2, 2000000001 is a correct answer |
11 | Correct | 40 ms | 94288 KB | n = 2, 3000000000 is a correct answer |
12 | Correct | 36 ms | 94152 KB | n = 3, 3000000000 is a correct answer |
13 | Correct | 38 ms | 94184 KB | n = 3, 3000000000 is a correct answer |
14 | Correct | 35 ms | 94300 KB | n = 4, 3000000001 is a correct answer |
15 | Correct | 36 ms | 94236 KB | n = 4, 4000000000 is a correct answer |
16 | Correct | 39 ms | 94288 KB | n = 5, 4000000000 is a correct answer |
17 | Correct | 39 ms | 94288 KB | n = 10, 1000000343 is a correct answer |
18 | Correct | 38 ms | 94288 KB | n = 10, 3189 is a correct answer |
19 | Correct | 37 ms | 94284 KB | n = 10, 7000000000 is a correct answer |
20 | Correct | 38 ms | 94288 KB | n = 5, 12 is a correct answer |
21 | Correct | 43 ms | 94300 KB | n = 5, 25 is a correct answer |
22 | Correct | 37 ms | 94300 KB | n = 2, 122 is a correct answer |
23 | Correct | 37 ms | 94292 KB | n = 10, 117 is a correct answer |
24 | Correct | 39 ms | 94124 KB | n = 10, 336 is a correct answer |
25 | Correct | 39 ms | 94348 KB | n = 10, 438 is a correct answer |
26 | Correct | 49 ms | 94292 KB | n = 10, 206 is a correct answer |
27 | Correct | 40 ms | 94288 KB | n = 10, 636 is a correct answer |
28 | Correct | 38 ms | 94288 KB | n = 4, 2399 is a correct answer |
29 | Correct | 38 ms | 94300 KB | n = 10, 10992 is a correct answer |
30 | Correct | 39 ms | 94288 KB | n = 10, 3112 is a correct answer |
31 | Correct | 44 ms | 94292 KB | n = 100, 51000000001 is a correct answer |
32 | Correct | 38 ms | 94292 KB | n = 50, 197881272 is a correct answer |
33 | Correct | 53 ms | 94292 KB | n = 100, 20969 is a correct answer |
34 | Correct | 47 ms | 94360 KB | n = 100, 20969 is a correct answer |
35 | Correct | 46 ms | 94368 KB | n = 100, 52000000000 is a correct answer |
36 | Correct | 60 ms | 94288 KB | n = 100, 285 is a correct answer |
37 | Correct | 47 ms | 94256 KB | n = 100, 21272 is a correct answer |
38 | Correct | 48 ms | 94544 KB | n = 100, 12161 is a correct answer |
39 | Correct | 43 ms | 94288 KB | n = 2, 62 is a correct answer |
40 | Correct | 40 ms | 94292 KB | n = 2, 3 is a correct answer |
41 | Correct | 40 ms | 94300 KB | n = 3, 29 is a correct answer |
42 | Correct | 60 ms | 94292 KB | n = 2, 3 is a correct answer |
43 | Correct | 38 ms | 94292 KB | n = 2, 3 is a correct answer |
44 | Correct | 39 ms | 94260 KB | n = 2, 2000000001 is a correct answer |
45 | Correct | 35 ms | 94200 KB | n = 2, 3000000000 is a correct answer |
46 | Correct | 35 ms | 94300 KB | n = 3, 3000000000 is a correct answer |
47 | Correct | 53 ms | 94296 KB | n = 3, 3000000000 is a correct answer |
48 | Correct | 40 ms | 94296 KB | n = 4, 3000000001 is a correct answer |
49 | Correct | 37 ms | 94292 KB | n = 4, 4000000000 is a correct answer |
50 | Correct | 38 ms | 94168 KB | n = 5, 4000000000 is a correct answer |
51 | Correct | 35 ms | 94252 KB | n = 10, 1000000343 is a correct answer |
52 | Correct | 41 ms | 94288 KB | n = 10, 3189 is a correct answer |
53 | Correct | 37 ms | 94300 KB | n = 10, 7000000000 is a correct answer |
54 | Correct | 40 ms | 94364 KB | n = 5, 12 is a correct answer |
55 | Correct | 41 ms | 94292 KB | n = 5, 25 is a correct answer |
56 | Correct | 43 ms | 94316 KB | n = 2, 122 is a correct answer |
57 | Correct | 42 ms | 94220 KB | n = 10, 117 is a correct answer |
58 | Correct | 42 ms | 94240 KB | n = 10, 336 is a correct answer |
59 | Correct | 40 ms | 94356 KB | n = 10, 438 is a correct answer |
60 | Correct | 42 ms | 94172 KB | n = 10, 206 is a correct answer |
61 | Correct | 39 ms | 94292 KB | n = 10, 636 is a correct answer |
62 | Correct | 40 ms | 94160 KB | n = 4, 2399 is a correct answer |
63 | Correct | 42 ms | 94292 KB | n = 10, 10992 is a correct answer |
64 | Correct | 40 ms | 94292 KB | n = 10, 3112 is a correct answer |
65 | Correct | 52 ms | 94292 KB | n = 100, 51000000001 is a correct answer |
66 | Correct | 43 ms | 94284 KB | n = 50, 197881272 is a correct answer |
67 | Correct | 51 ms | 94320 KB | n = 100, 20969 is a correct answer |
68 | Correct | 49 ms | 94132 KB | n = 100, 20969 is a correct answer |
69 | Correct | 47 ms | 94312 KB | n = 100, 52000000000 is a correct answer |
70 | Correct | 48 ms | 94312 KB | n = 100, 285 is a correct answer |
71 | Correct | 49 ms | 94288 KB | n = 100, 21272 is a correct answer |
72 | Correct | 46 ms | 94128 KB | n = 100, 12161 is a correct answer |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 39 ms | 94292 KB | n = 4, 80 is a correct answer |
2 | Correct | 40 ms | 94124 KB | n = 9, 110 is a correct answer |
3 | Correct | 39 ms | 94220 KB | n = 4, 21 is a correct answer |
4 | Correct | 40 ms | 94292 KB | n = 3, 4 is a correct answer |
5 | Correct | 38 ms | 94288 KB | n = 2, 62 is a correct answer |
6 | Correct | 41 ms | 94300 KB | n = 2, 3 is a correct answer |
7 | Correct | 42 ms | 94292 KB | n = 3, 29 is a correct answer |
8 | Correct | 39 ms | 94296 KB | n = 2, 3 is a correct answer |
9 | Correct | 39 ms | 94292 KB | n = 2, 3 is a correct answer |
10 | Correct | 43 ms | 94204 KB | n = 2, 2000000001 is a correct answer |
11 | Correct | 40 ms | 94288 KB | n = 2, 3000000000 is a correct answer |
12 | Correct | 36 ms | 94152 KB | n = 3, 3000000000 is a correct answer |
13 | Correct | 38 ms | 94184 KB | n = 3, 3000000000 is a correct answer |
14 | Correct | 35 ms | 94300 KB | n = 4, 3000000001 is a correct answer |
15 | Correct | 36 ms | 94236 KB | n = 4, 4000000000 is a correct answer |
16 | Correct | 39 ms | 94288 KB | n = 5, 4000000000 is a correct answer |
17 | Correct | 39 ms | 94288 KB | n = 10, 1000000343 is a correct answer |
18 | Correct | 38 ms | 94288 KB | n = 10, 3189 is a correct answer |
19 | Correct | 37 ms | 94284 KB | n = 10, 7000000000 is a correct answer |
20 | Correct | 38 ms | 94288 KB | n = 5, 12 is a correct answer |
21 | Correct | 43 ms | 94300 KB | n = 5, 25 is a correct answer |
22 | Correct | 37 ms | 94300 KB | n = 2, 122 is a correct answer |
23 | Correct | 37 ms | 94292 KB | n = 10, 117 is a correct answer |
24 | Correct | 39 ms | 94124 KB | n = 10, 336 is a correct answer |
25 | Correct | 39 ms | 94348 KB | n = 10, 438 is a correct answer |
26 | Correct | 49 ms | 94292 KB | n = 10, 206 is a correct answer |
27 | Correct | 40 ms | 94288 KB | n = 10, 636 is a correct answer |
28 | Correct | 38 ms | 94288 KB | n = 4, 2399 is a correct answer |
29 | Correct | 38 ms | 94300 KB | n = 10, 10992 is a correct answer |
30 | Correct | 39 ms | 94288 KB | n = 10, 3112 is a correct answer |
31 | Correct | 44 ms | 94292 KB | n = 100, 51000000001 is a correct answer |
32 | Correct | 38 ms | 94292 KB | n = 50, 197881272 is a correct answer |
33 | Correct | 53 ms | 94292 KB | n = 100, 20969 is a correct answer |
34 | Correct | 47 ms | 94360 KB | n = 100, 20969 is a correct answer |
35 | Correct | 46 ms | 94368 KB | n = 100, 52000000000 is a correct answer |
36 | Correct | 60 ms | 94288 KB | n = 100, 285 is a correct answer |
37 | Correct | 47 ms | 94256 KB | n = 100, 21272 is a correct answer |
38 | Correct | 48 ms | 94544 KB | n = 100, 12161 is a correct answer |
39 | Correct | 43 ms | 94288 KB | n = 2, 62 is a correct answer |
40 | Correct | 40 ms | 94292 KB | n = 2, 3 is a correct answer |
41 | Correct | 40 ms | 94300 KB | n = 3, 29 is a correct answer |
42 | Correct | 60 ms | 94292 KB | n = 2, 3 is a correct answer |
43 | Correct | 38 ms | 94292 KB | n = 2, 3 is a correct answer |
44 | Correct | 39 ms | 94260 KB | n = 2, 2000000001 is a correct answer |
45 | Correct | 35 ms | 94200 KB | n = 2, 3000000000 is a correct answer |
46 | Correct | 35 ms | 94300 KB | n = 3, 3000000000 is a correct answer |
47 | Correct | 53 ms | 94296 KB | n = 3, 3000000000 is a correct answer |
48 | Correct | 40 ms | 94296 KB | n = 4, 3000000001 is a correct answer |
49 | Correct | 37 ms | 94292 KB | n = 4, 4000000000 is a correct answer |
50 | Correct | 38 ms | 94168 KB | n = 5, 4000000000 is a correct answer |
51 | Correct | 35 ms | 94252 KB | n = 10, 1000000343 is a correct answer |
52 | Correct | 41 ms | 94288 KB | n = 10, 3189 is a correct answer |
53 | Correct | 37 ms | 94300 KB | n = 10, 7000000000 is a correct answer |
54 | Correct | 40 ms | 94364 KB | n = 5, 12 is a correct answer |
55 | Correct | 41 ms | 94292 KB | n = 5, 25 is a correct answer |
56 | Correct | 43 ms | 94316 KB | n = 2, 122 is a correct answer |
57 | Correct | 42 ms | 94220 KB | n = 10, 117 is a correct answer |
58 | Correct | 42 ms | 94240 KB | n = 10, 336 is a correct answer |
59 | Correct | 40 ms | 94356 KB | n = 10, 438 is a correct answer |
60 | Correct | 42 ms | 94172 KB | n = 10, 206 is a correct answer |
61 | Correct | 39 ms | 94292 KB | n = 10, 636 is a correct answer |
62 | Correct | 40 ms | 94160 KB | n = 4, 2399 is a correct answer |
63 | Correct | 42 ms | 94292 KB | n = 10, 10992 is a correct answer |
64 | Correct | 40 ms | 94292 KB | n = 10, 3112 is a correct answer |
65 | Correct | 52 ms | 94292 KB | n = 100, 51000000001 is a correct answer |
66 | Correct | 43 ms | 94284 KB | n = 50, 197881272 is a correct answer |
67 | Correct | 51 ms | 94320 KB | n = 100, 20969 is a correct answer |
68 | Correct | 49 ms | 94132 KB | n = 100, 20969 is a correct answer |
69 | Correct | 47 ms | 94312 KB | n = 100, 52000000000 is a correct answer |
70 | Correct | 48 ms | 94312 KB | n = 100, 285 is a correct answer |
71 | Correct | 49 ms | 94288 KB | n = 100, 21272 is a correct answer |
72 | Correct | 46 ms | 94128 KB | n = 100, 12161 is a correct answer |
73 | Correct | 282 ms | 94288 KB | n = 250, 25037 is a correct answer |
74 | Correct | 293 ms | 94364 KB | n = 250, 199047242 is a correct answer |
75 | Correct | 288 ms | 94372 KB | n = 250, 61231537449 is a correct answer |
76 | Correct | 299 ms | 94476 KB | n = 250, 126000000001 is a correct answer |
77 | Correct | 295 ms | 94368 KB | n = 250, 127000000000 is a correct answer |
78 | Correct | 45 ms | 94148 KB | n = 250, 2123470094 is a correct answer |
79 | Correct | 167 ms | 94292 KB | n = 250, 6545 is a correct answer |
80 | Correct | 281 ms | 94344 KB | n = 250, 6731 is a correct answer |
81 | Correct | 50 ms | 94288 KB | n = 108, 15322 is a correct answer |
82 | Correct | 282 ms | 94296 KB | n = 250, 39952 is a correct answer |
83 | Correct | 276 ms | 94172 KB | n = 250, 41156 is a correct answer |
84 | Correct | 279 ms | 94364 KB | n = 250, 12881 is a correct answer |
85 | Correct | 300 ms | 94372 KB | n = 250, 213812 is a correct answer |
86 | Correct | 284 ms | 94300 KB | n = 250, 194188 is a correct answer |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 39 ms | 94292 KB | n = 4, 80 is a correct answer |
2 | Correct | 40 ms | 94124 KB | n = 9, 110 is a correct answer |
3 | Correct | 39 ms | 94220 KB | n = 4, 21 is a correct answer |
4 | Correct | 40 ms | 94292 KB | n = 3, 4 is a correct answer |
5 | Correct | 38 ms | 94288 KB | n = 2, 62 is a correct answer |
6 | Correct | 41 ms | 94300 KB | n = 2, 3 is a correct answer |
7 | Correct | 42 ms | 94292 KB | n = 3, 29 is a correct answer |
8 | Correct | 39 ms | 94296 KB | n = 2, 3 is a correct answer |
9 | Correct | 39 ms | 94292 KB | n = 2, 3 is a correct answer |
10 | Correct | 43 ms | 94204 KB | n = 2, 2000000001 is a correct answer |
11 | Correct | 40 ms | 94288 KB | n = 2, 3000000000 is a correct answer |
12 | Correct | 36 ms | 94152 KB | n = 3, 3000000000 is a correct answer |
13 | Correct | 38 ms | 94184 KB | n = 3, 3000000000 is a correct answer |
14 | Correct | 35 ms | 94300 KB | n = 4, 3000000001 is a correct answer |
15 | Correct | 36 ms | 94236 KB | n = 4, 4000000000 is a correct answer |
16 | Correct | 39 ms | 94288 KB | n = 5, 4000000000 is a correct answer |
17 | Correct | 39 ms | 94288 KB | n = 10, 1000000343 is a correct answer |
18 | Correct | 38 ms | 94288 KB | n = 10, 3189 is a correct answer |
19 | Correct | 37 ms | 94284 KB | n = 10, 7000000000 is a correct answer |
20 | Correct | 38 ms | 94288 KB | n = 5, 12 is a correct answer |
21 | Correct | 43 ms | 94300 KB | n = 5, 25 is a correct answer |
22 | Correct | 37 ms | 94300 KB | n = 2, 122 is a correct answer |
23 | Correct | 37 ms | 94292 KB | n = 10, 117 is a correct answer |
24 | Correct | 39 ms | 94124 KB | n = 10, 336 is a correct answer |
25 | Correct | 39 ms | 94348 KB | n = 10, 438 is a correct answer |
26 | Correct | 49 ms | 94292 KB | n = 10, 206 is a correct answer |
27 | Correct | 40 ms | 94288 KB | n = 10, 636 is a correct answer |
28 | Correct | 38 ms | 94288 KB | n = 4, 2399 is a correct answer |
29 | Correct | 38 ms | 94300 KB | n = 10, 10992 is a correct answer |
30 | Correct | 39 ms | 94288 KB | n = 10, 3112 is a correct answer |
31 | Correct | 44 ms | 94292 KB | n = 100, 51000000001 is a correct answer |
32 | Correct | 38 ms | 94292 KB | n = 50, 197881272 is a correct answer |
33 | Correct | 53 ms | 94292 KB | n = 100, 20969 is a correct answer |
34 | Correct | 47 ms | 94360 KB | n = 100, 20969 is a correct answer |
35 | Correct | 46 ms | 94368 KB | n = 100, 52000000000 is a correct answer |
36 | Correct | 60 ms | 94288 KB | n = 100, 285 is a correct answer |
37 | Correct | 47 ms | 94256 KB | n = 100, 21272 is a correct answer |
38 | Correct | 48 ms | 94544 KB | n = 100, 12161 is a correct answer |
39 | Correct | 43 ms | 94288 KB | n = 2, 62 is a correct answer |
40 | Correct | 40 ms | 94292 KB | n = 2, 3 is a correct answer |
41 | Correct | 40 ms | 94300 KB | n = 3, 29 is a correct answer |
42 | Correct | 60 ms | 94292 KB | n = 2, 3 is a correct answer |
43 | Correct | 38 ms | 94292 KB | n = 2, 3 is a correct answer |
44 | Correct | 39 ms | 94260 KB | n = 2, 2000000001 is a correct answer |
45 | Correct | 35 ms | 94200 KB | n = 2, 3000000000 is a correct answer |
46 | Correct | 35 ms | 94300 KB | n = 3, 3000000000 is a correct answer |
47 | Correct | 53 ms | 94296 KB | n = 3, 3000000000 is a correct answer |
48 | Correct | 40 ms | 94296 KB | n = 4, 3000000001 is a correct answer |
49 | Correct | 37 ms | 94292 KB | n = 4, 4000000000 is a correct answer |
50 | Correct | 38 ms | 94168 KB | n = 5, 4000000000 is a correct answer |
51 | Correct | 35 ms | 94252 KB | n = 10, 1000000343 is a correct answer |
52 | Correct | 41 ms | 94288 KB | n = 10, 3189 is a correct answer |
53 | Correct | 37 ms | 94300 KB | n = 10, 7000000000 is a correct answer |
54 | Correct | 40 ms | 94364 KB | n = 5, 12 is a correct answer |
55 | Correct | 41 ms | 94292 KB | n = 5, 25 is a correct answer |
56 | Correct | 43 ms | 94316 KB | n = 2, 122 is a correct answer |
57 | Correct | 42 ms | 94220 KB | n = 10, 117 is a correct answer |
58 | Correct | 42 ms | 94240 KB | n = 10, 336 is a correct answer |
59 | Correct | 40 ms | 94356 KB | n = 10, 438 is a correct answer |
60 | Correct | 42 ms | 94172 KB | n = 10, 206 is a correct answer |
61 | Correct | 39 ms | 94292 KB | n = 10, 636 is a correct answer |
62 | Correct | 40 ms | 94160 KB | n = 4, 2399 is a correct answer |
63 | Correct | 42 ms | 94292 KB | n = 10, 10992 is a correct answer |
64 | Correct | 40 ms | 94292 KB | n = 10, 3112 is a correct answer |
65 | Correct | 52 ms | 94292 KB | n = 100, 51000000001 is a correct answer |
66 | Correct | 43 ms | 94284 KB | n = 50, 197881272 is a correct answer |
67 | Correct | 51 ms | 94320 KB | n = 100, 20969 is a correct answer |
68 | Correct | 49 ms | 94132 KB | n = 100, 20969 is a correct answer |
69 | Correct | 47 ms | 94312 KB | n = 100, 52000000000 is a correct answer |
70 | Correct | 48 ms | 94312 KB | n = 100, 285 is a correct answer |
71 | Correct | 49 ms | 94288 KB | n = 100, 21272 is a correct answer |
72 | Correct | 46 ms | 94128 KB | n = 100, 12161 is a correct answer |
73 | Correct | 282 ms | 94288 KB | n = 250, 25037 is a correct answer |
74 | Correct | 293 ms | 94364 KB | n = 250, 199047242 is a correct answer |
75 | Correct | 288 ms | 94372 KB | n = 250, 61231537449 is a correct answer |
76 | Correct | 299 ms | 94476 KB | n = 250, 126000000001 is a correct answer |
77 | Correct | 295 ms | 94368 KB | n = 250, 127000000000 is a correct answer |
78 | Correct | 45 ms | 94148 KB | n = 250, 2123470094 is a correct answer |
79 | Correct | 167 ms | 94292 KB | n = 250, 6545 is a correct answer |
80 | Correct | 281 ms | 94344 KB | n = 250, 6731 is a correct answer |
81 | Correct | 50 ms | 94288 KB | n = 108, 15322 is a correct answer |
82 | Correct | 282 ms | 94296 KB | n = 250, 39952 is a correct answer |
83 | Correct | 276 ms | 94172 KB | n = 250, 41156 is a correct answer |
84 | Correct | 279 ms | 94364 KB | n = 250, 12881 is a correct answer |
85 | Correct | 300 ms | 94372 KB | n = 250, 213812 is a correct answer |
86 | Correct | 284 ms | 94300 KB | n = 250, 194188 is a correct answer |
87 | Execution timed out | 2049 ms | 94288 KB | Time limit exceeded |
88 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 39 ms | 94292 KB | n = 4, 80 is a correct answer |
2 | Correct | 40 ms | 94124 KB | n = 9, 110 is a correct answer |
3 | Correct | 39 ms | 94220 KB | n = 4, 21 is a correct answer |
4 | Correct | 40 ms | 94292 KB | n = 3, 4 is a correct answer |
5 | Correct | 38 ms | 94288 KB | n = 2, 62 is a correct answer |
6 | Correct | 41 ms | 94300 KB | n = 2, 3 is a correct answer |
7 | Correct | 42 ms | 94292 KB | n = 3, 29 is a correct answer |
8 | Correct | 39 ms | 94296 KB | n = 2, 3 is a correct answer |
9 | Correct | 39 ms | 94292 KB | n = 2, 3 is a correct answer |
10 | Correct | 43 ms | 94204 KB | n = 2, 2000000001 is a correct answer |
11 | Correct | 40 ms | 94288 KB | n = 2, 3000000000 is a correct answer |
12 | Correct | 36 ms | 94152 KB | n = 3, 3000000000 is a correct answer |
13 | Correct | 38 ms | 94184 KB | n = 3, 3000000000 is a correct answer |
14 | Correct | 35 ms | 94300 KB | n = 4, 3000000001 is a correct answer |
15 | Correct | 36 ms | 94236 KB | n = 4, 4000000000 is a correct answer |
16 | Correct | 39 ms | 94288 KB | n = 5, 4000000000 is a correct answer |
17 | Correct | 39 ms | 94288 KB | n = 10, 1000000343 is a correct answer |
18 | Correct | 38 ms | 94288 KB | n = 10, 3189 is a correct answer |
19 | Correct | 37 ms | 94284 KB | n = 10, 7000000000 is a correct answer |
20 | Correct | 38 ms | 94288 KB | n = 5, 12 is a correct answer |
21 | Correct | 43 ms | 94300 KB | n = 5, 25 is a correct answer |
22 | Correct | 37 ms | 94300 KB | n = 2, 122 is a correct answer |
23 | Correct | 37 ms | 94292 KB | n = 10, 117 is a correct answer |
24 | Correct | 39 ms | 94124 KB | n = 10, 336 is a correct answer |
25 | Correct | 39 ms | 94348 KB | n = 10, 438 is a correct answer |
26 | Correct | 49 ms | 94292 KB | n = 10, 206 is a correct answer |
27 | Correct | 40 ms | 94288 KB | n = 10, 636 is a correct answer |
28 | Correct | 38 ms | 94288 KB | n = 4, 2399 is a correct answer |
29 | Correct | 38 ms | 94300 KB | n = 10, 10992 is a correct answer |
30 | Correct | 39 ms | 94288 KB | n = 10, 3112 is a correct answer |
31 | Correct | 44 ms | 94292 KB | n = 100, 51000000001 is a correct answer |
32 | Correct | 38 ms | 94292 KB | n = 50, 197881272 is a correct answer |
33 | Correct | 53 ms | 94292 KB | n = 100, 20969 is a correct answer |
34 | Correct | 47 ms | 94360 KB | n = 100, 20969 is a correct answer |
35 | Correct | 46 ms | 94368 KB | n = 100, 52000000000 is a correct answer |
36 | Correct | 60 ms | 94288 KB | n = 100, 285 is a correct answer |
37 | Correct | 47 ms | 94256 KB | n = 100, 21272 is a correct answer |
38 | Correct | 48 ms | 94544 KB | n = 100, 12161 is a correct answer |
39 | Correct | 43 ms | 94288 KB | n = 2, 62 is a correct answer |
40 | Correct | 40 ms | 94292 KB | n = 2, 3 is a correct answer |
41 | Correct | 40 ms | 94300 KB | n = 3, 29 is a correct answer |
42 | Correct | 60 ms | 94292 KB | n = 2, 3 is a correct answer |
43 | Correct | 38 ms | 94292 KB | n = 2, 3 is a correct answer |
44 | Correct | 39 ms | 94260 KB | n = 2, 2000000001 is a correct answer |
45 | Correct | 35 ms | 94200 KB | n = 2, 3000000000 is a correct answer |
46 | Correct | 35 ms | 94300 KB | n = 3, 3000000000 is a correct answer |
47 | Correct | 53 ms | 94296 KB | n = 3, 3000000000 is a correct answer |
48 | Correct | 40 ms | 94296 KB | n = 4, 3000000001 is a correct answer |
49 | Correct | 37 ms | 94292 KB | n = 4, 4000000000 is a correct answer |
50 | Correct | 38 ms | 94168 KB | n = 5, 4000000000 is a correct answer |
51 | Correct | 35 ms | 94252 KB | n = 10, 1000000343 is a correct answer |
52 | Correct | 41 ms | 94288 KB | n = 10, 3189 is a correct answer |
53 | Correct | 37 ms | 94300 KB | n = 10, 7000000000 is a correct answer |
54 | Correct | 40 ms | 94364 KB | n = 5, 12 is a correct answer |
55 | Correct | 41 ms | 94292 KB | n = 5, 25 is a correct answer |
56 | Correct | 43 ms | 94316 KB | n = 2, 122 is a correct answer |
57 | Correct | 42 ms | 94220 KB | n = 10, 117 is a correct answer |
58 | Correct | 42 ms | 94240 KB | n = 10, 336 is a correct answer |
59 | Correct | 40 ms | 94356 KB | n = 10, 438 is a correct answer |
60 | Correct | 42 ms | 94172 KB | n = 10, 206 is a correct answer |
61 | Correct | 39 ms | 94292 KB | n = 10, 636 is a correct answer |
62 | Correct | 40 ms | 94160 KB | n = 4, 2399 is a correct answer |
63 | Correct | 42 ms | 94292 KB | n = 10, 10992 is a correct answer |
64 | Correct | 40 ms | 94292 KB | n = 10, 3112 is a correct answer |
65 | Correct | 52 ms | 94292 KB | n = 100, 51000000001 is a correct answer |
66 | Correct | 43 ms | 94284 KB | n = 50, 197881272 is a correct answer |
67 | Correct | 51 ms | 94320 KB | n = 100, 20969 is a correct answer |
68 | Correct | 49 ms | 94132 KB | n = 100, 20969 is a correct answer |
69 | Correct | 47 ms | 94312 KB | n = 100, 52000000000 is a correct answer |
70 | Correct | 48 ms | 94312 KB | n = 100, 285 is a correct answer |
71 | Correct | 49 ms | 94288 KB | n = 100, 21272 is a correct answer |
72 | Correct | 46 ms | 94128 KB | n = 100, 12161 is a correct answer |
73 | Correct | 282 ms | 94288 KB | n = 250, 25037 is a correct answer |
74 | Correct | 293 ms | 94364 KB | n = 250, 199047242 is a correct answer |
75 | Correct | 288 ms | 94372 KB | n = 250, 61231537449 is a correct answer |
76 | Correct | 299 ms | 94476 KB | n = 250, 126000000001 is a correct answer |
77 | Correct | 295 ms | 94368 KB | n = 250, 127000000000 is a correct answer |
78 | Correct | 45 ms | 94148 KB | n = 250, 2123470094 is a correct answer |
79 | Correct | 167 ms | 94292 KB | n = 250, 6545 is a correct answer |
80 | Correct | 281 ms | 94344 KB | n = 250, 6731 is a correct answer |
81 | Correct | 50 ms | 94288 KB | n = 108, 15322 is a correct answer |
82 | Correct | 282 ms | 94296 KB | n = 250, 39952 is a correct answer |
83 | Correct | 276 ms | 94172 KB | n = 250, 41156 is a correct answer |
84 | Correct | 279 ms | 94364 KB | n = 250, 12881 is a correct answer |
85 | Correct | 300 ms | 94372 KB | n = 250, 213812 is a correct answer |
86 | Correct | 284 ms | 94300 KB | n = 250, 194188 is a correct answer |
87 | Execution timed out | 2049 ms | 94288 KB | Time limit exceeded |
88 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 39 ms | 94292 KB | n = 4, 80 is a correct answer |
2 | Correct | 40 ms | 94124 KB | n = 9, 110 is a correct answer |
3 | Correct | 39 ms | 94220 KB | n = 4, 21 is a correct answer |
4 | Correct | 40 ms | 94292 KB | n = 3, 4 is a correct answer |
5 | Correct | 38 ms | 94288 KB | n = 2, 62 is a correct answer |
6 | Correct | 41 ms | 94300 KB | n = 2, 3 is a correct answer |
7 | Correct | 42 ms | 94292 KB | n = 3, 29 is a correct answer |
8 | Correct | 39 ms | 94296 KB | n = 2, 3 is a correct answer |
9 | Correct | 39 ms | 94292 KB | n = 2, 3 is a correct answer |
10 | Correct | 43 ms | 94204 KB | n = 2, 2000000001 is a correct answer |
11 | Correct | 40 ms | 94288 KB | n = 2, 3000000000 is a correct answer |
12 | Correct | 36 ms | 94152 KB | n = 3, 3000000000 is a correct answer |
13 | Correct | 38 ms | 94184 KB | n = 3, 3000000000 is a correct answer |
14 | Correct | 35 ms | 94300 KB | n = 4, 3000000001 is a correct answer |
15 | Correct | 36 ms | 94236 KB | n = 4, 4000000000 is a correct answer |
16 | Correct | 39 ms | 94288 KB | n = 5, 4000000000 is a correct answer |
17 | Correct | 39 ms | 94288 KB | n = 10, 1000000343 is a correct answer |
18 | Correct | 38 ms | 94288 KB | n = 10, 3189 is a correct answer |
19 | Correct | 37 ms | 94284 KB | n = 10, 7000000000 is a correct answer |
20 | Correct | 38 ms | 94288 KB | n = 5, 12 is a correct answer |
21 | Correct | 43 ms | 94300 KB | n = 5, 25 is a correct answer |
22 | Correct | 37 ms | 94300 KB | n = 2, 122 is a correct answer |
23 | Correct | 37 ms | 94292 KB | n = 10, 117 is a correct answer |
24 | Correct | 39 ms | 94124 KB | n = 10, 336 is a correct answer |
25 | Correct | 39 ms | 94348 KB | n = 10, 438 is a correct answer |
26 | Correct | 49 ms | 94292 KB | n = 10, 206 is a correct answer |
27 | Correct | 40 ms | 94288 KB | n = 10, 636 is a correct answer |
28 | Correct | 38 ms | 94288 KB | n = 4, 2399 is a correct answer |
29 | Correct | 38 ms | 94300 KB | n = 10, 10992 is a correct answer |
30 | Correct | 39 ms | 94288 KB | n = 10, 3112 is a correct answer |
31 | Correct | 44 ms | 94292 KB | n = 100, 51000000001 is a correct answer |
32 | Correct | 38 ms | 94292 KB | n = 50, 197881272 is a correct answer |
33 | Correct | 53 ms | 94292 KB | n = 100, 20969 is a correct answer |
34 | Correct | 47 ms | 94360 KB | n = 100, 20969 is a correct answer |
35 | Correct | 46 ms | 94368 KB | n = 100, 52000000000 is a correct answer |
36 | Correct | 60 ms | 94288 KB | n = 100, 285 is a correct answer |
37 | Correct | 47 ms | 94256 KB | n = 100, 21272 is a correct answer |
38 | Correct | 48 ms | 94544 KB | n = 100, 12161 is a correct answer |
39 | Correct | 43 ms | 94288 KB | n = 2, 62 is a correct answer |
40 | Correct | 40 ms | 94292 KB | n = 2, 3 is a correct answer |
41 | Correct | 40 ms | 94300 KB | n = 3, 29 is a correct answer |
42 | Correct | 60 ms | 94292 KB | n = 2, 3 is a correct answer |
43 | Correct | 38 ms | 94292 KB | n = 2, 3 is a correct answer |
44 | Correct | 39 ms | 94260 KB | n = 2, 2000000001 is a correct answer |
45 | Correct | 35 ms | 94200 KB | n = 2, 3000000000 is a correct answer |
46 | Correct | 35 ms | 94300 KB | n = 3, 3000000000 is a correct answer |
47 | Correct | 53 ms | 94296 KB | n = 3, 3000000000 is a correct answer |
48 | Correct | 40 ms | 94296 KB | n = 4, 3000000001 is a correct answer |
49 | Correct | 37 ms | 94292 KB | n = 4, 4000000000 is a correct answer |
50 | Correct | 38 ms | 94168 KB | n = 5, 4000000000 is a correct answer |
51 | Correct | 35 ms | 94252 KB | n = 10, 1000000343 is a correct answer |
52 | Correct | 41 ms | 94288 KB | n = 10, 3189 is a correct answer |
53 | Correct | 37 ms | 94300 KB | n = 10, 7000000000 is a correct answer |
54 | Correct | 40 ms | 94364 KB | n = 5, 12 is a correct answer |
55 | Correct | 41 ms | 94292 KB | n = 5, 25 is a correct answer |
56 | Correct | 43 ms | 94316 KB | n = 2, 122 is a correct answer |
57 | Correct | 42 ms | 94220 KB | n = 10, 117 is a correct answer |
58 | Correct | 42 ms | 94240 KB | n = 10, 336 is a correct answer |
59 | Correct | 40 ms | 94356 KB | n = 10, 438 is a correct answer |
60 | Correct | 42 ms | 94172 KB | n = 10, 206 is a correct answer |
61 | Correct | 39 ms | 94292 KB | n = 10, 636 is a correct answer |
62 | Correct | 40 ms | 94160 KB | n = 4, 2399 is a correct answer |
63 | Correct | 42 ms | 94292 KB | n = 10, 10992 is a correct answer |
64 | Correct | 40 ms | 94292 KB | n = 10, 3112 is a correct answer |
65 | Correct | 52 ms | 94292 KB | n = 100, 51000000001 is a correct answer |
66 | Correct | 43 ms | 94284 KB | n = 50, 197881272 is a correct answer |
67 | Correct | 51 ms | 94320 KB | n = 100, 20969 is a correct answer |
68 | Correct | 49 ms | 94132 KB | n = 100, 20969 is a correct answer |
69 | Correct | 47 ms | 94312 KB | n = 100, 52000000000 is a correct answer |
70 | Correct | 48 ms | 94312 KB | n = 100, 285 is a correct answer |
71 | Correct | 49 ms | 94288 KB | n = 100, 21272 is a correct answer |
72 | Correct | 46 ms | 94128 KB | n = 100, 12161 is a correct answer |
73 | Correct | 282 ms | 94288 KB | n = 250, 25037 is a correct answer |
74 | Correct | 293 ms | 94364 KB | n = 250, 199047242 is a correct answer |
75 | Correct | 288 ms | 94372 KB | n = 250, 61231537449 is a correct answer |
76 | Correct | 299 ms | 94476 KB | n = 250, 126000000001 is a correct answer |
77 | Correct | 295 ms | 94368 KB | n = 250, 127000000000 is a correct answer |
78 | Correct | 45 ms | 94148 KB | n = 250, 2123470094 is a correct answer |
79 | Correct | 167 ms | 94292 KB | n = 250, 6545 is a correct answer |
80 | Correct | 281 ms | 94344 KB | n = 250, 6731 is a correct answer |
81 | Correct | 50 ms | 94288 KB | n = 108, 15322 is a correct answer |
82 | Correct | 282 ms | 94296 KB | n = 250, 39952 is a correct answer |
83 | Correct | 276 ms | 94172 KB | n = 250, 41156 is a correct answer |
84 | Correct | 279 ms | 94364 KB | n = 250, 12881 is a correct answer |
85 | Correct | 300 ms | 94372 KB | n = 250, 213812 is a correct answer |
86 | Correct | 284 ms | 94300 KB | n = 250, 194188 is a correct answer |
87 | Execution timed out | 2049 ms | 94288 KB | Time limit exceeded |
88 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 39 ms | 94292 KB | n = 4, 80 is a correct answer |
2 | Correct | 40 ms | 94124 KB | n = 9, 110 is a correct answer |
3 | Correct | 39 ms | 94220 KB | n = 4, 21 is a correct answer |
4 | Correct | 40 ms | 94292 KB | n = 3, 4 is a correct answer |
5 | Correct | 38 ms | 94288 KB | n = 2, 62 is a correct answer |
6 | Correct | 41 ms | 94300 KB | n = 2, 3 is a correct answer |
7 | Correct | 42 ms | 94292 KB | n = 3, 29 is a correct answer |
8 | Correct | 39 ms | 94296 KB | n = 2, 3 is a correct answer |
9 | Correct | 39 ms | 94292 KB | n = 2, 3 is a correct answer |
10 | Correct | 43 ms | 94204 KB | n = 2, 2000000001 is a correct answer |
11 | Correct | 40 ms | 94288 KB | n = 2, 3000000000 is a correct answer |
12 | Correct | 36 ms | 94152 KB | n = 3, 3000000000 is a correct answer |
13 | Correct | 38 ms | 94184 KB | n = 3, 3000000000 is a correct answer |
14 | Correct | 35 ms | 94300 KB | n = 4, 3000000001 is a correct answer |
15 | Correct | 36 ms | 94236 KB | n = 4, 4000000000 is a correct answer |
16 | Correct | 39 ms | 94288 KB | n = 5, 4000000000 is a correct answer |
17 | Correct | 39 ms | 94288 KB | n = 10, 1000000343 is a correct answer |
18 | Correct | 38 ms | 94288 KB | n = 10, 3189 is a correct answer |
19 | Correct | 37 ms | 94284 KB | n = 10, 7000000000 is a correct answer |
20 | Correct | 38 ms | 94288 KB | n = 5, 12 is a correct answer |
21 | Correct | 43 ms | 94300 KB | n = 5, 25 is a correct answer |
22 | Correct | 37 ms | 94300 KB | n = 2, 122 is a correct answer |
23 | Correct | 37 ms | 94292 KB | n = 10, 117 is a correct answer |
24 | Correct | 39 ms | 94124 KB | n = 10, 336 is a correct answer |
25 | Correct | 39 ms | 94348 KB | n = 10, 438 is a correct answer |
26 | Correct | 49 ms | 94292 KB | n = 10, 206 is a correct answer |
27 | Correct | 40 ms | 94288 KB | n = 10, 636 is a correct answer |
28 | Correct | 38 ms | 94288 KB | n = 4, 2399 is a correct answer |
29 | Correct | 38 ms | 94300 KB | n = 10, 10992 is a correct answer |
30 | Correct | 39 ms | 94288 KB | n = 10, 3112 is a correct answer |
31 | Correct | 44 ms | 94292 KB | n = 100, 51000000001 is a correct answer |
32 | Correct | 38 ms | 94292 KB | n = 50, 197881272 is a correct answer |
33 | Correct | 53 ms | 94292 KB | n = 100, 20969 is a correct answer |
34 | Correct | 47 ms | 94360 KB | n = 100, 20969 is a correct answer |
35 | Correct | 46 ms | 94368 KB | n = 100, 52000000000 is a correct answer |
36 | Correct | 60 ms | 94288 KB | n = 100, 285 is a correct answer |
37 | Correct | 47 ms | 94256 KB | n = 100, 21272 is a correct answer |
38 | Correct | 48 ms | 94544 KB | n = 100, 12161 is a correct answer |
39 | Correct | 43 ms | 94288 KB | n = 2, 62 is a correct answer |
40 | Correct | 40 ms | 94292 KB | n = 2, 3 is a correct answer |
41 | Correct | 40 ms | 94300 KB | n = 3, 29 is a correct answer |
42 | Correct | 60 ms | 94292 KB | n = 2, 3 is a correct answer |
43 | Correct | 38 ms | 94292 KB | n = 2, 3 is a correct answer |
44 | Correct | 39 ms | 94260 KB | n = 2, 2000000001 is a correct answer |
45 | Correct | 35 ms | 94200 KB | n = 2, 3000000000 is a correct answer |
46 | Correct | 35 ms | 94300 KB | n = 3, 3000000000 is a correct answer |
47 | Correct | 53 ms | 94296 KB | n = 3, 3000000000 is a correct answer |
48 | Correct | 40 ms | 94296 KB | n = 4, 3000000001 is a correct answer |
49 | Correct | 37 ms | 94292 KB | n = 4, 4000000000 is a correct answer |
50 | Correct | 38 ms | 94168 KB | n = 5, 4000000000 is a correct answer |
51 | Correct | 35 ms | 94252 KB | n = 10, 1000000343 is a correct answer |
52 | Correct | 41 ms | 94288 KB | n = 10, 3189 is a correct answer |
53 | Correct | 37 ms | 94300 KB | n = 10, 7000000000 is a correct answer |
54 | Correct | 40 ms | 94364 KB | n = 5, 12 is a correct answer |
55 | Correct | 41 ms | 94292 KB | n = 5, 25 is a correct answer |
56 | Correct | 43 ms | 94316 KB | n = 2, 122 is a correct answer |
57 | Correct | 42 ms | 94220 KB | n = 10, 117 is a correct answer |
58 | Correct | 42 ms | 94240 KB | n = 10, 336 is a correct answer |
59 | Correct | 40 ms | 94356 KB | n = 10, 438 is a correct answer |
60 | Correct | 42 ms | 94172 KB | n = 10, 206 is a correct answer |
61 | Correct | 39 ms | 94292 KB | n = 10, 636 is a correct answer |
62 | Correct | 40 ms | 94160 KB | n = 4, 2399 is a correct answer |
63 | Correct | 42 ms | 94292 KB | n = 10, 10992 is a correct answer |
64 | Correct | 40 ms | 94292 KB | n = 10, 3112 is a correct answer |
65 | Correct | 52 ms | 94292 KB | n = 100, 51000000001 is a correct answer |
66 | Correct | 43 ms | 94284 KB | n = 50, 197881272 is a correct answer |
67 | Correct | 51 ms | 94320 KB | n = 100, 20969 is a correct answer |
68 | Correct | 49 ms | 94132 KB | n = 100, 20969 is a correct answer |
69 | Correct | 47 ms | 94312 KB | n = 100, 52000000000 is a correct answer |
70 | Correct | 48 ms | 94312 KB | n = 100, 285 is a correct answer |
71 | Correct | 49 ms | 94288 KB | n = 100, 21272 is a correct answer |
72 | Correct | 46 ms | 94128 KB | n = 100, 12161 is a correct answer |
73 | Correct | 282 ms | 94288 KB | n = 250, 25037 is a correct answer |
74 | Correct | 293 ms | 94364 KB | n = 250, 199047242 is a correct answer |
75 | Correct | 288 ms | 94372 KB | n = 250, 61231537449 is a correct answer |
76 | Correct | 299 ms | 94476 KB | n = 250, 126000000001 is a correct answer |
77 | Correct | 295 ms | 94368 KB | n = 250, 127000000000 is a correct answer |
78 | Correct | 45 ms | 94148 KB | n = 250, 2123470094 is a correct answer |
79 | Correct | 167 ms | 94292 KB | n = 250, 6545 is a correct answer |
80 | Correct | 281 ms | 94344 KB | n = 250, 6731 is a correct answer |
81 | Correct | 50 ms | 94288 KB | n = 108, 15322 is a correct answer |
82 | Correct | 282 ms | 94296 KB | n = 250, 39952 is a correct answer |
83 | Correct | 276 ms | 94172 KB | n = 250, 41156 is a correct answer |
84 | Correct | 279 ms | 94364 KB | n = 250, 12881 is a correct answer |
85 | Correct | 300 ms | 94372 KB | n = 250, 213812 is a correct answer |
86 | Correct | 284 ms | 94300 KB | n = 250, 194188 is a correct answer |
87 | Execution timed out | 2049 ms | 94288 KB | Time limit exceeded |
88 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 39 ms | 94292 KB | n = 4, 80 is a correct answer |
2 | Correct | 40 ms | 94124 KB | n = 9, 110 is a correct answer |
3 | Correct | 39 ms | 94220 KB | n = 4, 21 is a correct answer |
4 | Correct | 40 ms | 94292 KB | n = 3, 4 is a correct answer |
5 | Correct | 38 ms | 94288 KB | n = 2, 62 is a correct answer |
6 | Correct | 41 ms | 94300 KB | n = 2, 3 is a correct answer |
7 | Correct | 42 ms | 94292 KB | n = 3, 29 is a correct answer |
8 | Correct | 39 ms | 94296 KB | n = 2, 3 is a correct answer |
9 | Correct | 39 ms | 94292 KB | n = 2, 3 is a correct answer |
10 | Correct | 43 ms | 94204 KB | n = 2, 2000000001 is a correct answer |
11 | Correct | 40 ms | 94288 KB | n = 2, 3000000000 is a correct answer |
12 | Correct | 36 ms | 94152 KB | n = 3, 3000000000 is a correct answer |
13 | Correct | 38 ms | 94184 KB | n = 3, 3000000000 is a correct answer |
14 | Correct | 35 ms | 94300 KB | n = 4, 3000000001 is a correct answer |
15 | Correct | 36 ms | 94236 KB | n = 4, 4000000000 is a correct answer |
16 | Correct | 39 ms | 94288 KB | n = 5, 4000000000 is a correct answer |
17 | Correct | 39 ms | 94288 KB | n = 10, 1000000343 is a correct answer |
18 | Correct | 38 ms | 94288 KB | n = 10, 3189 is a correct answer |
19 | Correct | 37 ms | 94284 KB | n = 10, 7000000000 is a correct answer |
20 | Correct | 38 ms | 94288 KB | n = 5, 12 is a correct answer |
21 | Correct | 43 ms | 94300 KB | n = 5, 25 is a correct answer |
22 | Correct | 37 ms | 94300 KB | n = 2, 122 is a correct answer |
23 | Correct | 37 ms | 94292 KB | n = 10, 117 is a correct answer |
24 | Correct | 39 ms | 94124 KB | n = 10, 336 is a correct answer |
25 | Correct | 39 ms | 94348 KB | n = 10, 438 is a correct answer |
26 | Correct | 49 ms | 94292 KB | n = 10, 206 is a correct answer |
27 | Correct | 40 ms | 94288 KB | n = 10, 636 is a correct answer |
28 | Correct | 38 ms | 94288 KB | n = 4, 2399 is a correct answer |
29 | Correct | 38 ms | 94300 KB | n = 10, 10992 is a correct answer |
30 | Correct | 39 ms | 94288 KB | n = 10, 3112 is a correct answer |
31 | Correct | 44 ms | 94292 KB | n = 100, 51000000001 is a correct answer |
32 | Correct | 38 ms | 94292 KB | n = 50, 197881272 is a correct answer |
33 | Correct | 53 ms | 94292 KB | n = 100, 20969 is a correct answer |
34 | Correct | 47 ms | 94360 KB | n = 100, 20969 is a correct answer |
35 | Correct | 46 ms | 94368 KB | n = 100, 52000000000 is a correct answer |
36 | Correct | 60 ms | 94288 KB | n = 100, 285 is a correct answer |
37 | Correct | 47 ms | 94256 KB | n = 100, 21272 is a correct answer |
38 | Correct | 48 ms | 94544 KB | n = 100, 12161 is a correct answer |
39 | Correct | 43 ms | 94288 KB | n = 2, 62 is a correct answer |
40 | Correct | 40 ms | 94292 KB | n = 2, 3 is a correct answer |
41 | Correct | 40 ms | 94300 KB | n = 3, 29 is a correct answer |
42 | Correct | 60 ms | 94292 KB | n = 2, 3 is a correct answer |
43 | Correct | 38 ms | 94292 KB | n = 2, 3 is a correct answer |
44 | Correct | 39 ms | 94260 KB | n = 2, 2000000001 is a correct answer |
45 | Correct | 35 ms | 94200 KB | n = 2, 3000000000 is a correct answer |
46 | Correct | 35 ms | 94300 KB | n = 3, 3000000000 is a correct answer |
47 | Correct | 53 ms | 94296 KB | n = 3, 3000000000 is a correct answer |
48 | Correct | 40 ms | 94296 KB | n = 4, 3000000001 is a correct answer |
49 | Correct | 37 ms | 94292 KB | n = 4, 4000000000 is a correct answer |
50 | Correct | 38 ms | 94168 KB | n = 5, 4000000000 is a correct answer |
51 | Correct | 35 ms | 94252 KB | n = 10, 1000000343 is a correct answer |
52 | Correct | 41 ms | 94288 KB | n = 10, 3189 is a correct answer |
53 | Correct | 37 ms | 94300 KB | n = 10, 7000000000 is a correct answer |
54 | Correct | 40 ms | 94364 KB | n = 5, 12 is a correct answer |
55 | Correct | 41 ms | 94292 KB | n = 5, 25 is a correct answer |
56 | Correct | 43 ms | 94316 KB | n = 2, 122 is a correct answer |
57 | Correct | 42 ms | 94220 KB | n = 10, 117 is a correct answer |
58 | Correct | 42 ms | 94240 KB | n = 10, 336 is a correct answer |
59 | Correct | 40 ms | 94356 KB | n = 10, 438 is a correct answer |
60 | Correct | 42 ms | 94172 KB | n = 10, 206 is a correct answer |
61 | Correct | 39 ms | 94292 KB | n = 10, 636 is a correct answer |
62 | Correct | 40 ms | 94160 KB | n = 4, 2399 is a correct answer |
63 | Correct | 42 ms | 94292 KB | n = 10, 10992 is a correct answer |
64 | Correct | 40 ms | 94292 KB | n = 10, 3112 is a correct answer |
65 | Correct | 52 ms | 94292 KB | n = 100, 51000000001 is a correct answer |
66 | Correct | 43 ms | 94284 KB | n = 50, 197881272 is a correct answer |
67 | Correct | 51 ms | 94320 KB | n = 100, 20969 is a correct answer |
68 | Correct | 49 ms | 94132 KB | n = 100, 20969 is a correct answer |
69 | Correct | 47 ms | 94312 KB | n = 100, 52000000000 is a correct answer |
70 | Correct | 48 ms | 94312 KB | n = 100, 285 is a correct answer |
71 | Correct | 49 ms | 94288 KB | n = 100, 21272 is a correct answer |
72 | Correct | 46 ms | 94128 KB | n = 100, 12161 is a correct answer |
73 | Correct | 282 ms | 94288 KB | n = 250, 25037 is a correct answer |
74 | Correct | 293 ms | 94364 KB | n = 250, 199047242 is a correct answer |
75 | Correct | 288 ms | 94372 KB | n = 250, 61231537449 is a correct answer |
76 | Correct | 299 ms | 94476 KB | n = 250, 126000000001 is a correct answer |
77 | Correct | 295 ms | 94368 KB | n = 250, 127000000000 is a correct answer |
78 | Correct | 45 ms | 94148 KB | n = 250, 2123470094 is a correct answer |
79 | Correct | 167 ms | 94292 KB | n = 250, 6545 is a correct answer |
80 | Correct | 281 ms | 94344 KB | n = 250, 6731 is a correct answer |
81 | Correct | 50 ms | 94288 KB | n = 108, 15322 is a correct answer |
82 | Correct | 282 ms | 94296 KB | n = 250, 39952 is a correct answer |
83 | Correct | 276 ms | 94172 KB | n = 250, 41156 is a correct answer |
84 | Correct | 279 ms | 94364 KB | n = 250, 12881 is a correct answer |
85 | Correct | 300 ms | 94372 KB | n = 250, 213812 is a correct answer |
86 | Correct | 284 ms | 94300 KB | n = 250, 194188 is a correct answer |
87 | Execution timed out | 2049 ms | 94288 KB | Time limit exceeded |
88 | Halted | 0 ms | 0 KB | - |