# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
388868 | 2021-04-13T08:27:14 Z | Keshi | Aliens (IOI16_aliens) | C++17 | 306 ms | 64068 KB |
//In the name of God #include <bits/stdc++.h> #include "aliens.h" using namespace std; typedef long long ll; typedef pair<ll, ll> pll; const ll maxn = 5e4 + 100; const ll maxk = 105; 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() vector<pll> vec; ll ps[maxn]; vector<ll> dp[maxn]; void solve(ll k, ll l, ll r, ll s, ll e){ if(l >= r) return; ll mid = (l + r) >> 1; ll opt = s; dp[k][mid] = inf; for(ll i = s; i < e && i <= mid; i++){ ll x = dp[k - 1][i - 1] + (vec[mid].F - vec[i].S + 1) * (vec[mid].F - vec[i].S + 1) - ps[i]; if(x < dp[k][mid]){ dp[k][mid] = x; opt = i; } } solve(k, l, mid, s, opt + 1); solve(k, mid + 1, r, opt, e); return; } long long take_photos(int n, int m, int k, vector<int> r, vector<int> c) { vector<pll> p(n); vec.pb(Mp(-1, -1)); for(ll i = 0; i < n; i++){ if(r[i] < c[i]) swap(r[i], c[i]); p[i] = Mp(c[i], -r[i]); } sort(all(p)); ll mx = -1; for(ll i = 0; i < n; i++){ p[i].S *= -1; if(p[i].S > mx){ vec.pb(Mp(p[i].S, p[i].F)); mx = p[i].S; } } n = Sz(vec) - 1; for(ll i = 2; i <= n; i++){ ll x = max(0ll, vec[i - 1].F - vec[i].S + 1); ps[i] = x * x; } k = min(k, n); for(ll i = 0; i <= k; i++){ dp[i].resize(n + 1, inf); } dp[0][0] = 0; for(ll i = 1; i <= k; i++){ solve(i, 1, n + 1, 1, n + 1); } return dp[k][n]; } /*int main(){ fast_io; return 0; }*/
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 1484 KB | Correct answer: answer = 4 |
2 | Correct | 2 ms | 1356 KB | Correct answer: answer = 4 |
3 | Correct | 1 ms | 1356 KB | Correct answer: answer = 4 |
4 | Correct | 1 ms | 1484 KB | Correct answer: answer = 12 |
5 | Correct | 2 ms | 1360 KB | Correct answer: answer = 52 |
6 | Correct | 1 ms | 1356 KB | Correct answer: answer = 210 |
7 | Correct | 1 ms | 1356 KB | Correct answer: answer = 88 |
8 | Correct | 1 ms | 1484 KB | Correct answer: answer = 7696 |
9 | Correct | 1 ms | 1484 KB | Correct answer: answer = 1 |
10 | Correct | 1 ms | 1356 KB | Correct answer: answer = 2374 |
11 | Correct | 1 ms | 1484 KB | Correct answer: answer = 9502 |
12 | Correct | 1 ms | 1356 KB | Correct answer: answer = 49 |
13 | Correct | 1 ms | 1484 KB | Correct answer: answer = 151 |
14 | Correct | 1 ms | 1484 KB | Correct answer: answer = 7550 |
15 | Correct | 1 ms | 1484 KB | Correct answer: answer = 7220 |
16 | Correct | 1 ms | 1484 KB | Correct answer: answer = 7550 |
17 | Correct | 1 ms | 1356 KB | Correct answer: answer = 10000 |
18 | Correct | 1 ms | 1484 KB | Correct answer: answer = 10000 |
19 | Correct | 1 ms | 1484 KB | Correct answer: answer = 624 |
20 | Correct | 1 ms | 1356 KB | Correct answer: answer = 10000 |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 1356 KB | Correct answer: answer = 1 |
2 | Correct | 1 ms | 1356 KB | Correct answer: answer = 4 |
3 | Correct | 1 ms | 1356 KB | Correct answer: answer = 1 |
4 | Correct | 1 ms | 1356 KB | Correct answer: answer = 5 |
5 | Correct | 1 ms | 1356 KB | Correct answer: answer = 41 |
6 | Correct | 1 ms | 1484 KB | Correct answer: answer = 71923 |
7 | Correct | 1 ms | 1484 KB | Correct answer: answer = 77137 |
8 | Correct | 5 ms | 2252 KB | Correct answer: answer = 764 |
9 | Correct | 1 ms | 1484 KB | Correct answer: answer = 250000 |
10 | Correct | 9 ms | 3476 KB | Correct answer: answer = 500 |
11 | Correct | 1 ms | 1484 KB | Correct answer: answer = 32 |
12 | Correct | 1 ms | 1484 KB | Correct answer: answer = 130050 |
13 | Correct | 2 ms | 1612 KB | Correct answer: answer = 5110 |
14 | Correct | 1 ms | 1484 KB | Correct answer: answer = 2626 |
15 | Correct | 2 ms | 1612 KB | Correct answer: answer = 796 |
16 | Correct | 2 ms | 1612 KB | Correct answer: answer = 7580 |
17 | Correct | 4 ms | 1996 KB | Correct answer: answer = 1904 |
18 | Correct | 1 ms | 1484 KB | Correct answer: answer = 996004 |
19 | Correct | 2 ms | 1484 KB | Correct answer: answer = 38817 |
20 | Correct | 3 ms | 1740 KB | Correct answer: answer = 4096 |
21 | Correct | 2 ms | 1484 KB | Correct answer: answer = 1 |
22 | Correct | 2 ms | 1484 KB | Correct answer: answer = 1 |
23 | Correct | 4 ms | 1868 KB | Correct answer: answer = 2040 |
24 | Correct | 1 ms | 1484 KB | Correct answer: answer = 2 |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 1484 KB | Correct answer: answer = 4 |
2 | Correct | 2 ms | 1356 KB | Correct answer: answer = 4 |
3 | Correct | 1 ms | 1356 KB | Correct answer: answer = 4 |
4 | Correct | 1 ms | 1484 KB | Correct answer: answer = 12 |
5 | Correct | 2 ms | 1360 KB | Correct answer: answer = 52 |
6 | Correct | 1 ms | 1356 KB | Correct answer: answer = 210 |
7 | Correct | 1 ms | 1356 KB | Correct answer: answer = 88 |
8 | Correct | 1 ms | 1484 KB | Correct answer: answer = 7696 |
9 | Correct | 1 ms | 1484 KB | Correct answer: answer = 1 |
10 | Correct | 1 ms | 1356 KB | Correct answer: answer = 2374 |
11 | Correct | 1 ms | 1484 KB | Correct answer: answer = 9502 |
12 | Correct | 1 ms | 1356 KB | Correct answer: answer = 49 |
13 | Correct | 1 ms | 1484 KB | Correct answer: answer = 151 |
14 | Correct | 1 ms | 1484 KB | Correct answer: answer = 7550 |
15 | Correct | 1 ms | 1484 KB | Correct answer: answer = 7220 |
16 | Correct | 1 ms | 1484 KB | Correct answer: answer = 7550 |
17 | Correct | 1 ms | 1356 KB | Correct answer: answer = 10000 |
18 | Correct | 1 ms | 1484 KB | Correct answer: answer = 10000 |
19 | Correct | 1 ms | 1484 KB | Correct answer: answer = 624 |
20 | Correct | 1 ms | 1356 KB | Correct answer: answer = 10000 |
21 | Correct | 1 ms | 1356 KB | Correct answer: answer = 1 |
22 | Correct | 1 ms | 1356 KB | Correct answer: answer = 4 |
23 | Correct | 1 ms | 1356 KB | Correct answer: answer = 1 |
24 | Correct | 1 ms | 1356 KB | Correct answer: answer = 5 |
25 | Correct | 1 ms | 1356 KB | Correct answer: answer = 41 |
26 | Correct | 1 ms | 1484 KB | Correct answer: answer = 71923 |
27 | Correct | 1 ms | 1484 KB | Correct answer: answer = 77137 |
28 | Correct | 5 ms | 2252 KB | Correct answer: answer = 764 |
29 | Correct | 1 ms | 1484 KB | Correct answer: answer = 250000 |
30 | Correct | 9 ms | 3476 KB | Correct answer: answer = 500 |
31 | Correct | 1 ms | 1484 KB | Correct answer: answer = 32 |
32 | Correct | 1 ms | 1484 KB | Correct answer: answer = 130050 |
33 | Correct | 2 ms | 1612 KB | Correct answer: answer = 5110 |
34 | Correct | 1 ms | 1484 KB | Correct answer: answer = 2626 |
35 | Correct | 2 ms | 1612 KB | Correct answer: answer = 796 |
36 | Correct | 2 ms | 1612 KB | Correct answer: answer = 7580 |
37 | Correct | 4 ms | 1996 KB | Correct answer: answer = 1904 |
38 | Correct | 1 ms | 1484 KB | Correct answer: answer = 996004 |
39 | Correct | 2 ms | 1484 KB | Correct answer: answer = 38817 |
40 | Correct | 3 ms | 1740 KB | Correct answer: answer = 4096 |
41 | Correct | 2 ms | 1484 KB | Correct answer: answer = 1 |
42 | Correct | 2 ms | 1484 KB | Correct answer: answer = 1 |
43 | Correct | 4 ms | 1868 KB | Correct answer: answer = 2040 |
44 | Correct | 1 ms | 1484 KB | Correct answer: answer = 2 |
45 | Correct | 1 ms | 1356 KB | Correct answer: answer = 4 |
46 | Correct | 1 ms | 1484 KB | Correct answer: answer = 9 |
47 | Correct | 1 ms | 1356 KB | Correct answer: answer = 9 |
48 | Correct | 1 ms | 1356 KB | Correct answer: answer = 21 |
49 | Correct | 1 ms | 1356 KB | Correct answer: answer = 71 |
50 | Correct | 1 ms | 1356 KB | Correct answer: answer = 77 |
51 | Correct | 1 ms | 1356 KB | Correct answer: answer = 400 |
52 | Correct | 1 ms | 1484 KB | Correct answer: answer = 996004 |
53 | Correct | 1 ms | 1484 KB | Correct answer: answer = 997310 |
54 | Correct | 1 ms | 1484 KB | Correct answer: answer = 990781 |
55 | Correct | 1 ms | 1484 KB | Correct answer: answer = 996545 |
56 | Correct | 1 ms | 1484 KB | Correct answer: answer = 484 |
57 | Correct | 1 ms | 1484 KB | Correct answer: answer = 484 |
58 | Correct | 1 ms | 1484 KB | Correct answer: answer = 63501 |
59 | Correct | 2 ms | 1484 KB | Correct answer: answer = 323501 |
60 | Correct | 3 ms | 1868 KB | Correct answer: answer = 752500 |
61 | Correct | 2 ms | 1484 KB | Correct answer: answer = 761480 |
62 | Correct | 3 ms | 1868 KB | Correct answer: answer = 758932 |
63 | Correct | 1 ms | 1484 KB | Correct answer: answer = 1000000 |
64 | Correct | 9 ms | 3404 KB | Correct answer: answer = 750500 |
65 | Correct | 1 ms | 1484 KB | Correct answer: answer = 1000000 |
66 | Correct | 1 ms | 1484 KB | Correct answer: answer = 250000 |
67 | Correct | 1 ms | 1400 KB | Correct answer: answer = 250000 |
68 | Correct | 1 ms | 1484 KB | Correct answer: answer = 1000000 |
69 | Correct | 1 ms | 1484 KB | Correct answer: answer = 994009 |
70 | Correct | 1 ms | 1484 KB | Correct answer: answer = 59315 |
71 | Correct | 2 ms | 1612 KB | Correct answer: answer = 25454 |
72 | Correct | 3 ms | 1740 KB | Correct answer: answer = 1504 |
73 | Correct | 1 ms | 1484 KB | Correct answer: answer = 37486 |
74 | Correct | 2 ms | 1612 KB | Correct answer: answer = 4284 |
75 | Correct | 1 ms | 1488 KB | Correct answer: answer = 158008 |
76 | Correct | 2 ms | 1484 KB | Correct answer: answer = 51860 |
77 | Correct | 1 ms | 1484 KB | Correct answer: answer = 12985 |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 1484 KB | Correct answer: answer = 4 |
2 | Correct | 2 ms | 1356 KB | Correct answer: answer = 4 |
3 | Correct | 1 ms | 1356 KB | Correct answer: answer = 4 |
4 | Correct | 1 ms | 1484 KB | Correct answer: answer = 12 |
5 | Correct | 2 ms | 1360 KB | Correct answer: answer = 52 |
6 | Correct | 1 ms | 1356 KB | Correct answer: answer = 210 |
7 | Correct | 1 ms | 1356 KB | Correct answer: answer = 88 |
8 | Correct | 1 ms | 1484 KB | Correct answer: answer = 7696 |
9 | Correct | 1 ms | 1484 KB | Correct answer: answer = 1 |
10 | Correct | 1 ms | 1356 KB | Correct answer: answer = 2374 |
11 | Correct | 1 ms | 1484 KB | Correct answer: answer = 9502 |
12 | Correct | 1 ms | 1356 KB | Correct answer: answer = 49 |
13 | Correct | 1 ms | 1484 KB | Correct answer: answer = 151 |
14 | Correct | 1 ms | 1484 KB | Correct answer: answer = 7550 |
15 | Correct | 1 ms | 1484 KB | Correct answer: answer = 7220 |
16 | Correct | 1 ms | 1484 KB | Correct answer: answer = 7550 |
17 | Correct | 1 ms | 1356 KB | Correct answer: answer = 10000 |
18 | Correct | 1 ms | 1484 KB | Correct answer: answer = 10000 |
19 | Correct | 1 ms | 1484 KB | Correct answer: answer = 624 |
20 | Correct | 1 ms | 1356 KB | Correct answer: answer = 10000 |
21 | Correct | 1 ms | 1356 KB | Correct answer: answer = 1 |
22 | Correct | 1 ms | 1356 KB | Correct answer: answer = 4 |
23 | Correct | 1 ms | 1356 KB | Correct answer: answer = 1 |
24 | Correct | 1 ms | 1356 KB | Correct answer: answer = 5 |
25 | Correct | 1 ms | 1356 KB | Correct answer: answer = 41 |
26 | Correct | 1 ms | 1484 KB | Correct answer: answer = 71923 |
27 | Correct | 1 ms | 1484 KB | Correct answer: answer = 77137 |
28 | Correct | 5 ms | 2252 KB | Correct answer: answer = 764 |
29 | Correct | 1 ms | 1484 KB | Correct answer: answer = 250000 |
30 | Correct | 9 ms | 3476 KB | Correct answer: answer = 500 |
31 | Correct | 1 ms | 1484 KB | Correct answer: answer = 32 |
32 | Correct | 1 ms | 1484 KB | Correct answer: answer = 130050 |
33 | Correct | 2 ms | 1612 KB | Correct answer: answer = 5110 |
34 | Correct | 1 ms | 1484 KB | Correct answer: answer = 2626 |
35 | Correct | 2 ms | 1612 KB | Correct answer: answer = 796 |
36 | Correct | 2 ms | 1612 KB | Correct answer: answer = 7580 |
37 | Correct | 4 ms | 1996 KB | Correct answer: answer = 1904 |
38 | Correct | 1 ms | 1484 KB | Correct answer: answer = 996004 |
39 | Correct | 2 ms | 1484 KB | Correct answer: answer = 38817 |
40 | Correct | 3 ms | 1740 KB | Correct answer: answer = 4096 |
41 | Correct | 2 ms | 1484 KB | Correct answer: answer = 1 |
42 | Correct | 2 ms | 1484 KB | Correct answer: answer = 1 |
43 | Correct | 4 ms | 1868 KB | Correct answer: answer = 2040 |
44 | Correct | 1 ms | 1484 KB | Correct answer: answer = 2 |
45 | Correct | 1 ms | 1356 KB | Correct answer: answer = 4 |
46 | Correct | 1 ms | 1484 KB | Correct answer: answer = 9 |
47 | Correct | 1 ms | 1356 KB | Correct answer: answer = 9 |
48 | Correct | 1 ms | 1356 KB | Correct answer: answer = 21 |
49 | Correct | 1 ms | 1356 KB | Correct answer: answer = 71 |
50 | Correct | 1 ms | 1356 KB | Correct answer: answer = 77 |
51 | Correct | 1 ms | 1356 KB | Correct answer: answer = 400 |
52 | Correct | 1 ms | 1484 KB | Correct answer: answer = 996004 |
53 | Correct | 1 ms | 1484 KB | Correct answer: answer = 997310 |
54 | Correct | 1 ms | 1484 KB | Correct answer: answer = 990781 |
55 | Correct | 1 ms | 1484 KB | Correct answer: answer = 996545 |
56 | Correct | 1 ms | 1484 KB | Correct answer: answer = 484 |
57 | Correct | 1 ms | 1484 KB | Correct answer: answer = 484 |
58 | Correct | 1 ms | 1484 KB | Correct answer: answer = 63501 |
59 | Correct | 2 ms | 1484 KB | Correct answer: answer = 323501 |
60 | Correct | 3 ms | 1868 KB | Correct answer: answer = 752500 |
61 | Correct | 2 ms | 1484 KB | Correct answer: answer = 761480 |
62 | Correct | 3 ms | 1868 KB | Correct answer: answer = 758932 |
63 | Correct | 1 ms | 1484 KB | Correct answer: answer = 1000000 |
64 | Correct | 9 ms | 3404 KB | Correct answer: answer = 750500 |
65 | Correct | 1 ms | 1484 KB | Correct answer: answer = 1000000 |
66 | Correct | 1 ms | 1484 KB | Correct answer: answer = 250000 |
67 | Correct | 1 ms | 1400 KB | Correct answer: answer = 250000 |
68 | Correct | 1 ms | 1484 KB | Correct answer: answer = 1000000 |
69 | Correct | 1 ms | 1484 KB | Correct answer: answer = 994009 |
70 | Correct | 1 ms | 1484 KB | Correct answer: answer = 59315 |
71 | Correct | 2 ms | 1612 KB | Correct answer: answer = 25454 |
72 | Correct | 3 ms | 1740 KB | Correct answer: answer = 1504 |
73 | Correct | 1 ms | 1484 KB | Correct answer: answer = 37486 |
74 | Correct | 2 ms | 1612 KB | Correct answer: answer = 4284 |
75 | Correct | 1 ms | 1488 KB | Correct answer: answer = 158008 |
76 | Correct | 2 ms | 1484 KB | Correct answer: answer = 51860 |
77 | Correct | 1 ms | 1484 KB | Correct answer: answer = 12985 |
78 | Correct | 2 ms | 1484 KB | Correct answer: answer = 997864126212 |
79 | Correct | 2 ms | 1484 KB | Correct answer: answer = 998608411647 |
80 | Correct | 2 ms | 1484 KB | Correct answer: answer = 995265560477 |
81 | Correct | 3 ms | 1740 KB | Correct answer: answer = 10125000 |
82 | Correct | 4 ms | 1868 KB | Correct answer: answer = 2291668 |
83 | Correct | 9 ms | 3208 KB | Correct answer: answer = 42388 |
84 | Correct | 35 ms | 8140 KB | Correct answer: answer = 10318 |
85 | Correct | 106 ms | 23504 KB | Correct answer: answer = 3416 |
86 | Correct | 3 ms | 1820 KB | Correct answer: answer = 331708193881 |
87 | Correct | 63 ms | 9084 KB | Correct answer: answer = 2861193756 |
88 | Correct | 270 ms | 43492 KB | Correct answer: answer = 114646930 |
89 | Correct | 11 ms | 3404 KB | Correct answer: answer = 9280921 |
90 | Correct | 52 ms | 11084 KB | Correct answer: answer = 999984053400 |
91 | Correct | 209 ms | 32900 KB | Correct answer: answer = 750935949134 |
92 | Correct | 2 ms | 1612 KB | Correct answer: answer = 1000000000000 |
93 | Correct | 3 ms | 1624 KB | Correct answer: answer = 998762383161 |
94 | Correct | 10 ms | 2892 KB | Correct answer: answer = 23017412908 |
95 | Correct | 3 ms | 1612 KB | Correct answer: answer = 728143410622 |
96 | Correct | 2 ms | 1612 KB | Correct answer: answer = 2 |
97 | Correct | 5 ms | 1996 KB | Correct answer: answer = 1824916 |
98 | Correct | 91 ms | 17740 KB | Correct answer: answer = 10680029 |
99 | Correct | 47 ms | 9804 KB | Correct answer: answer = 18351700 |
100 | Correct | 3 ms | 1740 KB | Correct answer: answer = 16040026 |
101 | Correct | 3 ms | 1624 KB | Correct answer: answer = 253968628325 |
102 | Correct | 106 ms | 17292 KB | Correct answer: answer = 10267 |
103 | Correct | 301 ms | 56832 KB | Correct answer: answer = 2582408 |
104 | Correct | 3 ms | 1624 KB | Correct answer: answer = 78024964781 |
105 | Correct | 3 ms | 1620 KB | Correct answer: answer = 9866346457 |
106 | Correct | 5 ms | 1996 KB | Correct answer: answer = 3327720949 |
107 | Correct | 5 ms | 2124 KB | Correct answer: answer = 86064128360 |
108 | Correct | 22 ms | 6100 KB | Correct answer: answer = 12698259150 |
109 | Correct | 306 ms | 64068 KB | Correct answer: answer = 1185259288 |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 1484 KB | Correct answer: answer = 4 |
2 | Correct | 2 ms | 1356 KB | Correct answer: answer = 4 |
3 | Correct | 1 ms | 1356 KB | Correct answer: answer = 4 |
4 | Correct | 1 ms | 1484 KB | Correct answer: answer = 12 |
5 | Correct | 2 ms | 1360 KB | Correct answer: answer = 52 |
6 | Correct | 1 ms | 1356 KB | Correct answer: answer = 210 |
7 | Correct | 1 ms | 1356 KB | Correct answer: answer = 88 |
8 | Correct | 1 ms | 1484 KB | Correct answer: answer = 7696 |
9 | Correct | 1 ms | 1484 KB | Correct answer: answer = 1 |
10 | Correct | 1 ms | 1356 KB | Correct answer: answer = 2374 |
11 | Correct | 1 ms | 1484 KB | Correct answer: answer = 9502 |
12 | Correct | 1 ms | 1356 KB | Correct answer: answer = 49 |
13 | Correct | 1 ms | 1484 KB | Correct answer: answer = 151 |
14 | Correct | 1 ms | 1484 KB | Correct answer: answer = 7550 |
15 | Correct | 1 ms | 1484 KB | Correct answer: answer = 7220 |
16 | Correct | 1 ms | 1484 KB | Correct answer: answer = 7550 |
17 | Correct | 1 ms | 1356 KB | Correct answer: answer = 10000 |
18 | Correct | 1 ms | 1484 KB | Correct answer: answer = 10000 |
19 | Correct | 1 ms | 1484 KB | Correct answer: answer = 624 |
20 | Correct | 1 ms | 1356 KB | Correct answer: answer = 10000 |
21 | Correct | 1 ms | 1356 KB | Correct answer: answer = 1 |
22 | Correct | 1 ms | 1356 KB | Correct answer: answer = 4 |
23 | Correct | 1 ms | 1356 KB | Correct answer: answer = 1 |
24 | Correct | 1 ms | 1356 KB | Correct answer: answer = 5 |
25 | Correct | 1 ms | 1356 KB | Correct answer: answer = 41 |
26 | Correct | 1 ms | 1484 KB | Correct answer: answer = 71923 |
27 | Correct | 1 ms | 1484 KB | Correct answer: answer = 77137 |
28 | Correct | 5 ms | 2252 KB | Correct answer: answer = 764 |
29 | Correct | 1 ms | 1484 KB | Correct answer: answer = 250000 |
30 | Correct | 9 ms | 3476 KB | Correct answer: answer = 500 |
31 | Correct | 1 ms | 1484 KB | Correct answer: answer = 32 |
32 | Correct | 1 ms | 1484 KB | Correct answer: answer = 130050 |
33 | Correct | 2 ms | 1612 KB | Correct answer: answer = 5110 |
34 | Correct | 1 ms | 1484 KB | Correct answer: answer = 2626 |
35 | Correct | 2 ms | 1612 KB | Correct answer: answer = 796 |
36 | Correct | 2 ms | 1612 KB | Correct answer: answer = 7580 |
37 | Correct | 4 ms | 1996 KB | Correct answer: answer = 1904 |
38 | Correct | 1 ms | 1484 KB | Correct answer: answer = 996004 |
39 | Correct | 2 ms | 1484 KB | Correct answer: answer = 38817 |
40 | Correct | 3 ms | 1740 KB | Correct answer: answer = 4096 |
41 | Correct | 2 ms | 1484 KB | Correct answer: answer = 1 |
42 | Correct | 2 ms | 1484 KB | Correct answer: answer = 1 |
43 | Correct | 4 ms | 1868 KB | Correct answer: answer = 2040 |
44 | Correct | 1 ms | 1484 KB | Correct answer: answer = 2 |
45 | Correct | 1 ms | 1356 KB | Correct answer: answer = 4 |
46 | Correct | 1 ms | 1484 KB | Correct answer: answer = 9 |
47 | Correct | 1 ms | 1356 KB | Correct answer: answer = 9 |
48 | Correct | 1 ms | 1356 KB | Correct answer: answer = 21 |
49 | Correct | 1 ms | 1356 KB | Correct answer: answer = 71 |
50 | Correct | 1 ms | 1356 KB | Correct answer: answer = 77 |
51 | Correct | 1 ms | 1356 KB | Correct answer: answer = 400 |
52 | Correct | 1 ms | 1484 KB | Correct answer: answer = 996004 |
53 | Correct | 1 ms | 1484 KB | Correct answer: answer = 997310 |
54 | Correct | 1 ms | 1484 KB | Correct answer: answer = 990781 |
55 | Correct | 1 ms | 1484 KB | Correct answer: answer = 996545 |
56 | Correct | 1 ms | 1484 KB | Correct answer: answer = 484 |
57 | Correct | 1 ms | 1484 KB | Correct answer: answer = 484 |
58 | Correct | 1 ms | 1484 KB | Correct answer: answer = 63501 |
59 | Correct | 2 ms | 1484 KB | Correct answer: answer = 323501 |
60 | Correct | 3 ms | 1868 KB | Correct answer: answer = 752500 |
61 | Correct | 2 ms | 1484 KB | Correct answer: answer = 761480 |
62 | Correct | 3 ms | 1868 KB | Correct answer: answer = 758932 |
63 | Correct | 1 ms | 1484 KB | Correct answer: answer = 1000000 |
64 | Correct | 9 ms | 3404 KB | Correct answer: answer = 750500 |
65 | Correct | 1 ms | 1484 KB | Correct answer: answer = 1000000 |
66 | Correct | 1 ms | 1484 KB | Correct answer: answer = 250000 |
67 | Correct | 1 ms | 1400 KB | Correct answer: answer = 250000 |
68 | Correct | 1 ms | 1484 KB | Correct answer: answer = 1000000 |
69 | Correct | 1 ms | 1484 KB | Correct answer: answer = 994009 |
70 | Correct | 1 ms | 1484 KB | Correct answer: answer = 59315 |
71 | Correct | 2 ms | 1612 KB | Correct answer: answer = 25454 |
72 | Correct | 3 ms | 1740 KB | Correct answer: answer = 1504 |
73 | Correct | 1 ms | 1484 KB | Correct answer: answer = 37486 |
74 | Correct | 2 ms | 1612 KB | Correct answer: answer = 4284 |
75 | Correct | 1 ms | 1488 KB | Correct answer: answer = 158008 |
76 | Correct | 2 ms | 1484 KB | Correct answer: answer = 51860 |
77 | Correct | 1 ms | 1484 KB | Correct answer: answer = 12985 |
78 | Correct | 2 ms | 1484 KB | Correct answer: answer = 997864126212 |
79 | Correct | 2 ms | 1484 KB | Correct answer: answer = 998608411647 |
80 | Correct | 2 ms | 1484 KB | Correct answer: answer = 995265560477 |
81 | Correct | 3 ms | 1740 KB | Correct answer: answer = 10125000 |
82 | Correct | 4 ms | 1868 KB | Correct answer: answer = 2291668 |
83 | Correct | 9 ms | 3208 KB | Correct answer: answer = 42388 |
84 | Correct | 35 ms | 8140 KB | Correct answer: answer = 10318 |
85 | Correct | 106 ms | 23504 KB | Correct answer: answer = 3416 |
86 | Correct | 3 ms | 1820 KB | Correct answer: answer = 331708193881 |
87 | Correct | 63 ms | 9084 KB | Correct answer: answer = 2861193756 |
88 | Correct | 270 ms | 43492 KB | Correct answer: answer = 114646930 |
89 | Correct | 11 ms | 3404 KB | Correct answer: answer = 9280921 |
90 | Correct | 52 ms | 11084 KB | Correct answer: answer = 999984053400 |
91 | Correct | 209 ms | 32900 KB | Correct answer: answer = 750935949134 |
92 | Correct | 2 ms | 1612 KB | Correct answer: answer = 1000000000000 |
93 | Correct | 3 ms | 1624 KB | Correct answer: answer = 998762383161 |
94 | Correct | 10 ms | 2892 KB | Correct answer: answer = 23017412908 |
95 | Correct | 3 ms | 1612 KB | Correct answer: answer = 728143410622 |
96 | Correct | 2 ms | 1612 KB | Correct answer: answer = 2 |
97 | Correct | 5 ms | 1996 KB | Correct answer: answer = 1824916 |
98 | Correct | 91 ms | 17740 KB | Correct answer: answer = 10680029 |
99 | Correct | 47 ms | 9804 KB | Correct answer: answer = 18351700 |
100 | Correct | 3 ms | 1740 KB | Correct answer: answer = 16040026 |
101 | Correct | 3 ms | 1624 KB | Correct answer: answer = 253968628325 |
102 | Correct | 106 ms | 17292 KB | Correct answer: answer = 10267 |
103 | Correct | 301 ms | 56832 KB | Correct answer: answer = 2582408 |
104 | Correct | 3 ms | 1624 KB | Correct answer: answer = 78024964781 |
105 | Correct | 3 ms | 1620 KB | Correct answer: answer = 9866346457 |
106 | Correct | 5 ms | 1996 KB | Correct answer: answer = 3327720949 |
107 | Correct | 5 ms | 2124 KB | Correct answer: answer = 86064128360 |
108 | Correct | 22 ms | 6100 KB | Correct answer: answer = 12698259150 |
109 | Correct | 306 ms | 64068 KB | Correct answer: answer = 1185259288 |
110 | Correct | 19 ms | 3736 KB | Correct answer: answer = 999889968863 |
111 | Correct | 18 ms | 3672 KB | Correct answer: answer = 999861384931 |
112 | Correct | 18 ms | 3660 KB | Correct answer: answer = 999811809929 |
113 | Correct | 18 ms | 3660 KB | Correct answer: answer = 999869756441 |
114 | Correct | 23 ms | 5896 KB | Correct answer: answer = 1700000000 |
115 | Correct | 63 ms | 12516 KB | Correct answer: answer = 131666670 |
116 | Correct | 8 ms | 3048 KB | Correct answer: answer = 89478486 |
117 | Correct | 47 ms | 9540 KB | Correct answer: answer = 4971040 |
118 | Correct | 81 ms | 15300 KB | Correct answer: answer = 2711494 |
119 | Correct | 248 ms | 43936 KB | Correct answer: answer = 25252530 |
120 | Correct | 119 ms | 20904 KB | Correct answer: answer = 62500000 |
121 | Correct | 25 ms | 6336 KB | Correct answer: answer = 333175097780 |
122 | Correct | 95 ms | 16696 KB | Correct answer: answer = 33121180179 |
123 | Correct | 285 ms | 43464 KB | Correct answer: answer = 9802314015 |
124 | Correct | 239 ms | 35256 KB | Correct answer: answer = 32567551 |
125 | Correct | 257 ms | 44552 KB | Correct answer: answer = 997525000000 |
126 | Correct | 261 ms | 40632 KB | Correct answer: answer = 752723538884 |
127 | Correct | 14 ms | 3660 KB | Correct answer: answer = 1000000000000 |
128 | Correct | 18 ms | 3692 KB | Correct answer: answer = 999978000121 |
129 | Correct | 25 ms | 3912 KB | Correct answer: answer = 745986144735 |
130 | Correct | 14 ms | 3148 KB | Correct answer: answer = 2 |
131 | Correct | 43 ms | 9004 KB | Correct answer: answer = 277966670 |
132 | Correct | 24 ms | 5908 KB | Correct answer: answer = 2500900082 |
133 | Correct | 19 ms | 3944 KB | Correct answer: answer = 301248349636 |
134 | Correct | 227 ms | 22820 KB | Correct answer: answer = 14118891 |
135 | Correct | 18 ms | 3660 KB | Correct answer: answer = 14384977265 |
136 | Correct | 20 ms | 3828 KB | Correct answer: answer = 3681368330 |
137 | Correct | 21 ms | 4172 KB | Correct answer: answer = 2720316816 |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 1484 KB | Correct answer: answer = 4 |
2 | Correct | 2 ms | 1356 KB | Correct answer: answer = 4 |
3 | Correct | 1 ms | 1356 KB | Correct answer: answer = 4 |
4 | Correct | 1 ms | 1484 KB | Correct answer: answer = 12 |
5 | Correct | 2 ms | 1360 KB | Correct answer: answer = 52 |
6 | Correct | 1 ms | 1356 KB | Correct answer: answer = 210 |
7 | Correct | 1 ms | 1356 KB | Correct answer: answer = 88 |
8 | Correct | 1 ms | 1484 KB | Correct answer: answer = 7696 |
9 | Correct | 1 ms | 1484 KB | Correct answer: answer = 1 |
10 | Correct | 1 ms | 1356 KB | Correct answer: answer = 2374 |
11 | Correct | 1 ms | 1484 KB | Correct answer: answer = 9502 |
12 | Correct | 1 ms | 1356 KB | Correct answer: answer = 49 |
13 | Correct | 1 ms | 1484 KB | Correct answer: answer = 151 |
14 | Correct | 1 ms | 1484 KB | Correct answer: answer = 7550 |
15 | Correct | 1 ms | 1484 KB | Correct answer: answer = 7220 |
16 | Correct | 1 ms | 1484 KB | Correct answer: answer = 7550 |
17 | Correct | 1 ms | 1356 KB | Correct answer: answer = 10000 |
18 | Correct | 1 ms | 1484 KB | Correct answer: answer = 10000 |
19 | Correct | 1 ms | 1484 KB | Correct answer: answer = 624 |
20 | Correct | 1 ms | 1356 KB | Correct answer: answer = 10000 |
21 | Correct | 1 ms | 1356 KB | Correct answer: answer = 1 |
22 | Correct | 1 ms | 1356 KB | Correct answer: answer = 4 |
23 | Correct | 1 ms | 1356 KB | Correct answer: answer = 1 |
24 | Correct | 1 ms | 1356 KB | Correct answer: answer = 5 |
25 | Correct | 1 ms | 1356 KB | Correct answer: answer = 41 |
26 | Correct | 1 ms | 1484 KB | Correct answer: answer = 71923 |
27 | Correct | 1 ms | 1484 KB | Correct answer: answer = 77137 |
28 | Correct | 5 ms | 2252 KB | Correct answer: answer = 764 |
29 | Correct | 1 ms | 1484 KB | Correct answer: answer = 250000 |
30 | Correct | 9 ms | 3476 KB | Correct answer: answer = 500 |
31 | Correct | 1 ms | 1484 KB | Correct answer: answer = 32 |
32 | Correct | 1 ms | 1484 KB | Correct answer: answer = 130050 |
33 | Correct | 2 ms | 1612 KB | Correct answer: answer = 5110 |
34 | Correct | 1 ms | 1484 KB | Correct answer: answer = 2626 |
35 | Correct | 2 ms | 1612 KB | Correct answer: answer = 796 |
36 | Correct | 2 ms | 1612 KB | Correct answer: answer = 7580 |
37 | Correct | 4 ms | 1996 KB | Correct answer: answer = 1904 |
38 | Correct | 1 ms | 1484 KB | Correct answer: answer = 996004 |
39 | Correct | 2 ms | 1484 KB | Correct answer: answer = 38817 |
40 | Correct | 3 ms | 1740 KB | Correct answer: answer = 4096 |
41 | Correct | 2 ms | 1484 KB | Correct answer: answer = 1 |
42 | Correct | 2 ms | 1484 KB | Correct answer: answer = 1 |
43 | Correct | 4 ms | 1868 KB | Correct answer: answer = 2040 |
44 | Correct | 1 ms | 1484 KB | Correct answer: answer = 2 |
45 | Correct | 1 ms | 1356 KB | Correct answer: answer = 4 |
46 | Correct | 1 ms | 1484 KB | Correct answer: answer = 9 |
47 | Correct | 1 ms | 1356 KB | Correct answer: answer = 9 |
48 | Correct | 1 ms | 1356 KB | Correct answer: answer = 21 |
49 | Correct | 1 ms | 1356 KB | Correct answer: answer = 71 |
50 | Correct | 1 ms | 1356 KB | Correct answer: answer = 77 |
51 | Correct | 1 ms | 1356 KB | Correct answer: answer = 400 |
52 | Correct | 1 ms | 1484 KB | Correct answer: answer = 996004 |
53 | Correct | 1 ms | 1484 KB | Correct answer: answer = 997310 |
54 | Correct | 1 ms | 1484 KB | Correct answer: answer = 990781 |
55 | Correct | 1 ms | 1484 KB | Correct answer: answer = 996545 |
56 | Correct | 1 ms | 1484 KB | Correct answer: answer = 484 |
57 | Correct | 1 ms | 1484 KB | Correct answer: answer = 484 |
58 | Correct | 1 ms | 1484 KB | Correct answer: answer = 63501 |
59 | Correct | 2 ms | 1484 KB | Correct answer: answer = 323501 |
60 | Correct | 3 ms | 1868 KB | Correct answer: answer = 752500 |
61 | Correct | 2 ms | 1484 KB | Correct answer: answer = 761480 |
62 | Correct | 3 ms | 1868 KB | Correct answer: answer = 758932 |
63 | Correct | 1 ms | 1484 KB | Correct answer: answer = 1000000 |
64 | Correct | 9 ms | 3404 KB | Correct answer: answer = 750500 |
65 | Correct | 1 ms | 1484 KB | Correct answer: answer = 1000000 |
66 | Correct | 1 ms | 1484 KB | Correct answer: answer = 250000 |
67 | Correct | 1 ms | 1400 KB | Correct answer: answer = 250000 |
68 | Correct | 1 ms | 1484 KB | Correct answer: answer = 1000000 |
69 | Correct | 1 ms | 1484 KB | Correct answer: answer = 994009 |
70 | Correct | 1 ms | 1484 KB | Correct answer: answer = 59315 |
71 | Correct | 2 ms | 1612 KB | Correct answer: answer = 25454 |
72 | Correct | 3 ms | 1740 KB | Correct answer: answer = 1504 |
73 | Correct | 1 ms | 1484 KB | Correct answer: answer = 37486 |
74 | Correct | 2 ms | 1612 KB | Correct answer: answer = 4284 |
75 | Correct | 1 ms | 1488 KB | Correct answer: answer = 158008 |
76 | Correct | 2 ms | 1484 KB | Correct answer: answer = 51860 |
77 | Correct | 1 ms | 1484 KB | Correct answer: answer = 12985 |
78 | Correct | 2 ms | 1484 KB | Correct answer: answer = 997864126212 |
79 | Correct | 2 ms | 1484 KB | Correct answer: answer = 998608411647 |
80 | Correct | 2 ms | 1484 KB | Correct answer: answer = 995265560477 |
81 | Correct | 3 ms | 1740 KB | Correct answer: answer = 10125000 |
82 | Correct | 4 ms | 1868 KB | Correct answer: answer = 2291668 |
83 | Correct | 9 ms | 3208 KB | Correct answer: answer = 42388 |
84 | Correct | 35 ms | 8140 KB | Correct answer: answer = 10318 |
85 | Correct | 106 ms | 23504 KB | Correct answer: answer = 3416 |
86 | Correct | 3 ms | 1820 KB | Correct answer: answer = 331708193881 |
87 | Correct | 63 ms | 9084 KB | Correct answer: answer = 2861193756 |
88 | Correct | 270 ms | 43492 KB | Correct answer: answer = 114646930 |
89 | Correct | 11 ms | 3404 KB | Correct answer: answer = 9280921 |
90 | Correct | 52 ms | 11084 KB | Correct answer: answer = 999984053400 |
91 | Correct | 209 ms | 32900 KB | Correct answer: answer = 750935949134 |
92 | Correct | 2 ms | 1612 KB | Correct answer: answer = 1000000000000 |
93 | Correct | 3 ms | 1624 KB | Correct answer: answer = 998762383161 |
94 | Correct | 10 ms | 2892 KB | Correct answer: answer = 23017412908 |
95 | Correct | 3 ms | 1612 KB | Correct answer: answer = 728143410622 |
96 | Correct | 2 ms | 1612 KB | Correct answer: answer = 2 |
97 | Correct | 5 ms | 1996 KB | Correct answer: answer = 1824916 |
98 | Correct | 91 ms | 17740 KB | Correct answer: answer = 10680029 |
99 | Correct | 47 ms | 9804 KB | Correct answer: answer = 18351700 |
100 | Correct | 3 ms | 1740 KB | Correct answer: answer = 16040026 |
101 | Correct | 3 ms | 1624 KB | Correct answer: answer = 253968628325 |
102 | Correct | 106 ms | 17292 KB | Correct answer: answer = 10267 |
103 | Correct | 301 ms | 56832 KB | Correct answer: answer = 2582408 |
104 | Correct | 3 ms | 1624 KB | Correct answer: answer = 78024964781 |
105 | Correct | 3 ms | 1620 KB | Correct answer: answer = 9866346457 |
106 | Correct | 5 ms | 1996 KB | Correct answer: answer = 3327720949 |
107 | Correct | 5 ms | 2124 KB | Correct answer: answer = 86064128360 |
108 | Correct | 22 ms | 6100 KB | Correct answer: answer = 12698259150 |
109 | Correct | 306 ms | 64068 KB | Correct answer: answer = 1185259288 |
110 | Correct | 19 ms | 3736 KB | Correct answer: answer = 999889968863 |
111 | Correct | 18 ms | 3672 KB | Correct answer: answer = 999861384931 |
112 | Correct | 18 ms | 3660 KB | Correct answer: answer = 999811809929 |
113 | Correct | 18 ms | 3660 KB | Correct answer: answer = 999869756441 |
114 | Correct | 23 ms | 5896 KB | Correct answer: answer = 1700000000 |
115 | Correct | 63 ms | 12516 KB | Correct answer: answer = 131666670 |
116 | Correct | 8 ms | 3048 KB | Correct answer: answer = 89478486 |
117 | Correct | 47 ms | 9540 KB | Correct answer: answer = 4971040 |
118 | Correct | 81 ms | 15300 KB | Correct answer: answer = 2711494 |
119 | Correct | 248 ms | 43936 KB | Correct answer: answer = 25252530 |
120 | Correct | 119 ms | 20904 KB | Correct answer: answer = 62500000 |
121 | Correct | 25 ms | 6336 KB | Correct answer: answer = 333175097780 |
122 | Correct | 95 ms | 16696 KB | Correct answer: answer = 33121180179 |
123 | Correct | 285 ms | 43464 KB | Correct answer: answer = 9802314015 |
124 | Correct | 239 ms | 35256 KB | Correct answer: answer = 32567551 |
125 | Correct | 257 ms | 44552 KB | Correct answer: answer = 997525000000 |
126 | Correct | 261 ms | 40632 KB | Correct answer: answer = 752723538884 |
127 | Correct | 14 ms | 3660 KB | Correct answer: answer = 1000000000000 |
128 | Correct | 18 ms | 3692 KB | Correct answer: answer = 999978000121 |
129 | Correct | 25 ms | 3912 KB | Correct answer: answer = 745986144735 |
130 | Correct | 14 ms | 3148 KB | Correct answer: answer = 2 |
131 | Correct | 43 ms | 9004 KB | Correct answer: answer = 277966670 |
132 | Correct | 24 ms | 5908 KB | Correct answer: answer = 2500900082 |
133 | Correct | 19 ms | 3944 KB | Correct answer: answer = 301248349636 |
134 | Correct | 227 ms | 22820 KB | Correct answer: answer = 14118891 |
135 | Correct | 18 ms | 3660 KB | Correct answer: answer = 14384977265 |
136 | Correct | 20 ms | 3828 KB | Correct answer: answer = 3681368330 |
137 | Correct | 21 ms | 4172 KB | Correct answer: answer = 2720316816 |
138 | Correct | 37 ms | 5952 KB | Correct answer: answer = 999976000144 |
139 | Correct | 44 ms | 5840 KB | Correct answer: answer = 999856102410 |
140 | Correct | 37 ms | 5968 KB | Correct answer: answer = 999958401531 |
141 | Correct | 44 ms | 5840 KB | Correct answer: answer = 999769649944 |
142 | Correct | 35 ms | 5968 KB | Correct answer: answer = 999874525918 |
143 | Runtime error | 46 ms | 14516 KB | Execution killed with signal 11 |
144 | Halted | 0 ms | 0 KB | - |