# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
388584 | 2021-04-12T07:57:59 Z | Keshi | Shortcut (IOI16_shortcut) | C++17 | 339 ms | 210884 KB |
//In the name of God #include <bits/stdc++.h> #include "shortcut.h" using namespace std; typedef long long ll; typedef pair<ll, ll> pll; const ll maxn = 2100; const ll mod = 1e9 + 7; const ll inf = 1e18; #define fast_io ios::sync_with_stdio(false);cin.tie(0);cout.tie(0); #define file_io freopen("input.txt", "r+", stdin);freopen("output.txt", "w+", stdout); #define pb push_back #define Mp make_pair #define F first #define S second #define Sz(x) ll((x).size()) #define all(x) (x).begin(), (x).end() #define lc (id << 1) #define rc (lc | 1) struct node{ ll mxr, mxl, mx; node(){ mxr = mxl = mx = -inf; } }; ll n, ps[maxn], d[maxn]; node seg[maxn << 2]; node dp[maxn][maxn]; node mrg(node l, node r){ if(l.mx == -inf) return r; if(r.mx == -inf) return l; node nd; nd.mx = max({l.mx, r.mx, l.mxl + r.mxr}); nd.mxl = max(l.mxl, r.mxl); nd.mxr = max(l.mxr, r.mxr); return nd; } void bld(ll id, ll s, ll e){ if(e - s == 1){ seg[id].mx = d[s]; seg[id].mxl = d[s] - ps[s]; seg[id].mxr = d[s] + ps[s]; return; } ll mid = (s + e) >> 1; bld(lc, s, mid); bld(rc, mid, e); seg[id] = mrg(seg[lc], seg[rc]); return; } node get(ll id, ll s, ll e, ll l, ll r){ if(r <= s || e <= l) return node(); if(l <= s && e <= r) return seg[id]; ll mid = (s + e) >> 1; return mrg(get(lc, s, mid, l, r), get(rc, mid, e, l, r)); } void pre(){ for(ll i = 0; i <= n; i++){ for(ll j = i; j <= n; j++){ dp[i][j] = get(1, 0, n, i, j); } } } node get(ll l, ll r){ /*node nd; nd.mx = d[l]; nd.mxl = d[l] - ps[l]; nd.mxr = d[l] + ps[l]; for(ll i = l + 1; i < r; i++){ nd.mx = max(nd.mx, nd.mxl + d[i] + ps[i]); nd.mxl = max(nd.mxl, d[i] - ps[i]); nd.mxr = max(nd.mxr, d[i] + ps[i]); } return nd;*/ //if(dp[l][r].mx != get(1, 0, n, l, r).mx) cout << "wtf " << l << " " << r << "\n"; //cout << dp[l][r].mx << " " << get(1, 0, n, l, r).mx << "\n"; //return get(1, 0, n, l, r); return dp[l][r]; } long long find_shortcut(int N, vector<int> l, vector<int> D, int c){ n = N; for(ll i = 0; i < n; i++){ d[i] = D[i]; ps[i + 1] = ps[i] + l[i]; } bld(1, 0, n); pre(); ll ans = get(0, n).mx; for(ll i = 0; i < n; i++){ for(ll j = i + 1; j < n; j++){ ll C = ps[j] - ps[i] + c; ll x = get(0, i + 1).mxl + get(j, n).mxr - max(0ll, (ps[j] - ps[i]) - c); // cout << "! " << x << "\n"; x = max(x, get(0, i + 1).mx); // cout << "! " << x << "\n"; x = max(x, get(j, n).mx); // cout << "! " << x << "\n"; // cout << "^ " << C << "\n"; ll ptr = i; ll mx1 = min((ll)c, C - c) + d[j], mx2 = min((ll)c, C - c) + d[j]; for(ll k = i; k < j; k++){ mx1 = max(mx1, d[k] + min(ps[k] - ps[i], C + ps[i] - ps[k])); // cout << "! " << min(ps[k] - ps[i], C + ps[i] - ps[k]) << " " <<min(ps[j] - ps[k], C + ps[k] - ps[j]) << "\n"; mx2 = max(mx2, d[k] + min(ps[j] - ps[k], C + ps[k] - ps[j])); while(ptr <= j && ps[ptr] - ps[k] < C + ps[k] - ps[ptr]) ptr++; // cout << "# " << k << " " << ptr << "\n"; x = max(x, d[k] - ps[k] + get(k + 1, ptr).mxr); // cout << "! " << x << "\n"; x = max(x, C + d[k] + ps[k] + get(ptr, j + 1).mxl); // cout << "! " << x << "\n"; } x = max(x, mx2 + get(j + 1, n).mxr - ps[j]); // cout << "! " << x << "\n"; // cout << mx1 << " " << get(0, i).mxl + ps[i] << "\n"; x = max(x, mx1 + get(0, i).mxl + ps[i]); // cout << "! " << x << "\n"; // if(x == 100) cout << "$ " << i << " " << j << "\n"; ans = min(ans, x); } } return ans; } /*int main(){ fast_io; return 0; }*/
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 48 ms | 104004 KB | n = 4, 80 is a correct answer |
2 | Correct | 48 ms | 104024 KB | n = 9, 110 is a correct answer |
3 | Correct | 50 ms | 104012 KB | n = 4, 21 is a correct answer |
4 | Correct | 47 ms | 103956 KB | n = 3, 4 is a correct answer |
5 | Correct | 48 ms | 104004 KB | n = 2, 62 is a correct answer |
6 | Correct | 48 ms | 103940 KB | n = 2, 3 is a correct answer |
7 | Correct | 48 ms | 104012 KB | n = 3, 29 is a correct answer |
8 | Correct | 49 ms | 103932 KB | n = 2, 3 is a correct answer |
9 | Correct | 48 ms | 103952 KB | n = 2, 3 is a correct answer |
10 | Correct | 54 ms | 104012 KB | n = 2, 2000000001 is a correct answer |
11 | Correct | 47 ms | 103924 KB | n = 2, 3000000000 is a correct answer |
12 | Correct | 48 ms | 103996 KB | n = 3, 3000000000 is a correct answer |
13 | Correct | 47 ms | 104028 KB | n = 3, 3000000000 is a correct answer |
14 | Correct | 48 ms | 104004 KB | n = 4, 3000000001 is a correct answer |
15 | Correct | 47 ms | 104008 KB | n = 4, 4000000000 is a correct answer |
16 | Correct | 48 ms | 104004 KB | n = 5, 4000000000 is a correct answer |
17 | Correct | 48 ms | 104004 KB | n = 10, 1000000343 is a correct answer |
18 | Correct | 49 ms | 104000 KB | n = 10, 3189 is a correct answer |
19 | Correct | 48 ms | 103988 KB | n = 10, 7000000000 is a correct answer |
20 | Correct | 47 ms | 103960 KB | n = 5, 12 is a correct answer |
21 | Correct | 48 ms | 103936 KB | n = 5, 25 is a correct answer |
22 | Correct | 47 ms | 103988 KB | n = 2, 122 is a correct answer |
23 | Correct | 49 ms | 103976 KB | n = 10, 117 is a correct answer |
24 | Correct | 47 ms | 104004 KB | n = 10, 336 is a correct answer |
25 | Correct | 55 ms | 103956 KB | n = 10, 438 is a correct answer |
26 | Correct | 53 ms | 103988 KB | n = 10, 206 is a correct answer |
27 | Correct | 48 ms | 104008 KB | n = 10, 636 is a correct answer |
28 | Correct | 58 ms | 104016 KB | n = 4, 2399 is a correct answer |
29 | Correct | 48 ms | 103936 KB | n = 10, 10992 is a correct answer |
30 | Correct | 47 ms | 104004 KB | n = 10, 3112 is a correct answer |
31 | Correct | 50 ms | 103944 KB | n = 100, 51000000001 is a correct answer |
32 | Correct | 48 ms | 104004 KB | n = 50, 197881272 is a correct answer |
33 | Correct | 51 ms | 103952 KB | n = 100, 20969 is a correct answer |
34 | Correct | 54 ms | 104044 KB | n = 100, 20969 is a correct answer |
35 | Correct | 50 ms | 103980 KB | n = 100, 52000000000 is a correct answer |
36 | Correct | 50 ms | 103988 KB | n = 100, 285 is a correct answer |
37 | Correct | 52 ms | 103932 KB | n = 100, 21272 is a correct answer |
38 | Correct | 51 ms | 104004 KB | n = 100, 12161 is a correct answer |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 48 ms | 104004 KB | n = 4, 80 is a correct answer |
2 | Correct | 48 ms | 104024 KB | n = 9, 110 is a correct answer |
3 | Correct | 50 ms | 104012 KB | n = 4, 21 is a correct answer |
4 | Correct | 47 ms | 103956 KB | n = 3, 4 is a correct answer |
5 | Correct | 48 ms | 104004 KB | n = 2, 62 is a correct answer |
6 | Correct | 48 ms | 103940 KB | n = 2, 3 is a correct answer |
7 | Correct | 48 ms | 104012 KB | n = 3, 29 is a correct answer |
8 | Correct | 49 ms | 103932 KB | n = 2, 3 is a correct answer |
9 | Correct | 48 ms | 103952 KB | n = 2, 3 is a correct answer |
10 | Correct | 54 ms | 104012 KB | n = 2, 2000000001 is a correct answer |
11 | Correct | 47 ms | 103924 KB | n = 2, 3000000000 is a correct answer |
12 | Correct | 48 ms | 103996 KB | n = 3, 3000000000 is a correct answer |
13 | Correct | 47 ms | 104028 KB | n = 3, 3000000000 is a correct answer |
14 | Correct | 48 ms | 104004 KB | n = 4, 3000000001 is a correct answer |
15 | Correct | 47 ms | 104008 KB | n = 4, 4000000000 is a correct answer |
16 | Correct | 48 ms | 104004 KB | n = 5, 4000000000 is a correct answer |
17 | Correct | 48 ms | 104004 KB | n = 10, 1000000343 is a correct answer |
18 | Correct | 49 ms | 104000 KB | n = 10, 3189 is a correct answer |
19 | Correct | 48 ms | 103988 KB | n = 10, 7000000000 is a correct answer |
20 | Correct | 47 ms | 103960 KB | n = 5, 12 is a correct answer |
21 | Correct | 48 ms | 103936 KB | n = 5, 25 is a correct answer |
22 | Correct | 47 ms | 103988 KB | n = 2, 122 is a correct answer |
23 | Correct | 49 ms | 103976 KB | n = 10, 117 is a correct answer |
24 | Correct | 47 ms | 104004 KB | n = 10, 336 is a correct answer |
25 | Correct | 55 ms | 103956 KB | n = 10, 438 is a correct answer |
26 | Correct | 53 ms | 103988 KB | n = 10, 206 is a correct answer |
27 | Correct | 48 ms | 104008 KB | n = 10, 636 is a correct answer |
28 | Correct | 58 ms | 104016 KB | n = 4, 2399 is a correct answer |
29 | Correct | 48 ms | 103936 KB | n = 10, 10992 is a correct answer |
30 | Correct | 47 ms | 104004 KB | n = 10, 3112 is a correct answer |
31 | Correct | 50 ms | 103944 KB | n = 100, 51000000001 is a correct answer |
32 | Correct | 48 ms | 104004 KB | n = 50, 197881272 is a correct answer |
33 | Correct | 51 ms | 103952 KB | n = 100, 20969 is a correct answer |
34 | Correct | 54 ms | 104044 KB | n = 100, 20969 is a correct answer |
35 | Correct | 50 ms | 103980 KB | n = 100, 52000000000 is a correct answer |
36 | Correct | 50 ms | 103988 KB | n = 100, 285 is a correct answer |
37 | Correct | 52 ms | 103932 KB | n = 100, 21272 is a correct answer |
38 | Correct | 51 ms | 104004 KB | n = 100, 12161 is a correct answer |
39 | Correct | 48 ms | 104020 KB | n = 2, 62 is a correct answer |
40 | Correct | 48 ms | 103960 KB | n = 2, 3 is a correct answer |
41 | Correct | 48 ms | 104004 KB | n = 3, 29 is a correct answer |
42 | Correct | 49 ms | 104004 KB | n = 2, 3 is a correct answer |
43 | Correct | 48 ms | 104008 KB | n = 2, 3 is a correct answer |
44 | Correct | 49 ms | 103924 KB | n = 2, 2000000001 is a correct answer |
45 | Correct | 48 ms | 104032 KB | n = 2, 3000000000 is a correct answer |
46 | Correct | 48 ms | 104040 KB | n = 3, 3000000000 is a correct answer |
47 | Correct | 48 ms | 103956 KB | n = 3, 3000000000 is a correct answer |
48 | Correct | 48 ms | 104028 KB | n = 4, 3000000001 is a correct answer |
49 | Correct | 50 ms | 103980 KB | n = 4, 4000000000 is a correct answer |
50 | Correct | 48 ms | 103996 KB | n = 5, 4000000000 is a correct answer |
51 | Correct | 47 ms | 104044 KB | n = 10, 1000000343 is a correct answer |
52 | Correct | 47 ms | 104020 KB | n = 10, 3189 is a correct answer |
53 | Correct | 48 ms | 103944 KB | n = 10, 7000000000 is a correct answer |
54 | Correct | 48 ms | 104004 KB | n = 5, 12 is a correct answer |
55 | Correct | 48 ms | 104004 KB | n = 5, 25 is a correct answer |
56 | Correct | 49 ms | 103964 KB | n = 2, 122 is a correct answer |
57 | Correct | 48 ms | 104012 KB | n = 10, 117 is a correct answer |
58 | Correct | 48 ms | 104032 KB | n = 10, 336 is a correct answer |
59 | Correct | 48 ms | 103960 KB | n = 10, 438 is a correct answer |
60 | Correct | 48 ms | 104024 KB | n = 10, 206 is a correct answer |
61 | Correct | 48 ms | 104060 KB | n = 10, 636 is a correct answer |
62 | Correct | 48 ms | 103956 KB | n = 4, 2399 is a correct answer |
63 | Correct | 48 ms | 103948 KB | n = 10, 10992 is a correct answer |
64 | Correct | 53 ms | 104004 KB | n = 10, 3112 is a correct answer |
65 | Correct | 52 ms | 104128 KB | n = 100, 51000000001 is a correct answer |
66 | Correct | 47 ms | 104004 KB | n = 50, 197881272 is a correct answer |
67 | Correct | 51 ms | 103996 KB | n = 100, 20969 is a correct answer |
68 | Correct | 51 ms | 103944 KB | n = 100, 20969 is a correct answer |
69 | Correct | 51 ms | 104036 KB | n = 100, 52000000000 is a correct answer |
70 | Correct | 52 ms | 103972 KB | n = 100, 285 is a correct answer |
71 | Correct | 50 ms | 103936 KB | n = 100, 21272 is a correct answer |
72 | Correct | 50 ms | 103940 KB | n = 100, 12161 is a correct answer |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 48 ms | 104004 KB | n = 4, 80 is a correct answer |
2 | Correct | 48 ms | 104024 KB | n = 9, 110 is a correct answer |
3 | Correct | 50 ms | 104012 KB | n = 4, 21 is a correct answer |
4 | Correct | 47 ms | 103956 KB | n = 3, 4 is a correct answer |
5 | Correct | 48 ms | 104004 KB | n = 2, 62 is a correct answer |
6 | Correct | 48 ms | 103940 KB | n = 2, 3 is a correct answer |
7 | Correct | 48 ms | 104012 KB | n = 3, 29 is a correct answer |
8 | Correct | 49 ms | 103932 KB | n = 2, 3 is a correct answer |
9 | Correct | 48 ms | 103952 KB | n = 2, 3 is a correct answer |
10 | Correct | 54 ms | 104012 KB | n = 2, 2000000001 is a correct answer |
11 | Correct | 47 ms | 103924 KB | n = 2, 3000000000 is a correct answer |
12 | Correct | 48 ms | 103996 KB | n = 3, 3000000000 is a correct answer |
13 | Correct | 47 ms | 104028 KB | n = 3, 3000000000 is a correct answer |
14 | Correct | 48 ms | 104004 KB | n = 4, 3000000001 is a correct answer |
15 | Correct | 47 ms | 104008 KB | n = 4, 4000000000 is a correct answer |
16 | Correct | 48 ms | 104004 KB | n = 5, 4000000000 is a correct answer |
17 | Correct | 48 ms | 104004 KB | n = 10, 1000000343 is a correct answer |
18 | Correct | 49 ms | 104000 KB | n = 10, 3189 is a correct answer |
19 | Correct | 48 ms | 103988 KB | n = 10, 7000000000 is a correct answer |
20 | Correct | 47 ms | 103960 KB | n = 5, 12 is a correct answer |
21 | Correct | 48 ms | 103936 KB | n = 5, 25 is a correct answer |
22 | Correct | 47 ms | 103988 KB | n = 2, 122 is a correct answer |
23 | Correct | 49 ms | 103976 KB | n = 10, 117 is a correct answer |
24 | Correct | 47 ms | 104004 KB | n = 10, 336 is a correct answer |
25 | Correct | 55 ms | 103956 KB | n = 10, 438 is a correct answer |
26 | Correct | 53 ms | 103988 KB | n = 10, 206 is a correct answer |
27 | Correct | 48 ms | 104008 KB | n = 10, 636 is a correct answer |
28 | Correct | 58 ms | 104016 KB | n = 4, 2399 is a correct answer |
29 | Correct | 48 ms | 103936 KB | n = 10, 10992 is a correct answer |
30 | Correct | 47 ms | 104004 KB | n = 10, 3112 is a correct answer |
31 | Correct | 50 ms | 103944 KB | n = 100, 51000000001 is a correct answer |
32 | Correct | 48 ms | 104004 KB | n = 50, 197881272 is a correct answer |
33 | Correct | 51 ms | 103952 KB | n = 100, 20969 is a correct answer |
34 | Correct | 54 ms | 104044 KB | n = 100, 20969 is a correct answer |
35 | Correct | 50 ms | 103980 KB | n = 100, 52000000000 is a correct answer |
36 | Correct | 50 ms | 103988 KB | n = 100, 285 is a correct answer |
37 | Correct | 52 ms | 103932 KB | n = 100, 21272 is a correct answer |
38 | Correct | 51 ms | 104004 KB | n = 100, 12161 is a correct answer |
39 | Correct | 48 ms | 104020 KB | n = 2, 62 is a correct answer |
40 | Correct | 48 ms | 103960 KB | n = 2, 3 is a correct answer |
41 | Correct | 48 ms | 104004 KB | n = 3, 29 is a correct answer |
42 | Correct | 49 ms | 104004 KB | n = 2, 3 is a correct answer |
43 | Correct | 48 ms | 104008 KB | n = 2, 3 is a correct answer |
44 | Correct | 49 ms | 103924 KB | n = 2, 2000000001 is a correct answer |
45 | Correct | 48 ms | 104032 KB | n = 2, 3000000000 is a correct answer |
46 | Correct | 48 ms | 104040 KB | n = 3, 3000000000 is a correct answer |
47 | Correct | 48 ms | 103956 KB | n = 3, 3000000000 is a correct answer |
48 | Correct | 48 ms | 104028 KB | n = 4, 3000000001 is a correct answer |
49 | Correct | 50 ms | 103980 KB | n = 4, 4000000000 is a correct answer |
50 | Correct | 48 ms | 103996 KB | n = 5, 4000000000 is a correct answer |
51 | Correct | 47 ms | 104044 KB | n = 10, 1000000343 is a correct answer |
52 | Correct | 47 ms | 104020 KB | n = 10, 3189 is a correct answer |
53 | Correct | 48 ms | 103944 KB | n = 10, 7000000000 is a correct answer |
54 | Correct | 48 ms | 104004 KB | n = 5, 12 is a correct answer |
55 | Correct | 48 ms | 104004 KB | n = 5, 25 is a correct answer |
56 | Correct | 49 ms | 103964 KB | n = 2, 122 is a correct answer |
57 | Correct | 48 ms | 104012 KB | n = 10, 117 is a correct answer |
58 | Correct | 48 ms | 104032 KB | n = 10, 336 is a correct answer |
59 | Correct | 48 ms | 103960 KB | n = 10, 438 is a correct answer |
60 | Correct | 48 ms | 104024 KB | n = 10, 206 is a correct answer |
61 | Correct | 48 ms | 104060 KB | n = 10, 636 is a correct answer |
62 | Correct | 48 ms | 103956 KB | n = 4, 2399 is a correct answer |
63 | Correct | 48 ms | 103948 KB | n = 10, 10992 is a correct answer |
64 | Correct | 53 ms | 104004 KB | n = 10, 3112 is a correct answer |
65 | Correct | 52 ms | 104128 KB | n = 100, 51000000001 is a correct answer |
66 | Correct | 47 ms | 104004 KB | n = 50, 197881272 is a correct answer |
67 | Correct | 51 ms | 103996 KB | n = 100, 20969 is a correct answer |
68 | Correct | 51 ms | 103944 KB | n = 100, 20969 is a correct answer |
69 | Correct | 51 ms | 104036 KB | n = 100, 52000000000 is a correct answer |
70 | Correct | 52 ms | 103972 KB | n = 100, 285 is a correct answer |
71 | Correct | 50 ms | 103936 KB | n = 100, 21272 is a correct answer |
72 | Correct | 50 ms | 103940 KB | n = 100, 12161 is a correct answer |
73 | Correct | 83 ms | 104048 KB | n = 250, 25037 is a correct answer |
74 | Correct | 83 ms | 103952 KB | n = 250, 199047242 is a correct answer |
75 | Correct | 84 ms | 104000 KB | n = 250, 61231537449 is a correct answer |
76 | Correct | 78 ms | 104100 KB | n = 250, 126000000001 is a correct answer |
77 | Correct | 78 ms | 104048 KB | n = 250, 127000000000 is a correct answer |
78 | Correct | 77 ms | 103980 KB | n = 250, 2123470094 is a correct answer |
79 | Correct | 78 ms | 104012 KB | n = 250, 6545 is a correct answer |
80 | Correct | 80 ms | 104048 KB | n = 250, 6731 is a correct answer |
81 | Correct | 51 ms | 103976 KB | n = 108, 15322 is a correct answer |
82 | Correct | 82 ms | 104052 KB | n = 250, 39952 is a correct answer |
83 | Correct | 86 ms | 104060 KB | n = 250, 41156 is a correct answer |
84 | Correct | 83 ms | 104036 KB | n = 250, 12881 is a correct answer |
85 | Correct | 85 ms | 104032 KB | n = 250, 213812 is a correct answer |
86 | Correct | 84 ms | 104008 KB | n = 250, 194188 is a correct answer |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 48 ms | 104004 KB | n = 4, 80 is a correct answer |
2 | Correct | 48 ms | 104024 KB | n = 9, 110 is a correct answer |
3 | Correct | 50 ms | 104012 KB | n = 4, 21 is a correct answer |
4 | Correct | 47 ms | 103956 KB | n = 3, 4 is a correct answer |
5 | Correct | 48 ms | 104004 KB | n = 2, 62 is a correct answer |
6 | Correct | 48 ms | 103940 KB | n = 2, 3 is a correct answer |
7 | Correct | 48 ms | 104012 KB | n = 3, 29 is a correct answer |
8 | Correct | 49 ms | 103932 KB | n = 2, 3 is a correct answer |
9 | Correct | 48 ms | 103952 KB | n = 2, 3 is a correct answer |
10 | Correct | 54 ms | 104012 KB | n = 2, 2000000001 is a correct answer |
11 | Correct | 47 ms | 103924 KB | n = 2, 3000000000 is a correct answer |
12 | Correct | 48 ms | 103996 KB | n = 3, 3000000000 is a correct answer |
13 | Correct | 47 ms | 104028 KB | n = 3, 3000000000 is a correct answer |
14 | Correct | 48 ms | 104004 KB | n = 4, 3000000001 is a correct answer |
15 | Correct | 47 ms | 104008 KB | n = 4, 4000000000 is a correct answer |
16 | Correct | 48 ms | 104004 KB | n = 5, 4000000000 is a correct answer |
17 | Correct | 48 ms | 104004 KB | n = 10, 1000000343 is a correct answer |
18 | Correct | 49 ms | 104000 KB | n = 10, 3189 is a correct answer |
19 | Correct | 48 ms | 103988 KB | n = 10, 7000000000 is a correct answer |
20 | Correct | 47 ms | 103960 KB | n = 5, 12 is a correct answer |
21 | Correct | 48 ms | 103936 KB | n = 5, 25 is a correct answer |
22 | Correct | 47 ms | 103988 KB | n = 2, 122 is a correct answer |
23 | Correct | 49 ms | 103976 KB | n = 10, 117 is a correct answer |
24 | Correct | 47 ms | 104004 KB | n = 10, 336 is a correct answer |
25 | Correct | 55 ms | 103956 KB | n = 10, 438 is a correct answer |
26 | Correct | 53 ms | 103988 KB | n = 10, 206 is a correct answer |
27 | Correct | 48 ms | 104008 KB | n = 10, 636 is a correct answer |
28 | Correct | 58 ms | 104016 KB | n = 4, 2399 is a correct answer |
29 | Correct | 48 ms | 103936 KB | n = 10, 10992 is a correct answer |
30 | Correct | 47 ms | 104004 KB | n = 10, 3112 is a correct answer |
31 | Correct | 50 ms | 103944 KB | n = 100, 51000000001 is a correct answer |
32 | Correct | 48 ms | 104004 KB | n = 50, 197881272 is a correct answer |
33 | Correct | 51 ms | 103952 KB | n = 100, 20969 is a correct answer |
34 | Correct | 54 ms | 104044 KB | n = 100, 20969 is a correct answer |
35 | Correct | 50 ms | 103980 KB | n = 100, 52000000000 is a correct answer |
36 | Correct | 50 ms | 103988 KB | n = 100, 285 is a correct answer |
37 | Correct | 52 ms | 103932 KB | n = 100, 21272 is a correct answer |
38 | Correct | 51 ms | 104004 KB | n = 100, 12161 is a correct answer |
39 | Correct | 48 ms | 104020 KB | n = 2, 62 is a correct answer |
40 | Correct | 48 ms | 103960 KB | n = 2, 3 is a correct answer |
41 | Correct | 48 ms | 104004 KB | n = 3, 29 is a correct answer |
42 | Correct | 49 ms | 104004 KB | n = 2, 3 is a correct answer |
43 | Correct | 48 ms | 104008 KB | n = 2, 3 is a correct answer |
44 | Correct | 49 ms | 103924 KB | n = 2, 2000000001 is a correct answer |
45 | Correct | 48 ms | 104032 KB | n = 2, 3000000000 is a correct answer |
46 | Correct | 48 ms | 104040 KB | n = 3, 3000000000 is a correct answer |
47 | Correct | 48 ms | 103956 KB | n = 3, 3000000000 is a correct answer |
48 | Correct | 48 ms | 104028 KB | n = 4, 3000000001 is a correct answer |
49 | Correct | 50 ms | 103980 KB | n = 4, 4000000000 is a correct answer |
50 | Correct | 48 ms | 103996 KB | n = 5, 4000000000 is a correct answer |
51 | Correct | 47 ms | 104044 KB | n = 10, 1000000343 is a correct answer |
52 | Correct | 47 ms | 104020 KB | n = 10, 3189 is a correct answer |
53 | Correct | 48 ms | 103944 KB | n = 10, 7000000000 is a correct answer |
54 | Correct | 48 ms | 104004 KB | n = 5, 12 is a correct answer |
55 | Correct | 48 ms | 104004 KB | n = 5, 25 is a correct answer |
56 | Correct | 49 ms | 103964 KB | n = 2, 122 is a correct answer |
57 | Correct | 48 ms | 104012 KB | n = 10, 117 is a correct answer |
58 | Correct | 48 ms | 104032 KB | n = 10, 336 is a correct answer |
59 | Correct | 48 ms | 103960 KB | n = 10, 438 is a correct answer |
60 | Correct | 48 ms | 104024 KB | n = 10, 206 is a correct answer |
61 | Correct | 48 ms | 104060 KB | n = 10, 636 is a correct answer |
62 | Correct | 48 ms | 103956 KB | n = 4, 2399 is a correct answer |
63 | Correct | 48 ms | 103948 KB | n = 10, 10992 is a correct answer |
64 | Correct | 53 ms | 104004 KB | n = 10, 3112 is a correct answer |
65 | Correct | 52 ms | 104128 KB | n = 100, 51000000001 is a correct answer |
66 | Correct | 47 ms | 104004 KB | n = 50, 197881272 is a correct answer |
67 | Correct | 51 ms | 103996 KB | n = 100, 20969 is a correct answer |
68 | Correct | 51 ms | 103944 KB | n = 100, 20969 is a correct answer |
69 | Correct | 51 ms | 104036 KB | n = 100, 52000000000 is a correct answer |
70 | Correct | 52 ms | 103972 KB | n = 100, 285 is a correct answer |
71 | Correct | 50 ms | 103936 KB | n = 100, 21272 is a correct answer |
72 | Correct | 50 ms | 103940 KB | n = 100, 12161 is a correct answer |
73 | Correct | 83 ms | 104048 KB | n = 250, 25037 is a correct answer |
74 | Correct | 83 ms | 103952 KB | n = 250, 199047242 is a correct answer |
75 | Correct | 84 ms | 104000 KB | n = 250, 61231537449 is a correct answer |
76 | Correct | 78 ms | 104100 KB | n = 250, 126000000001 is a correct answer |
77 | Correct | 78 ms | 104048 KB | n = 250, 127000000000 is a correct answer |
78 | Correct | 77 ms | 103980 KB | n = 250, 2123470094 is a correct answer |
79 | Correct | 78 ms | 104012 KB | n = 250, 6545 is a correct answer |
80 | Correct | 80 ms | 104048 KB | n = 250, 6731 is a correct answer |
81 | Correct | 51 ms | 103976 KB | n = 108, 15322 is a correct answer |
82 | Correct | 82 ms | 104052 KB | n = 250, 39952 is a correct answer |
83 | Correct | 86 ms | 104060 KB | n = 250, 41156 is a correct answer |
84 | Correct | 83 ms | 104036 KB | n = 250, 12881 is a correct answer |
85 | Correct | 85 ms | 104032 KB | n = 250, 213812 is a correct answer |
86 | Correct | 84 ms | 104008 KB | n = 250, 194188 is a correct answer |
87 | Correct | 304 ms | 104056 KB | n = 500, 199300822 is a correct answer |
88 | Correct | 318 ms | 104004 KB | n = 500, 127613044387 is a correct answer |
89 | Correct | 292 ms | 104012 KB | n = 500, 251000000001 is a correct answer |
90 | Correct | 275 ms | 104268 KB | n = 500, 252000000000 is a correct answer |
91 | Correct | 318 ms | 104000 KB | n = 500, 199378978 is a correct answer |
92 | Correct | 315 ms | 104052 KB | n = 500, 199551149 is a correct answer |
93 | Correct | 198 ms | 104004 KB | n = 400, 7177 is a correct answer |
94 | Correct | 173 ms | 104056 KB | n = 400, 10067 is a correct answer |
95 | Correct | 321 ms | 104064 KB | n = 500, 198631068 is a correct answer |
96 | Correct | 200 ms | 104056 KB | n = 400, 10814 is a correct answer |
97 | Correct | 178 ms | 104056 KB | n = 400, 9141 is a correct answer |
98 | Correct | 280 ms | 104060 KB | n = 500, 5699 is a correct answer |
99 | Correct | 307 ms | 104040 KB | n = 500, 13504 is a correct answer |
100 | Correct | 325 ms | 104052 KB | n = 500, 31507 is a correct answer |
101 | Correct | 262 ms | 104076 KB | n = 500, 199425296 is a correct answer |
102 | Correct | 320 ms | 104056 KB | n = 500, 198990259 is a correct answer |
103 | Correct | 326 ms | 104132 KB | n = 500, 486155 is a correct answer |
104 | Correct | 316 ms | 104056 KB | n = 500, 256468 is a correct answer |
105 | Correct | 339 ms | 104052 KB | n = 500, 309873 is a correct answer |
106 | Correct | 333 ms | 104052 KB | n = 500, 434764 is a correct answer |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 48 ms | 104004 KB | n = 4, 80 is a correct answer |
2 | Correct | 48 ms | 104024 KB | n = 9, 110 is a correct answer |
3 | Correct | 50 ms | 104012 KB | n = 4, 21 is a correct answer |
4 | Correct | 47 ms | 103956 KB | n = 3, 4 is a correct answer |
5 | Correct | 48 ms | 104004 KB | n = 2, 62 is a correct answer |
6 | Correct | 48 ms | 103940 KB | n = 2, 3 is a correct answer |
7 | Correct | 48 ms | 104012 KB | n = 3, 29 is a correct answer |
8 | Correct | 49 ms | 103932 KB | n = 2, 3 is a correct answer |
9 | Correct | 48 ms | 103952 KB | n = 2, 3 is a correct answer |
10 | Correct | 54 ms | 104012 KB | n = 2, 2000000001 is a correct answer |
11 | Correct | 47 ms | 103924 KB | n = 2, 3000000000 is a correct answer |
12 | Correct | 48 ms | 103996 KB | n = 3, 3000000000 is a correct answer |
13 | Correct | 47 ms | 104028 KB | n = 3, 3000000000 is a correct answer |
14 | Correct | 48 ms | 104004 KB | n = 4, 3000000001 is a correct answer |
15 | Correct | 47 ms | 104008 KB | n = 4, 4000000000 is a correct answer |
16 | Correct | 48 ms | 104004 KB | n = 5, 4000000000 is a correct answer |
17 | Correct | 48 ms | 104004 KB | n = 10, 1000000343 is a correct answer |
18 | Correct | 49 ms | 104000 KB | n = 10, 3189 is a correct answer |
19 | Correct | 48 ms | 103988 KB | n = 10, 7000000000 is a correct answer |
20 | Correct | 47 ms | 103960 KB | n = 5, 12 is a correct answer |
21 | Correct | 48 ms | 103936 KB | n = 5, 25 is a correct answer |
22 | Correct | 47 ms | 103988 KB | n = 2, 122 is a correct answer |
23 | Correct | 49 ms | 103976 KB | n = 10, 117 is a correct answer |
24 | Correct | 47 ms | 104004 KB | n = 10, 336 is a correct answer |
25 | Correct | 55 ms | 103956 KB | n = 10, 438 is a correct answer |
26 | Correct | 53 ms | 103988 KB | n = 10, 206 is a correct answer |
27 | Correct | 48 ms | 104008 KB | n = 10, 636 is a correct answer |
28 | Correct | 58 ms | 104016 KB | n = 4, 2399 is a correct answer |
29 | Correct | 48 ms | 103936 KB | n = 10, 10992 is a correct answer |
30 | Correct | 47 ms | 104004 KB | n = 10, 3112 is a correct answer |
31 | Correct | 50 ms | 103944 KB | n = 100, 51000000001 is a correct answer |
32 | Correct | 48 ms | 104004 KB | n = 50, 197881272 is a correct answer |
33 | Correct | 51 ms | 103952 KB | n = 100, 20969 is a correct answer |
34 | Correct | 54 ms | 104044 KB | n = 100, 20969 is a correct answer |
35 | Correct | 50 ms | 103980 KB | n = 100, 52000000000 is a correct answer |
36 | Correct | 50 ms | 103988 KB | n = 100, 285 is a correct answer |
37 | Correct | 52 ms | 103932 KB | n = 100, 21272 is a correct answer |
38 | Correct | 51 ms | 104004 KB | n = 100, 12161 is a correct answer |
39 | Correct | 48 ms | 104020 KB | n = 2, 62 is a correct answer |
40 | Correct | 48 ms | 103960 KB | n = 2, 3 is a correct answer |
41 | Correct | 48 ms | 104004 KB | n = 3, 29 is a correct answer |
42 | Correct | 49 ms | 104004 KB | n = 2, 3 is a correct answer |
43 | Correct | 48 ms | 104008 KB | n = 2, 3 is a correct answer |
44 | Correct | 49 ms | 103924 KB | n = 2, 2000000001 is a correct answer |
45 | Correct | 48 ms | 104032 KB | n = 2, 3000000000 is a correct answer |
46 | Correct | 48 ms | 104040 KB | n = 3, 3000000000 is a correct answer |
47 | Correct | 48 ms | 103956 KB | n = 3, 3000000000 is a correct answer |
48 | Correct | 48 ms | 104028 KB | n = 4, 3000000001 is a correct answer |
49 | Correct | 50 ms | 103980 KB | n = 4, 4000000000 is a correct answer |
50 | Correct | 48 ms | 103996 KB | n = 5, 4000000000 is a correct answer |
51 | Correct | 47 ms | 104044 KB | n = 10, 1000000343 is a correct answer |
52 | Correct | 47 ms | 104020 KB | n = 10, 3189 is a correct answer |
53 | Correct | 48 ms | 103944 KB | n = 10, 7000000000 is a correct answer |
54 | Correct | 48 ms | 104004 KB | n = 5, 12 is a correct answer |
55 | Correct | 48 ms | 104004 KB | n = 5, 25 is a correct answer |
56 | Correct | 49 ms | 103964 KB | n = 2, 122 is a correct answer |
57 | Correct | 48 ms | 104012 KB | n = 10, 117 is a correct answer |
58 | Correct | 48 ms | 104032 KB | n = 10, 336 is a correct answer |
59 | Correct | 48 ms | 103960 KB | n = 10, 438 is a correct answer |
60 | Correct | 48 ms | 104024 KB | n = 10, 206 is a correct answer |
61 | Correct | 48 ms | 104060 KB | n = 10, 636 is a correct answer |
62 | Correct | 48 ms | 103956 KB | n = 4, 2399 is a correct answer |
63 | Correct | 48 ms | 103948 KB | n = 10, 10992 is a correct answer |
64 | Correct | 53 ms | 104004 KB | n = 10, 3112 is a correct answer |
65 | Correct | 52 ms | 104128 KB | n = 100, 51000000001 is a correct answer |
66 | Correct | 47 ms | 104004 KB | n = 50, 197881272 is a correct answer |
67 | Correct | 51 ms | 103996 KB | n = 100, 20969 is a correct answer |
68 | Correct | 51 ms | 103944 KB | n = 100, 20969 is a correct answer |
69 | Correct | 51 ms | 104036 KB | n = 100, 52000000000 is a correct answer |
70 | Correct | 52 ms | 103972 KB | n = 100, 285 is a correct answer |
71 | Correct | 50 ms | 103936 KB | n = 100, 21272 is a correct answer |
72 | Correct | 50 ms | 103940 KB | n = 100, 12161 is a correct answer |
73 | Correct | 83 ms | 104048 KB | n = 250, 25037 is a correct answer |
74 | Correct | 83 ms | 103952 KB | n = 250, 199047242 is a correct answer |
75 | Correct | 84 ms | 104000 KB | n = 250, 61231537449 is a correct answer |
76 | Correct | 78 ms | 104100 KB | n = 250, 126000000001 is a correct answer |
77 | Correct | 78 ms | 104048 KB | n = 250, 127000000000 is a correct answer |
78 | Correct | 77 ms | 103980 KB | n = 250, 2123470094 is a correct answer |
79 | Correct | 78 ms | 104012 KB | n = 250, 6545 is a correct answer |
80 | Correct | 80 ms | 104048 KB | n = 250, 6731 is a correct answer |
81 | Correct | 51 ms | 103976 KB | n = 108, 15322 is a correct answer |
82 | Correct | 82 ms | 104052 KB | n = 250, 39952 is a correct answer |
83 | Correct | 86 ms | 104060 KB | n = 250, 41156 is a correct answer |
84 | Correct | 83 ms | 104036 KB | n = 250, 12881 is a correct answer |
85 | Correct | 85 ms | 104032 KB | n = 250, 213812 is a correct answer |
86 | Correct | 84 ms | 104008 KB | n = 250, 194188 is a correct answer |
87 | Correct | 304 ms | 104056 KB | n = 500, 199300822 is a correct answer |
88 | Correct | 318 ms | 104004 KB | n = 500, 127613044387 is a correct answer |
89 | Correct | 292 ms | 104012 KB | n = 500, 251000000001 is a correct answer |
90 | Correct | 275 ms | 104268 KB | n = 500, 252000000000 is a correct answer |
91 | Correct | 318 ms | 104000 KB | n = 500, 199378978 is a correct answer |
92 | Correct | 315 ms | 104052 KB | n = 500, 199551149 is a correct answer |
93 | Correct | 198 ms | 104004 KB | n = 400, 7177 is a correct answer |
94 | Correct | 173 ms | 104056 KB | n = 400, 10067 is a correct answer |
95 | Correct | 321 ms | 104064 KB | n = 500, 198631068 is a correct answer |
96 | Correct | 200 ms | 104056 KB | n = 400, 10814 is a correct answer |
97 | Correct | 178 ms | 104056 KB | n = 400, 9141 is a correct answer |
98 | Correct | 280 ms | 104060 KB | n = 500, 5699 is a correct answer |
99 | Correct | 307 ms | 104040 KB | n = 500, 13504 is a correct answer |
100 | Correct | 325 ms | 104052 KB | n = 500, 31507 is a correct answer |
101 | Correct | 262 ms | 104076 KB | n = 500, 199425296 is a correct answer |
102 | Correct | 320 ms | 104056 KB | n = 500, 198990259 is a correct answer |
103 | Correct | 326 ms | 104132 KB | n = 500, 486155 is a correct answer |
104 | Correct | 316 ms | 104056 KB | n = 500, 256468 is a correct answer |
105 | Correct | 339 ms | 104052 KB | n = 500, 309873 is a correct answer |
106 | Correct | 333 ms | 104052 KB | n = 500, 434764 is a correct answer |
107 | Runtime error | 156 ms | 210884 KB | Execution killed with signal 11 |
108 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 48 ms | 104004 KB | n = 4, 80 is a correct answer |
2 | Correct | 48 ms | 104024 KB | n = 9, 110 is a correct answer |
3 | Correct | 50 ms | 104012 KB | n = 4, 21 is a correct answer |
4 | Correct | 47 ms | 103956 KB | n = 3, 4 is a correct answer |
5 | Correct | 48 ms | 104004 KB | n = 2, 62 is a correct answer |
6 | Correct | 48 ms | 103940 KB | n = 2, 3 is a correct answer |
7 | Correct | 48 ms | 104012 KB | n = 3, 29 is a correct answer |
8 | Correct | 49 ms | 103932 KB | n = 2, 3 is a correct answer |
9 | Correct | 48 ms | 103952 KB | n = 2, 3 is a correct answer |
10 | Correct | 54 ms | 104012 KB | n = 2, 2000000001 is a correct answer |
11 | Correct | 47 ms | 103924 KB | n = 2, 3000000000 is a correct answer |
12 | Correct | 48 ms | 103996 KB | n = 3, 3000000000 is a correct answer |
13 | Correct | 47 ms | 104028 KB | n = 3, 3000000000 is a correct answer |
14 | Correct | 48 ms | 104004 KB | n = 4, 3000000001 is a correct answer |
15 | Correct | 47 ms | 104008 KB | n = 4, 4000000000 is a correct answer |
16 | Correct | 48 ms | 104004 KB | n = 5, 4000000000 is a correct answer |
17 | Correct | 48 ms | 104004 KB | n = 10, 1000000343 is a correct answer |
18 | Correct | 49 ms | 104000 KB | n = 10, 3189 is a correct answer |
19 | Correct | 48 ms | 103988 KB | n = 10, 7000000000 is a correct answer |
20 | Correct | 47 ms | 103960 KB | n = 5, 12 is a correct answer |
21 | Correct | 48 ms | 103936 KB | n = 5, 25 is a correct answer |
22 | Correct | 47 ms | 103988 KB | n = 2, 122 is a correct answer |
23 | Correct | 49 ms | 103976 KB | n = 10, 117 is a correct answer |
24 | Correct | 47 ms | 104004 KB | n = 10, 336 is a correct answer |
25 | Correct | 55 ms | 103956 KB | n = 10, 438 is a correct answer |
26 | Correct | 53 ms | 103988 KB | n = 10, 206 is a correct answer |
27 | Correct | 48 ms | 104008 KB | n = 10, 636 is a correct answer |
28 | Correct | 58 ms | 104016 KB | n = 4, 2399 is a correct answer |
29 | Correct | 48 ms | 103936 KB | n = 10, 10992 is a correct answer |
30 | Correct | 47 ms | 104004 KB | n = 10, 3112 is a correct answer |
31 | Correct | 50 ms | 103944 KB | n = 100, 51000000001 is a correct answer |
32 | Correct | 48 ms | 104004 KB | n = 50, 197881272 is a correct answer |
33 | Correct | 51 ms | 103952 KB | n = 100, 20969 is a correct answer |
34 | Correct | 54 ms | 104044 KB | n = 100, 20969 is a correct answer |
35 | Correct | 50 ms | 103980 KB | n = 100, 52000000000 is a correct answer |
36 | Correct | 50 ms | 103988 KB | n = 100, 285 is a correct answer |
37 | Correct | 52 ms | 103932 KB | n = 100, 21272 is a correct answer |
38 | Correct | 51 ms | 104004 KB | n = 100, 12161 is a correct answer |
39 | Correct | 48 ms | 104020 KB | n = 2, 62 is a correct answer |
40 | Correct | 48 ms | 103960 KB | n = 2, 3 is a correct answer |
41 | Correct | 48 ms | 104004 KB | n = 3, 29 is a correct answer |
42 | Correct | 49 ms | 104004 KB | n = 2, 3 is a correct answer |
43 | Correct | 48 ms | 104008 KB | n = 2, 3 is a correct answer |
44 | Correct | 49 ms | 103924 KB | n = 2, 2000000001 is a correct answer |
45 | Correct | 48 ms | 104032 KB | n = 2, 3000000000 is a correct answer |
46 | Correct | 48 ms | 104040 KB | n = 3, 3000000000 is a correct answer |
47 | Correct | 48 ms | 103956 KB | n = 3, 3000000000 is a correct answer |
48 | Correct | 48 ms | 104028 KB | n = 4, 3000000001 is a correct answer |
49 | Correct | 50 ms | 103980 KB | n = 4, 4000000000 is a correct answer |
50 | Correct | 48 ms | 103996 KB | n = 5, 4000000000 is a correct answer |
51 | Correct | 47 ms | 104044 KB | n = 10, 1000000343 is a correct answer |
52 | Correct | 47 ms | 104020 KB | n = 10, 3189 is a correct answer |
53 | Correct | 48 ms | 103944 KB | n = 10, 7000000000 is a correct answer |
54 | Correct | 48 ms | 104004 KB | n = 5, 12 is a correct answer |
55 | Correct | 48 ms | 104004 KB | n = 5, 25 is a correct answer |
56 | Correct | 49 ms | 103964 KB | n = 2, 122 is a correct answer |
57 | Correct | 48 ms | 104012 KB | n = 10, 117 is a correct answer |
58 | Correct | 48 ms | 104032 KB | n = 10, 336 is a correct answer |
59 | Correct | 48 ms | 103960 KB | n = 10, 438 is a correct answer |
60 | Correct | 48 ms | 104024 KB | n = 10, 206 is a correct answer |
61 | Correct | 48 ms | 104060 KB | n = 10, 636 is a correct answer |
62 | Correct | 48 ms | 103956 KB | n = 4, 2399 is a correct answer |
63 | Correct | 48 ms | 103948 KB | n = 10, 10992 is a correct answer |
64 | Correct | 53 ms | 104004 KB | n = 10, 3112 is a correct answer |
65 | Correct | 52 ms | 104128 KB | n = 100, 51000000001 is a correct answer |
66 | Correct | 47 ms | 104004 KB | n = 50, 197881272 is a correct answer |
67 | Correct | 51 ms | 103996 KB | n = 100, 20969 is a correct answer |
68 | Correct | 51 ms | 103944 KB | n = 100, 20969 is a correct answer |
69 | Correct | 51 ms | 104036 KB | n = 100, 52000000000 is a correct answer |
70 | Correct | 52 ms | 103972 KB | n = 100, 285 is a correct answer |
71 | Correct | 50 ms | 103936 KB | n = 100, 21272 is a correct answer |
72 | Correct | 50 ms | 103940 KB | n = 100, 12161 is a correct answer |
73 | Correct | 83 ms | 104048 KB | n = 250, 25037 is a correct answer |
74 | Correct | 83 ms | 103952 KB | n = 250, 199047242 is a correct answer |
75 | Correct | 84 ms | 104000 KB | n = 250, 61231537449 is a correct answer |
76 | Correct | 78 ms | 104100 KB | n = 250, 126000000001 is a correct answer |
77 | Correct | 78 ms | 104048 KB | n = 250, 127000000000 is a correct answer |
78 | Correct | 77 ms | 103980 KB | n = 250, 2123470094 is a correct answer |
79 | Correct | 78 ms | 104012 KB | n = 250, 6545 is a correct answer |
80 | Correct | 80 ms | 104048 KB | n = 250, 6731 is a correct answer |
81 | Correct | 51 ms | 103976 KB | n = 108, 15322 is a correct answer |
82 | Correct | 82 ms | 104052 KB | n = 250, 39952 is a correct answer |
83 | Correct | 86 ms | 104060 KB | n = 250, 41156 is a correct answer |
84 | Correct | 83 ms | 104036 KB | n = 250, 12881 is a correct answer |
85 | Correct | 85 ms | 104032 KB | n = 250, 213812 is a correct answer |
86 | Correct | 84 ms | 104008 KB | n = 250, 194188 is a correct answer |
87 | Correct | 304 ms | 104056 KB | n = 500, 199300822 is a correct answer |
88 | Correct | 318 ms | 104004 KB | n = 500, 127613044387 is a correct answer |
89 | Correct | 292 ms | 104012 KB | n = 500, 251000000001 is a correct answer |
90 | Correct | 275 ms | 104268 KB | n = 500, 252000000000 is a correct answer |
91 | Correct | 318 ms | 104000 KB | n = 500, 199378978 is a correct answer |
92 | Correct | 315 ms | 104052 KB | n = 500, 199551149 is a correct answer |
93 | Correct | 198 ms | 104004 KB | n = 400, 7177 is a correct answer |
94 | Correct | 173 ms | 104056 KB | n = 400, 10067 is a correct answer |
95 | Correct | 321 ms | 104064 KB | n = 500, 198631068 is a correct answer |
96 | Correct | 200 ms | 104056 KB | n = 400, 10814 is a correct answer |
97 | Correct | 178 ms | 104056 KB | n = 400, 9141 is a correct answer |
98 | Correct | 280 ms | 104060 KB | n = 500, 5699 is a correct answer |
99 | Correct | 307 ms | 104040 KB | n = 500, 13504 is a correct answer |
100 | Correct | 325 ms | 104052 KB | n = 500, 31507 is a correct answer |
101 | Correct | 262 ms | 104076 KB | n = 500, 199425296 is a correct answer |
102 | Correct | 320 ms | 104056 KB | n = 500, 198990259 is a correct answer |
103 | Correct | 326 ms | 104132 KB | n = 500, 486155 is a correct answer |
104 | Correct | 316 ms | 104056 KB | n = 500, 256468 is a correct answer |
105 | Correct | 339 ms | 104052 KB | n = 500, 309873 is a correct answer |
106 | Correct | 333 ms | 104052 KB | n = 500, 434764 is a correct answer |
107 | Runtime error | 156 ms | 210884 KB | Execution killed with signal 11 |
108 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 48 ms | 104004 KB | n = 4, 80 is a correct answer |
2 | Correct | 48 ms | 104024 KB | n = 9, 110 is a correct answer |
3 | Correct | 50 ms | 104012 KB | n = 4, 21 is a correct answer |
4 | Correct | 47 ms | 103956 KB | n = 3, 4 is a correct answer |
5 | Correct | 48 ms | 104004 KB | n = 2, 62 is a correct answer |
6 | Correct | 48 ms | 103940 KB | n = 2, 3 is a correct answer |
7 | Correct | 48 ms | 104012 KB | n = 3, 29 is a correct answer |
8 | Correct | 49 ms | 103932 KB | n = 2, 3 is a correct answer |
9 | Correct | 48 ms | 103952 KB | n = 2, 3 is a correct answer |
10 | Correct | 54 ms | 104012 KB | n = 2, 2000000001 is a correct answer |
11 | Correct | 47 ms | 103924 KB | n = 2, 3000000000 is a correct answer |
12 | Correct | 48 ms | 103996 KB | n = 3, 3000000000 is a correct answer |
13 | Correct | 47 ms | 104028 KB | n = 3, 3000000000 is a correct answer |
14 | Correct | 48 ms | 104004 KB | n = 4, 3000000001 is a correct answer |
15 | Correct | 47 ms | 104008 KB | n = 4, 4000000000 is a correct answer |
16 | Correct | 48 ms | 104004 KB | n = 5, 4000000000 is a correct answer |
17 | Correct | 48 ms | 104004 KB | n = 10, 1000000343 is a correct answer |
18 | Correct | 49 ms | 104000 KB | n = 10, 3189 is a correct answer |
19 | Correct | 48 ms | 103988 KB | n = 10, 7000000000 is a correct answer |
20 | Correct | 47 ms | 103960 KB | n = 5, 12 is a correct answer |
21 | Correct | 48 ms | 103936 KB | n = 5, 25 is a correct answer |
22 | Correct | 47 ms | 103988 KB | n = 2, 122 is a correct answer |
23 | Correct | 49 ms | 103976 KB | n = 10, 117 is a correct answer |
24 | Correct | 47 ms | 104004 KB | n = 10, 336 is a correct answer |
25 | Correct | 55 ms | 103956 KB | n = 10, 438 is a correct answer |
26 | Correct | 53 ms | 103988 KB | n = 10, 206 is a correct answer |
27 | Correct | 48 ms | 104008 KB | n = 10, 636 is a correct answer |
28 | Correct | 58 ms | 104016 KB | n = 4, 2399 is a correct answer |
29 | Correct | 48 ms | 103936 KB | n = 10, 10992 is a correct answer |
30 | Correct | 47 ms | 104004 KB | n = 10, 3112 is a correct answer |
31 | Correct | 50 ms | 103944 KB | n = 100, 51000000001 is a correct answer |
32 | Correct | 48 ms | 104004 KB | n = 50, 197881272 is a correct answer |
33 | Correct | 51 ms | 103952 KB | n = 100, 20969 is a correct answer |
34 | Correct | 54 ms | 104044 KB | n = 100, 20969 is a correct answer |
35 | Correct | 50 ms | 103980 KB | n = 100, 52000000000 is a correct answer |
36 | Correct | 50 ms | 103988 KB | n = 100, 285 is a correct answer |
37 | Correct | 52 ms | 103932 KB | n = 100, 21272 is a correct answer |
38 | Correct | 51 ms | 104004 KB | n = 100, 12161 is a correct answer |
39 | Correct | 48 ms | 104020 KB | n = 2, 62 is a correct answer |
40 | Correct | 48 ms | 103960 KB | n = 2, 3 is a correct answer |
41 | Correct | 48 ms | 104004 KB | n = 3, 29 is a correct answer |
42 | Correct | 49 ms | 104004 KB | n = 2, 3 is a correct answer |
43 | Correct | 48 ms | 104008 KB | n = 2, 3 is a correct answer |
44 | Correct | 49 ms | 103924 KB | n = 2, 2000000001 is a correct answer |
45 | Correct | 48 ms | 104032 KB | n = 2, 3000000000 is a correct answer |
46 | Correct | 48 ms | 104040 KB | n = 3, 3000000000 is a correct answer |
47 | Correct | 48 ms | 103956 KB | n = 3, 3000000000 is a correct answer |
48 | Correct | 48 ms | 104028 KB | n = 4, 3000000001 is a correct answer |
49 | Correct | 50 ms | 103980 KB | n = 4, 4000000000 is a correct answer |
50 | Correct | 48 ms | 103996 KB | n = 5, 4000000000 is a correct answer |
51 | Correct | 47 ms | 104044 KB | n = 10, 1000000343 is a correct answer |
52 | Correct | 47 ms | 104020 KB | n = 10, 3189 is a correct answer |
53 | Correct | 48 ms | 103944 KB | n = 10, 7000000000 is a correct answer |
54 | Correct | 48 ms | 104004 KB | n = 5, 12 is a correct answer |
55 | Correct | 48 ms | 104004 KB | n = 5, 25 is a correct answer |
56 | Correct | 49 ms | 103964 KB | n = 2, 122 is a correct answer |
57 | Correct | 48 ms | 104012 KB | n = 10, 117 is a correct answer |
58 | Correct | 48 ms | 104032 KB | n = 10, 336 is a correct answer |
59 | Correct | 48 ms | 103960 KB | n = 10, 438 is a correct answer |
60 | Correct | 48 ms | 104024 KB | n = 10, 206 is a correct answer |
61 | Correct | 48 ms | 104060 KB | n = 10, 636 is a correct answer |
62 | Correct | 48 ms | 103956 KB | n = 4, 2399 is a correct answer |
63 | Correct | 48 ms | 103948 KB | n = 10, 10992 is a correct answer |
64 | Correct | 53 ms | 104004 KB | n = 10, 3112 is a correct answer |
65 | Correct | 52 ms | 104128 KB | n = 100, 51000000001 is a correct answer |
66 | Correct | 47 ms | 104004 KB | n = 50, 197881272 is a correct answer |
67 | Correct | 51 ms | 103996 KB | n = 100, 20969 is a correct answer |
68 | Correct | 51 ms | 103944 KB | n = 100, 20969 is a correct answer |
69 | Correct | 51 ms | 104036 KB | n = 100, 52000000000 is a correct answer |
70 | Correct | 52 ms | 103972 KB | n = 100, 285 is a correct answer |
71 | Correct | 50 ms | 103936 KB | n = 100, 21272 is a correct answer |
72 | Correct | 50 ms | 103940 KB | n = 100, 12161 is a correct answer |
73 | Correct | 83 ms | 104048 KB | n = 250, 25037 is a correct answer |
74 | Correct | 83 ms | 103952 KB | n = 250, 199047242 is a correct answer |
75 | Correct | 84 ms | 104000 KB | n = 250, 61231537449 is a correct answer |
76 | Correct | 78 ms | 104100 KB | n = 250, 126000000001 is a correct answer |
77 | Correct | 78 ms | 104048 KB | n = 250, 127000000000 is a correct answer |
78 | Correct | 77 ms | 103980 KB | n = 250, 2123470094 is a correct answer |
79 | Correct | 78 ms | 104012 KB | n = 250, 6545 is a correct answer |
80 | Correct | 80 ms | 104048 KB | n = 250, 6731 is a correct answer |
81 | Correct | 51 ms | 103976 KB | n = 108, 15322 is a correct answer |
82 | Correct | 82 ms | 104052 KB | n = 250, 39952 is a correct answer |
83 | Correct | 86 ms | 104060 KB | n = 250, 41156 is a correct answer |
84 | Correct | 83 ms | 104036 KB | n = 250, 12881 is a correct answer |
85 | Correct | 85 ms | 104032 KB | n = 250, 213812 is a correct answer |
86 | Correct | 84 ms | 104008 KB | n = 250, 194188 is a correct answer |
87 | Correct | 304 ms | 104056 KB | n = 500, 199300822 is a correct answer |
88 | Correct | 318 ms | 104004 KB | n = 500, 127613044387 is a correct answer |
89 | Correct | 292 ms | 104012 KB | n = 500, 251000000001 is a correct answer |
90 | Correct | 275 ms | 104268 KB | n = 500, 252000000000 is a correct answer |
91 | Correct | 318 ms | 104000 KB | n = 500, 199378978 is a correct answer |
92 | Correct | 315 ms | 104052 KB | n = 500, 199551149 is a correct answer |
93 | Correct | 198 ms | 104004 KB | n = 400, 7177 is a correct answer |
94 | Correct | 173 ms | 104056 KB | n = 400, 10067 is a correct answer |
95 | Correct | 321 ms | 104064 KB | n = 500, 198631068 is a correct answer |
96 | Correct | 200 ms | 104056 KB | n = 400, 10814 is a correct answer |
97 | Correct | 178 ms | 104056 KB | n = 400, 9141 is a correct answer |
98 | Correct | 280 ms | 104060 KB | n = 500, 5699 is a correct answer |
99 | Correct | 307 ms | 104040 KB | n = 500, 13504 is a correct answer |
100 | Correct | 325 ms | 104052 KB | n = 500, 31507 is a correct answer |
101 | Correct | 262 ms | 104076 KB | n = 500, 199425296 is a correct answer |
102 | Correct | 320 ms | 104056 KB | n = 500, 198990259 is a correct answer |
103 | Correct | 326 ms | 104132 KB | n = 500, 486155 is a correct answer |
104 | Correct | 316 ms | 104056 KB | n = 500, 256468 is a correct answer |
105 | Correct | 339 ms | 104052 KB | n = 500, 309873 is a correct answer |
106 | Correct | 333 ms | 104052 KB | n = 500, 434764 is a correct answer |
107 | Runtime error | 156 ms | 210884 KB | Execution killed with signal 11 |
108 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 48 ms | 104004 KB | n = 4, 80 is a correct answer |
2 | Correct | 48 ms | 104024 KB | n = 9, 110 is a correct answer |
3 | Correct | 50 ms | 104012 KB | n = 4, 21 is a correct answer |
4 | Correct | 47 ms | 103956 KB | n = 3, 4 is a correct answer |
5 | Correct | 48 ms | 104004 KB | n = 2, 62 is a correct answer |
6 | Correct | 48 ms | 103940 KB | n = 2, 3 is a correct answer |
7 | Correct | 48 ms | 104012 KB | n = 3, 29 is a correct answer |
8 | Correct | 49 ms | 103932 KB | n = 2, 3 is a correct answer |
9 | Correct | 48 ms | 103952 KB | n = 2, 3 is a correct answer |
10 | Correct | 54 ms | 104012 KB | n = 2, 2000000001 is a correct answer |
11 | Correct | 47 ms | 103924 KB | n = 2, 3000000000 is a correct answer |
12 | Correct | 48 ms | 103996 KB | n = 3, 3000000000 is a correct answer |
13 | Correct | 47 ms | 104028 KB | n = 3, 3000000000 is a correct answer |
14 | Correct | 48 ms | 104004 KB | n = 4, 3000000001 is a correct answer |
15 | Correct | 47 ms | 104008 KB | n = 4, 4000000000 is a correct answer |
16 | Correct | 48 ms | 104004 KB | n = 5, 4000000000 is a correct answer |
17 | Correct | 48 ms | 104004 KB | n = 10, 1000000343 is a correct answer |
18 | Correct | 49 ms | 104000 KB | n = 10, 3189 is a correct answer |
19 | Correct | 48 ms | 103988 KB | n = 10, 7000000000 is a correct answer |
20 | Correct | 47 ms | 103960 KB | n = 5, 12 is a correct answer |
21 | Correct | 48 ms | 103936 KB | n = 5, 25 is a correct answer |
22 | Correct | 47 ms | 103988 KB | n = 2, 122 is a correct answer |
23 | Correct | 49 ms | 103976 KB | n = 10, 117 is a correct answer |
24 | Correct | 47 ms | 104004 KB | n = 10, 336 is a correct answer |
25 | Correct | 55 ms | 103956 KB | n = 10, 438 is a correct answer |
26 | Correct | 53 ms | 103988 KB | n = 10, 206 is a correct answer |
27 | Correct | 48 ms | 104008 KB | n = 10, 636 is a correct answer |
28 | Correct | 58 ms | 104016 KB | n = 4, 2399 is a correct answer |
29 | Correct | 48 ms | 103936 KB | n = 10, 10992 is a correct answer |
30 | Correct | 47 ms | 104004 KB | n = 10, 3112 is a correct answer |
31 | Correct | 50 ms | 103944 KB | n = 100, 51000000001 is a correct answer |
32 | Correct | 48 ms | 104004 KB | n = 50, 197881272 is a correct answer |
33 | Correct | 51 ms | 103952 KB | n = 100, 20969 is a correct answer |
34 | Correct | 54 ms | 104044 KB | n = 100, 20969 is a correct answer |
35 | Correct | 50 ms | 103980 KB | n = 100, 52000000000 is a correct answer |
36 | Correct | 50 ms | 103988 KB | n = 100, 285 is a correct answer |
37 | Correct | 52 ms | 103932 KB | n = 100, 21272 is a correct answer |
38 | Correct | 51 ms | 104004 KB | n = 100, 12161 is a correct answer |
39 | Correct | 48 ms | 104020 KB | n = 2, 62 is a correct answer |
40 | Correct | 48 ms | 103960 KB | n = 2, 3 is a correct answer |
41 | Correct | 48 ms | 104004 KB | n = 3, 29 is a correct answer |
42 | Correct | 49 ms | 104004 KB | n = 2, 3 is a correct answer |
43 | Correct | 48 ms | 104008 KB | n = 2, 3 is a correct answer |
44 | Correct | 49 ms | 103924 KB | n = 2, 2000000001 is a correct answer |
45 | Correct | 48 ms | 104032 KB | n = 2, 3000000000 is a correct answer |
46 | Correct | 48 ms | 104040 KB | n = 3, 3000000000 is a correct answer |
47 | Correct | 48 ms | 103956 KB | n = 3, 3000000000 is a correct answer |
48 | Correct | 48 ms | 104028 KB | n = 4, 3000000001 is a correct answer |
49 | Correct | 50 ms | 103980 KB | n = 4, 4000000000 is a correct answer |
50 | Correct | 48 ms | 103996 KB | n = 5, 4000000000 is a correct answer |
51 | Correct | 47 ms | 104044 KB | n = 10, 1000000343 is a correct answer |
52 | Correct | 47 ms | 104020 KB | n = 10, 3189 is a correct answer |
53 | Correct | 48 ms | 103944 KB | n = 10, 7000000000 is a correct answer |
54 | Correct | 48 ms | 104004 KB | n = 5, 12 is a correct answer |
55 | Correct | 48 ms | 104004 KB | n = 5, 25 is a correct answer |
56 | Correct | 49 ms | 103964 KB | n = 2, 122 is a correct answer |
57 | Correct | 48 ms | 104012 KB | n = 10, 117 is a correct answer |
58 | Correct | 48 ms | 104032 KB | n = 10, 336 is a correct answer |
59 | Correct | 48 ms | 103960 KB | n = 10, 438 is a correct answer |
60 | Correct | 48 ms | 104024 KB | n = 10, 206 is a correct answer |
61 | Correct | 48 ms | 104060 KB | n = 10, 636 is a correct answer |
62 | Correct | 48 ms | 103956 KB | n = 4, 2399 is a correct answer |
63 | Correct | 48 ms | 103948 KB | n = 10, 10992 is a correct answer |
64 | Correct | 53 ms | 104004 KB | n = 10, 3112 is a correct answer |
65 | Correct | 52 ms | 104128 KB | n = 100, 51000000001 is a correct answer |
66 | Correct | 47 ms | 104004 KB | n = 50, 197881272 is a correct answer |
67 | Correct | 51 ms | 103996 KB | n = 100, 20969 is a correct answer |
68 | Correct | 51 ms | 103944 KB | n = 100, 20969 is a correct answer |
69 | Correct | 51 ms | 104036 KB | n = 100, 52000000000 is a correct answer |
70 | Correct | 52 ms | 103972 KB | n = 100, 285 is a correct answer |
71 | Correct | 50 ms | 103936 KB | n = 100, 21272 is a correct answer |
72 | Correct | 50 ms | 103940 KB | n = 100, 12161 is a correct answer |
73 | Correct | 83 ms | 104048 KB | n = 250, 25037 is a correct answer |
74 | Correct | 83 ms | 103952 KB | n = 250, 199047242 is a correct answer |
75 | Correct | 84 ms | 104000 KB | n = 250, 61231537449 is a correct answer |
76 | Correct | 78 ms | 104100 KB | n = 250, 126000000001 is a correct answer |
77 | Correct | 78 ms | 104048 KB | n = 250, 127000000000 is a correct answer |
78 | Correct | 77 ms | 103980 KB | n = 250, 2123470094 is a correct answer |
79 | Correct | 78 ms | 104012 KB | n = 250, 6545 is a correct answer |
80 | Correct | 80 ms | 104048 KB | n = 250, 6731 is a correct answer |
81 | Correct | 51 ms | 103976 KB | n = 108, 15322 is a correct answer |
82 | Correct | 82 ms | 104052 KB | n = 250, 39952 is a correct answer |
83 | Correct | 86 ms | 104060 KB | n = 250, 41156 is a correct answer |
84 | Correct | 83 ms | 104036 KB | n = 250, 12881 is a correct answer |
85 | Correct | 85 ms | 104032 KB | n = 250, 213812 is a correct answer |
86 | Correct | 84 ms | 104008 KB | n = 250, 194188 is a correct answer |
87 | Correct | 304 ms | 104056 KB | n = 500, 199300822 is a correct answer |
88 | Correct | 318 ms | 104004 KB | n = 500, 127613044387 is a correct answer |
89 | Correct | 292 ms | 104012 KB | n = 500, 251000000001 is a correct answer |
90 | Correct | 275 ms | 104268 KB | n = 500, 252000000000 is a correct answer |
91 | Correct | 318 ms | 104000 KB | n = 500, 199378978 is a correct answer |
92 | Correct | 315 ms | 104052 KB | n = 500, 199551149 is a correct answer |
93 | Correct | 198 ms | 104004 KB | n = 400, 7177 is a correct answer |
94 | Correct | 173 ms | 104056 KB | n = 400, 10067 is a correct answer |
95 | Correct | 321 ms | 104064 KB | n = 500, 198631068 is a correct answer |
96 | Correct | 200 ms | 104056 KB | n = 400, 10814 is a correct answer |
97 | Correct | 178 ms | 104056 KB | n = 400, 9141 is a correct answer |
98 | Correct | 280 ms | 104060 KB | n = 500, 5699 is a correct answer |
99 | Correct | 307 ms | 104040 KB | n = 500, 13504 is a correct answer |
100 | Correct | 325 ms | 104052 KB | n = 500, 31507 is a correct answer |
101 | Correct | 262 ms | 104076 KB | n = 500, 199425296 is a correct answer |
102 | Correct | 320 ms | 104056 KB | n = 500, 198990259 is a correct answer |
103 | Correct | 326 ms | 104132 KB | n = 500, 486155 is a correct answer |
104 | Correct | 316 ms | 104056 KB | n = 500, 256468 is a correct answer |
105 | Correct | 339 ms | 104052 KB | n = 500, 309873 is a correct answer |
106 | Correct | 333 ms | 104052 KB | n = 500, 434764 is a correct answer |
107 | Runtime error | 156 ms | 210884 KB | Execution killed with signal 11 |
108 | Halted | 0 ms | 0 KB | - |