# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
432054 | 2021-06-17T19:42:48 Z | Tangent | Aliens (IOI16_aliens) | C++17 | 2000 ms | 62820 KB |
#include "aliens.h" #include "bits/stdc++.h" using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef vector<int> vii; typedef vector<ll> vll; typedef vector<pii> vpii; typedef vector<pll> vpll; typedef vector<vii> vvii; typedef vector<vll> vvll; typedef vector<vpii> vvpii; typedef vector<vpll> vvpll; #define ffor(i, a, b) for (ll i = (a); i < (ll)(b); i++) #define fford(i, a, b) for (ll i = (a); i > (ll)(b); i--) #define rep(i, n) ffor(i, 0, n) #define forin(x, a) for (auto &x: a) #define all(a) a.begin(), a.end() #define sq(x) (ll)(x) * (x) long long take_photos(int n, int m, int k, std::vector<int> r, std::vector<int> c) { vpii intervals; rep(i, n) { if (r[i] > c[i]) { swap(r[i], c[i]); } intervals.emplace_back(r[i], -c[i]); } sort(all(intervals)); vpii merged = {{intervals[0].first, -intervals[0].second}}; ffor(i, 1, intervals.size()) { if (-intervals[i].second > merged.back().second) { merged.emplace_back(intervals[i].first, -intervals[i].second); } } vvll dp(k + 1, vll(merged.size() + 1, 1ll << 62)); dp[0][0] = 0; rep(i, merged.size()) { dp[1][i + 1] = sq(merged[i].second - merged[0].first + 1); } ll res = dp[1].back(); ffor(used, 2, k + 1) { int start = 0; ffor(i, used - 1, merged.size()) { ffor(j, start, i) { ll curr = dp[used - 1][j + 1] + sq(merged[i].second - merged[j + 1].first + 1) - sq(max(0, merged[j].second - merged[j + 1].first + 1)); if (curr < dp[used][i + 1]) { dp[used][i + 1] = curr; start = j; } } } res = min(res, dp[used].back()); } return res; }
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
2 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
3 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
4 | Correct | 0 ms | 204 KB | Correct answer: answer = 12 |
5 | Correct | 0 ms | 204 KB | Correct answer: answer = 52 |
6 | Correct | 1 ms | 204 KB | Correct answer: answer = 210 |
7 | Correct | 0 ms | 204 KB | Correct answer: answer = 88 |
8 | Correct | 0 ms | 204 KB | Correct answer: answer = 7696 |
9 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
10 | Correct | 1 ms | 204 KB | Correct answer: answer = 2374 |
11 | Correct | 0 ms | 204 KB | Correct answer: answer = 9502 |
12 | Correct | 0 ms | 204 KB | Correct answer: answer = 49 |
13 | Correct | 1 ms | 204 KB | Correct answer: answer = 151 |
14 | Correct | 0 ms | 204 KB | Correct answer: answer = 7550 |
15 | Correct | 0 ms | 204 KB | Correct answer: answer = 7220 |
16 | Correct | 1 ms | 204 KB | Correct answer: answer = 7550 |
17 | Correct | 1 ms | 204 KB | Correct answer: answer = 10000 |
18 | Correct | 0 ms | 204 KB | Correct answer: answer = 10000 |
19 | Correct | 0 ms | 204 KB | Correct answer: answer = 624 |
20 | Correct | 1 ms | 204 KB | Correct answer: answer = 10000 |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
2 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
3 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
4 | Correct | 1 ms | 204 KB | Correct answer: answer = 5 |
5 | Correct | 1 ms | 204 KB | Correct answer: answer = 41 |
6 | Correct | 0 ms | 204 KB | Correct answer: answer = 71923 |
7 | Correct | 1 ms | 204 KB | Correct answer: answer = 77137 |
8 | Correct | 3 ms | 972 KB | Correct answer: answer = 764 |
9 | Correct | 1 ms | 204 KB | Correct answer: answer = 250000 |
10 | Correct | 5 ms | 2296 KB | Correct answer: answer = 500 |
11 | Correct | 1 ms | 204 KB | Correct answer: answer = 32 |
12 | Correct | 1 ms | 204 KB | Correct answer: answer = 130050 |
13 | Correct | 2 ms | 460 KB | Correct answer: answer = 5110 |
14 | Correct | 1 ms | 332 KB | Correct answer: answer = 2626 |
15 | Correct | 1 ms | 460 KB | Correct answer: answer = 796 |
16 | Correct | 2 ms | 332 KB | Correct answer: answer = 7580 |
17 | Correct | 2 ms | 716 KB | Correct answer: answer = 1904 |
18 | Correct | 1 ms | 204 KB | Correct answer: answer = 996004 |
19 | Correct | 1 ms | 332 KB | Correct answer: answer = 38817 |
20 | Correct | 2 ms | 588 KB | Correct answer: answer = 4096 |
21 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
22 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
23 | Correct | 3 ms | 716 KB | Correct answer: answer = 2040 |
24 | Correct | 1 ms | 204 KB | Correct answer: answer = 2 |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
2 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
3 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
4 | Correct | 0 ms | 204 KB | Correct answer: answer = 12 |
5 | Correct | 0 ms | 204 KB | Correct answer: answer = 52 |
6 | Correct | 1 ms | 204 KB | Correct answer: answer = 210 |
7 | Correct | 0 ms | 204 KB | Correct answer: answer = 88 |
8 | Correct | 0 ms | 204 KB | Correct answer: answer = 7696 |
9 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
10 | Correct | 1 ms | 204 KB | Correct answer: answer = 2374 |
11 | Correct | 0 ms | 204 KB | Correct answer: answer = 9502 |
12 | Correct | 0 ms | 204 KB | Correct answer: answer = 49 |
13 | Correct | 1 ms | 204 KB | Correct answer: answer = 151 |
14 | Correct | 0 ms | 204 KB | Correct answer: answer = 7550 |
15 | Correct | 0 ms | 204 KB | Correct answer: answer = 7220 |
16 | Correct | 1 ms | 204 KB | Correct answer: answer = 7550 |
17 | Correct | 1 ms | 204 KB | Correct answer: answer = 10000 |
18 | Correct | 0 ms | 204 KB | Correct answer: answer = 10000 |
19 | Correct | 0 ms | 204 KB | Correct answer: answer = 624 |
20 | Correct | 1 ms | 204 KB | Correct answer: answer = 10000 |
21 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
22 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
23 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
24 | Correct | 1 ms | 204 KB | Correct answer: answer = 5 |
25 | Correct | 1 ms | 204 KB | Correct answer: answer = 41 |
26 | Correct | 0 ms | 204 KB | Correct answer: answer = 71923 |
27 | Correct | 1 ms | 204 KB | Correct answer: answer = 77137 |
28 | Correct | 3 ms | 972 KB | Correct answer: answer = 764 |
29 | Correct | 1 ms | 204 KB | Correct answer: answer = 250000 |
30 | Correct | 5 ms | 2296 KB | Correct answer: answer = 500 |
31 | Correct | 1 ms | 204 KB | Correct answer: answer = 32 |
32 | Correct | 1 ms | 204 KB | Correct answer: answer = 130050 |
33 | Correct | 2 ms | 460 KB | Correct answer: answer = 5110 |
34 | Correct | 1 ms | 332 KB | Correct answer: answer = 2626 |
35 | Correct | 1 ms | 460 KB | Correct answer: answer = 796 |
36 | Correct | 2 ms | 332 KB | Correct answer: answer = 7580 |
37 | Correct | 2 ms | 716 KB | Correct answer: answer = 1904 |
38 | Correct | 1 ms | 204 KB | Correct answer: answer = 996004 |
39 | Correct | 1 ms | 332 KB | Correct answer: answer = 38817 |
40 | Correct | 2 ms | 588 KB | Correct answer: answer = 4096 |
41 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
42 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
43 | Correct | 3 ms | 716 KB | Correct answer: answer = 2040 |
44 | Correct | 1 ms | 204 KB | Correct answer: answer = 2 |
45 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
46 | Correct | 1 ms | 204 KB | Correct answer: answer = 9 |
47 | Correct | 0 ms | 204 KB | Correct answer: answer = 9 |
48 | Correct | 1 ms | 204 KB | Correct answer: answer = 21 |
49 | Correct | 1 ms | 204 KB | Correct answer: answer = 71 |
50 | Correct | 1 ms | 204 KB | Correct answer: answer = 77 |
51 | Correct | 0 ms | 204 KB | Correct answer: answer = 400 |
52 | Correct | 1 ms | 204 KB | Correct answer: answer = 996004 |
53 | Correct | 1 ms | 204 KB | Correct answer: answer = 997310 |
54 | Correct | 1 ms | 204 KB | Correct answer: answer = 990781 |
55 | Correct | 1 ms | 332 KB | Correct answer: answer = 996545 |
56 | Correct | 1 ms | 204 KB | Correct answer: answer = 484 |
57 | Correct | 1 ms | 204 KB | Correct answer: answer = 484 |
58 | Correct | 1 ms | 332 KB | Correct answer: answer = 63501 |
59 | Correct | 1 ms | 332 KB | Correct answer: answer = 323501 |
60 | Correct | 2 ms | 588 KB | Correct answer: answer = 752500 |
61 | Correct | 1 ms | 332 KB | Correct answer: answer = 761480 |
62 | Correct | 1 ms | 588 KB | Correct answer: answer = 758932 |
63 | Correct | 1 ms | 204 KB | Correct answer: answer = 1000000 |
64 | Correct | 5 ms | 2252 KB | Correct answer: answer = 750500 |
65 | Correct | 1 ms | 236 KB | Correct answer: answer = 1000000 |
66 | Correct | 1 ms | 204 KB | Correct answer: answer = 250000 |
67 | Correct | 1 ms | 332 KB | Correct answer: answer = 250000 |
68 | Correct | 1 ms | 204 KB | Correct answer: answer = 1000000 |
69 | Correct | 1 ms | 204 KB | Correct answer: answer = 994009 |
70 | Correct | 1 ms | 332 KB | Correct answer: answer = 59315 |
71 | Correct | 1 ms | 332 KB | Correct answer: answer = 25454 |
72 | Correct | 1 ms | 588 KB | Correct answer: answer = 1504 |
73 | Correct | 1 ms | 204 KB | Correct answer: answer = 37486 |
74 | Correct | 2 ms | 460 KB | Correct answer: answer = 4284 |
75 | Correct | 1 ms | 444 KB | Correct answer: answer = 158008 |
76 | Correct | 1 ms | 332 KB | Correct answer: answer = 51860 |
77 | Correct | 1 ms | 332 KB | Correct answer: answer = 12985 |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
2 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
3 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
4 | Correct | 0 ms | 204 KB | Correct answer: answer = 12 |
5 | Correct | 0 ms | 204 KB | Correct answer: answer = 52 |
6 | Correct | 1 ms | 204 KB | Correct answer: answer = 210 |
7 | Correct | 0 ms | 204 KB | Correct answer: answer = 88 |
8 | Correct | 0 ms | 204 KB | Correct answer: answer = 7696 |
9 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
10 | Correct | 1 ms | 204 KB | Correct answer: answer = 2374 |
11 | Correct | 0 ms | 204 KB | Correct answer: answer = 9502 |
12 | Correct | 0 ms | 204 KB | Correct answer: answer = 49 |
13 | Correct | 1 ms | 204 KB | Correct answer: answer = 151 |
14 | Correct | 0 ms | 204 KB | Correct answer: answer = 7550 |
15 | Correct | 0 ms | 204 KB | Correct answer: answer = 7220 |
16 | Correct | 1 ms | 204 KB | Correct answer: answer = 7550 |
17 | Correct | 1 ms | 204 KB | Correct answer: answer = 10000 |
18 | Correct | 0 ms | 204 KB | Correct answer: answer = 10000 |
19 | Correct | 0 ms | 204 KB | Correct answer: answer = 624 |
20 | Correct | 1 ms | 204 KB | Correct answer: answer = 10000 |
21 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
22 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
23 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
24 | Correct | 1 ms | 204 KB | Correct answer: answer = 5 |
25 | Correct | 1 ms | 204 KB | Correct answer: answer = 41 |
26 | Correct | 0 ms | 204 KB | Correct answer: answer = 71923 |
27 | Correct | 1 ms | 204 KB | Correct answer: answer = 77137 |
28 | Correct | 3 ms | 972 KB | Correct answer: answer = 764 |
29 | Correct | 1 ms | 204 KB | Correct answer: answer = 250000 |
30 | Correct | 5 ms | 2296 KB | Correct answer: answer = 500 |
31 | Correct | 1 ms | 204 KB | Correct answer: answer = 32 |
32 | Correct | 1 ms | 204 KB | Correct answer: answer = 130050 |
33 | Correct | 2 ms | 460 KB | Correct answer: answer = 5110 |
34 | Correct | 1 ms | 332 KB | Correct answer: answer = 2626 |
35 | Correct | 1 ms | 460 KB | Correct answer: answer = 796 |
36 | Correct | 2 ms | 332 KB | Correct answer: answer = 7580 |
37 | Correct | 2 ms | 716 KB | Correct answer: answer = 1904 |
38 | Correct | 1 ms | 204 KB | Correct answer: answer = 996004 |
39 | Correct | 1 ms | 332 KB | Correct answer: answer = 38817 |
40 | Correct | 2 ms | 588 KB | Correct answer: answer = 4096 |
41 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
42 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
43 | Correct | 3 ms | 716 KB | Correct answer: answer = 2040 |
44 | Correct | 1 ms | 204 KB | Correct answer: answer = 2 |
45 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
46 | Correct | 1 ms | 204 KB | Correct answer: answer = 9 |
47 | Correct | 0 ms | 204 KB | Correct answer: answer = 9 |
48 | Correct | 1 ms | 204 KB | Correct answer: answer = 21 |
49 | Correct | 1 ms | 204 KB | Correct answer: answer = 71 |
50 | Correct | 1 ms | 204 KB | Correct answer: answer = 77 |
51 | Correct | 0 ms | 204 KB | Correct answer: answer = 400 |
52 | Correct | 1 ms | 204 KB | Correct answer: answer = 996004 |
53 | Correct | 1 ms | 204 KB | Correct answer: answer = 997310 |
54 | Correct | 1 ms | 204 KB | Correct answer: answer = 990781 |
55 | Correct | 1 ms | 332 KB | Correct answer: answer = 996545 |
56 | Correct | 1 ms | 204 KB | Correct answer: answer = 484 |
57 | Correct | 1 ms | 204 KB | Correct answer: answer = 484 |
58 | Correct | 1 ms | 332 KB | Correct answer: answer = 63501 |
59 | Correct | 1 ms | 332 KB | Correct answer: answer = 323501 |
60 | Correct | 2 ms | 588 KB | Correct answer: answer = 752500 |
61 | Correct | 1 ms | 332 KB | Correct answer: answer = 761480 |
62 | Correct | 1 ms | 588 KB | Correct answer: answer = 758932 |
63 | Correct | 1 ms | 204 KB | Correct answer: answer = 1000000 |
64 | Correct | 5 ms | 2252 KB | Correct answer: answer = 750500 |
65 | Correct | 1 ms | 236 KB | Correct answer: answer = 1000000 |
66 | Correct | 1 ms | 204 KB | Correct answer: answer = 250000 |
67 | Correct | 1 ms | 332 KB | Correct answer: answer = 250000 |
68 | Correct | 1 ms | 204 KB | Correct answer: answer = 1000000 |
69 | Correct | 1 ms | 204 KB | Correct answer: answer = 994009 |
70 | Correct | 1 ms | 332 KB | Correct answer: answer = 59315 |
71 | Correct | 1 ms | 332 KB | Correct answer: answer = 25454 |
72 | Correct | 1 ms | 588 KB | Correct answer: answer = 1504 |
73 | Correct | 1 ms | 204 KB | Correct answer: answer = 37486 |
74 | Correct | 2 ms | 460 KB | Correct answer: answer = 4284 |
75 | Correct | 1 ms | 444 KB | Correct answer: answer = 158008 |
76 | Correct | 1 ms | 332 KB | Correct answer: answer = 51860 |
77 | Correct | 1 ms | 332 KB | Correct answer: answer = 12985 |
78 | Correct | 2 ms | 332 KB | Correct answer: answer = 997864126212 |
79 | Correct | 2 ms | 332 KB | Correct answer: answer = 998608411647 |
80 | Correct | 2 ms | 716 KB | Correct answer: answer = 995265560477 |
81 | Correct | 11 ms | 568 KB | Correct answer: answer = 10125000 |
82 | Correct | 25 ms | 716 KB | Correct answer: answer = 2291668 |
83 | Correct | 21 ms | 1984 KB | Correct answer: answer = 42388 |
84 | Correct | 39 ms | 6860 KB | Correct answer: answer = 10318 |
85 | Correct | 50 ms | 22220 KB | Correct answer: answer = 3416 |
86 | Correct | 15 ms | 656 KB | Correct answer: answer = 331708193881 |
87 | Correct | 95 ms | 7844 KB | Correct answer: answer = 2861193756 |
88 | Correct | 168 ms | 42396 KB | Correct answer: answer = 114646930 |
89 | Correct | 78 ms | 2252 KB | Correct answer: answer = 9280921 |
90 | Correct | 117 ms | 9936 KB | Correct answer: answer = 999984053400 |
91 | Correct | 148 ms | 31528 KB | Correct answer: answer = 750935949134 |
92 | Correct | 1 ms | 436 KB | Correct answer: answer = 1000000000000 |
93 | Correct | 2 ms | 588 KB | Correct answer: answer = 998762383161 |
94 | Correct | 53 ms | 1772 KB | Correct answer: answer = 23017412908 |
95 | Correct | 2 ms | 1004 KB | Correct answer: answer = 728143410622 |
96 | Correct | 1 ms | 332 KB | Correct answer: answer = 2 |
97 | Correct | 33 ms | 816 KB | Correct answer: answer = 1824916 |
98 | Correct | 261 ms | 16460 KB | Correct answer: answer = 10680029 |
99 | Correct | 277 ms | 8524 KB | Correct answer: answer = 18351700 |
100 | Correct | 10 ms | 612 KB | Correct answer: answer = 16040026 |
101 | Correct | 2 ms | 460 KB | Correct answer: answer = 253968628325 |
102 | Correct | 49 ms | 16076 KB | Correct answer: answer = 10267 |
103 | Correct | 572 ms | 55628 KB | Correct answer: answer = 2582408 |
104 | Correct | 2 ms | 460 KB | Correct answer: answer = 78024964781 |
105 | Correct | 2 ms | 460 KB | Correct answer: answer = 9866346457 |
106 | Correct | 4 ms | 844 KB | Correct answer: answer = 3327720949 |
107 | Correct | 4 ms | 4088 KB | Correct answer: answer = 86064128360 |
108 | Correct | 16 ms | 17640 KB | Correct answer: answer = 12698259150 |
109 | Correct | 143 ms | 62820 KB | Correct answer: answer = 1185259288 |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
2 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
3 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
4 | Correct | 0 ms | 204 KB | Correct answer: answer = 12 |
5 | Correct | 0 ms | 204 KB | Correct answer: answer = 52 |
6 | Correct | 1 ms | 204 KB | Correct answer: answer = 210 |
7 | Correct | 0 ms | 204 KB | Correct answer: answer = 88 |
8 | Correct | 0 ms | 204 KB | Correct answer: answer = 7696 |
9 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
10 | Correct | 1 ms | 204 KB | Correct answer: answer = 2374 |
11 | Correct | 0 ms | 204 KB | Correct answer: answer = 9502 |
12 | Correct | 0 ms | 204 KB | Correct answer: answer = 49 |
13 | Correct | 1 ms | 204 KB | Correct answer: answer = 151 |
14 | Correct | 0 ms | 204 KB | Correct answer: answer = 7550 |
15 | Correct | 0 ms | 204 KB | Correct answer: answer = 7220 |
16 | Correct | 1 ms | 204 KB | Correct answer: answer = 7550 |
17 | Correct | 1 ms | 204 KB | Correct answer: answer = 10000 |
18 | Correct | 0 ms | 204 KB | Correct answer: answer = 10000 |
19 | Correct | 0 ms | 204 KB | Correct answer: answer = 624 |
20 | Correct | 1 ms | 204 KB | Correct answer: answer = 10000 |
21 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
22 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
23 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
24 | Correct | 1 ms | 204 KB | Correct answer: answer = 5 |
25 | Correct | 1 ms | 204 KB | Correct answer: answer = 41 |
26 | Correct | 0 ms | 204 KB | Correct answer: answer = 71923 |
27 | Correct | 1 ms | 204 KB | Correct answer: answer = 77137 |
28 | Correct | 3 ms | 972 KB | Correct answer: answer = 764 |
29 | Correct | 1 ms | 204 KB | Correct answer: answer = 250000 |
30 | Correct | 5 ms | 2296 KB | Correct answer: answer = 500 |
31 | Correct | 1 ms | 204 KB | Correct answer: answer = 32 |
32 | Correct | 1 ms | 204 KB | Correct answer: answer = 130050 |
33 | Correct | 2 ms | 460 KB | Correct answer: answer = 5110 |
34 | Correct | 1 ms | 332 KB | Correct answer: answer = 2626 |
35 | Correct | 1 ms | 460 KB | Correct answer: answer = 796 |
36 | Correct | 2 ms | 332 KB | Correct answer: answer = 7580 |
37 | Correct | 2 ms | 716 KB | Correct answer: answer = 1904 |
38 | Correct | 1 ms | 204 KB | Correct answer: answer = 996004 |
39 | Correct | 1 ms | 332 KB | Correct answer: answer = 38817 |
40 | Correct | 2 ms | 588 KB | Correct answer: answer = 4096 |
41 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
42 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
43 | Correct | 3 ms | 716 KB | Correct answer: answer = 2040 |
44 | Correct | 1 ms | 204 KB | Correct answer: answer = 2 |
45 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
46 | Correct | 1 ms | 204 KB | Correct answer: answer = 9 |
47 | Correct | 0 ms | 204 KB | Correct answer: answer = 9 |
48 | Correct | 1 ms | 204 KB | Correct answer: answer = 21 |
49 | Correct | 1 ms | 204 KB | Correct answer: answer = 71 |
50 | Correct | 1 ms | 204 KB | Correct answer: answer = 77 |
51 | Correct | 0 ms | 204 KB | Correct answer: answer = 400 |
52 | Correct | 1 ms | 204 KB | Correct answer: answer = 996004 |
53 | Correct | 1 ms | 204 KB | Correct answer: answer = 997310 |
54 | Correct | 1 ms | 204 KB | Correct answer: answer = 990781 |
55 | Correct | 1 ms | 332 KB | Correct answer: answer = 996545 |
56 | Correct | 1 ms | 204 KB | Correct answer: answer = 484 |
57 | Correct | 1 ms | 204 KB | Correct answer: answer = 484 |
58 | Correct | 1 ms | 332 KB | Correct answer: answer = 63501 |
59 | Correct | 1 ms | 332 KB | Correct answer: answer = 323501 |
60 | Correct | 2 ms | 588 KB | Correct answer: answer = 752500 |
61 | Correct | 1 ms | 332 KB | Correct answer: answer = 761480 |
62 | Correct | 1 ms | 588 KB | Correct answer: answer = 758932 |
63 | Correct | 1 ms | 204 KB | Correct answer: answer = 1000000 |
64 | Correct | 5 ms | 2252 KB | Correct answer: answer = 750500 |
65 | Correct | 1 ms | 236 KB | Correct answer: answer = 1000000 |
66 | Correct | 1 ms | 204 KB | Correct answer: answer = 250000 |
67 | Correct | 1 ms | 332 KB | Correct answer: answer = 250000 |
68 | Correct | 1 ms | 204 KB | Correct answer: answer = 1000000 |
69 | Correct | 1 ms | 204 KB | Correct answer: answer = 994009 |
70 | Correct | 1 ms | 332 KB | Correct answer: answer = 59315 |
71 | Correct | 1 ms | 332 KB | Correct answer: answer = 25454 |
72 | Correct | 1 ms | 588 KB | Correct answer: answer = 1504 |
73 | Correct | 1 ms | 204 KB | Correct answer: answer = 37486 |
74 | Correct | 2 ms | 460 KB | Correct answer: answer = 4284 |
75 | Correct | 1 ms | 444 KB | Correct answer: answer = 158008 |
76 | Correct | 1 ms | 332 KB | Correct answer: answer = 51860 |
77 | Correct | 1 ms | 332 KB | Correct answer: answer = 12985 |
78 | Correct | 2 ms | 332 KB | Correct answer: answer = 997864126212 |
79 | Correct | 2 ms | 332 KB | Correct answer: answer = 998608411647 |
80 | Correct | 2 ms | 716 KB | Correct answer: answer = 995265560477 |
81 | Correct | 11 ms | 568 KB | Correct answer: answer = 10125000 |
82 | Correct | 25 ms | 716 KB | Correct answer: answer = 2291668 |
83 | Correct | 21 ms | 1984 KB | Correct answer: answer = 42388 |
84 | Correct | 39 ms | 6860 KB | Correct answer: answer = 10318 |
85 | Correct | 50 ms | 22220 KB | Correct answer: answer = 3416 |
86 | Correct | 15 ms | 656 KB | Correct answer: answer = 331708193881 |
87 | Correct | 95 ms | 7844 KB | Correct answer: answer = 2861193756 |
88 | Correct | 168 ms | 42396 KB | Correct answer: answer = 114646930 |
89 | Correct | 78 ms | 2252 KB | Correct answer: answer = 9280921 |
90 | Correct | 117 ms | 9936 KB | Correct answer: answer = 999984053400 |
91 | Correct | 148 ms | 31528 KB | Correct answer: answer = 750935949134 |
92 | Correct | 1 ms | 436 KB | Correct answer: answer = 1000000000000 |
93 | Correct | 2 ms | 588 KB | Correct answer: answer = 998762383161 |
94 | Correct | 53 ms | 1772 KB | Correct answer: answer = 23017412908 |
95 | Correct | 2 ms | 1004 KB | Correct answer: answer = 728143410622 |
96 | Correct | 1 ms | 332 KB | Correct answer: answer = 2 |
97 | Correct | 33 ms | 816 KB | Correct answer: answer = 1824916 |
98 | Correct | 261 ms | 16460 KB | Correct answer: answer = 10680029 |
99 | Correct | 277 ms | 8524 KB | Correct answer: answer = 18351700 |
100 | Correct | 10 ms | 612 KB | Correct answer: answer = 16040026 |
101 | Correct | 2 ms | 460 KB | Correct answer: answer = 253968628325 |
102 | Correct | 49 ms | 16076 KB | Correct answer: answer = 10267 |
103 | Correct | 572 ms | 55628 KB | Correct answer: answer = 2582408 |
104 | Correct | 2 ms | 460 KB | Correct answer: answer = 78024964781 |
105 | Correct | 2 ms | 460 KB | Correct answer: answer = 9866346457 |
106 | Correct | 4 ms | 844 KB | Correct answer: answer = 3327720949 |
107 | Correct | 4 ms | 4088 KB | Correct answer: answer = 86064128360 |
108 | Correct | 16 ms | 17640 KB | Correct answer: answer = 12698259150 |
109 | Correct | 143 ms | 62820 KB | Correct answer: answer = 1185259288 |
110 | Correct | 25 ms | 2328 KB | Correct answer: answer = 999889968863 |
111 | Correct | 18 ms | 2336 KB | Correct answer: answer = 999861384931 |
112 | Correct | 19 ms | 2344 KB | Correct answer: answer = 999811809929 |
113 | Correct | 18 ms | 2336 KB | Correct answer: answer = 999869756441 |
114 | Correct | 1118 ms | 4128 KB | Correct answer: answer = 1700000000 |
115 | Execution timed out | 2072 ms | 10732 KB | Time limit exceeded |
116 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
2 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
3 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
4 | Correct | 0 ms | 204 KB | Correct answer: answer = 12 |
5 | Correct | 0 ms | 204 KB | Correct answer: answer = 52 |
6 | Correct | 1 ms | 204 KB | Correct answer: answer = 210 |
7 | Correct | 0 ms | 204 KB | Correct answer: answer = 88 |
8 | Correct | 0 ms | 204 KB | Correct answer: answer = 7696 |
9 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
10 | Correct | 1 ms | 204 KB | Correct answer: answer = 2374 |
11 | Correct | 0 ms | 204 KB | Correct answer: answer = 9502 |
12 | Correct | 0 ms | 204 KB | Correct answer: answer = 49 |
13 | Correct | 1 ms | 204 KB | Correct answer: answer = 151 |
14 | Correct | 0 ms | 204 KB | Correct answer: answer = 7550 |
15 | Correct | 0 ms | 204 KB | Correct answer: answer = 7220 |
16 | Correct | 1 ms | 204 KB | Correct answer: answer = 7550 |
17 | Correct | 1 ms | 204 KB | Correct answer: answer = 10000 |
18 | Correct | 0 ms | 204 KB | Correct answer: answer = 10000 |
19 | Correct | 0 ms | 204 KB | Correct answer: answer = 624 |
20 | Correct | 1 ms | 204 KB | Correct answer: answer = 10000 |
21 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
22 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
23 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
24 | Correct | 1 ms | 204 KB | Correct answer: answer = 5 |
25 | Correct | 1 ms | 204 KB | Correct answer: answer = 41 |
26 | Correct | 0 ms | 204 KB | Correct answer: answer = 71923 |
27 | Correct | 1 ms | 204 KB | Correct answer: answer = 77137 |
28 | Correct | 3 ms | 972 KB | Correct answer: answer = 764 |
29 | Correct | 1 ms | 204 KB | Correct answer: answer = 250000 |
30 | Correct | 5 ms | 2296 KB | Correct answer: answer = 500 |
31 | Correct | 1 ms | 204 KB | Correct answer: answer = 32 |
32 | Correct | 1 ms | 204 KB | Correct answer: answer = 130050 |
33 | Correct | 2 ms | 460 KB | Correct answer: answer = 5110 |
34 | Correct | 1 ms | 332 KB | Correct answer: answer = 2626 |
35 | Correct | 1 ms | 460 KB | Correct answer: answer = 796 |
36 | Correct | 2 ms | 332 KB | Correct answer: answer = 7580 |
37 | Correct | 2 ms | 716 KB | Correct answer: answer = 1904 |
38 | Correct | 1 ms | 204 KB | Correct answer: answer = 996004 |
39 | Correct | 1 ms | 332 KB | Correct answer: answer = 38817 |
40 | Correct | 2 ms | 588 KB | Correct answer: answer = 4096 |
41 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
42 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
43 | Correct | 3 ms | 716 KB | Correct answer: answer = 2040 |
44 | Correct | 1 ms | 204 KB | Correct answer: answer = 2 |
45 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
46 | Correct | 1 ms | 204 KB | Correct answer: answer = 9 |
47 | Correct | 0 ms | 204 KB | Correct answer: answer = 9 |
48 | Correct | 1 ms | 204 KB | Correct answer: answer = 21 |
49 | Correct | 1 ms | 204 KB | Correct answer: answer = 71 |
50 | Correct | 1 ms | 204 KB | Correct answer: answer = 77 |
51 | Correct | 0 ms | 204 KB | Correct answer: answer = 400 |
52 | Correct | 1 ms | 204 KB | Correct answer: answer = 996004 |
53 | Correct | 1 ms | 204 KB | Correct answer: answer = 997310 |
54 | Correct | 1 ms | 204 KB | Correct answer: answer = 990781 |
55 | Correct | 1 ms | 332 KB | Correct answer: answer = 996545 |
56 | Correct | 1 ms | 204 KB | Correct answer: answer = 484 |
57 | Correct | 1 ms | 204 KB | Correct answer: answer = 484 |
58 | Correct | 1 ms | 332 KB | Correct answer: answer = 63501 |
59 | Correct | 1 ms | 332 KB | Correct answer: answer = 323501 |
60 | Correct | 2 ms | 588 KB | Correct answer: answer = 752500 |
61 | Correct | 1 ms | 332 KB | Correct answer: answer = 761480 |
62 | Correct | 1 ms | 588 KB | Correct answer: answer = 758932 |
63 | Correct | 1 ms | 204 KB | Correct answer: answer = 1000000 |
64 | Correct | 5 ms | 2252 KB | Correct answer: answer = 750500 |
65 | Correct | 1 ms | 236 KB | Correct answer: answer = 1000000 |
66 | Correct | 1 ms | 204 KB | Correct answer: answer = 250000 |
67 | Correct | 1 ms | 332 KB | Correct answer: answer = 250000 |
68 | Correct | 1 ms | 204 KB | Correct answer: answer = 1000000 |
69 | Correct | 1 ms | 204 KB | Correct answer: answer = 994009 |
70 | Correct | 1 ms | 332 KB | Correct answer: answer = 59315 |
71 | Correct | 1 ms | 332 KB | Correct answer: answer = 25454 |
72 | Correct | 1 ms | 588 KB | Correct answer: answer = 1504 |
73 | Correct | 1 ms | 204 KB | Correct answer: answer = 37486 |
74 | Correct | 2 ms | 460 KB | Correct answer: answer = 4284 |
75 | Correct | 1 ms | 444 KB | Correct answer: answer = 158008 |
76 | Correct | 1 ms | 332 KB | Correct answer: answer = 51860 |
77 | Correct | 1 ms | 332 KB | Correct answer: answer = 12985 |
78 | Correct | 2 ms | 332 KB | Correct answer: answer = 997864126212 |
79 | Correct | 2 ms | 332 KB | Correct answer: answer = 998608411647 |
80 | Correct | 2 ms | 716 KB | Correct answer: answer = 995265560477 |
81 | Correct | 11 ms | 568 KB | Correct answer: answer = 10125000 |
82 | Correct | 25 ms | 716 KB | Correct answer: answer = 2291668 |
83 | Correct | 21 ms | 1984 KB | Correct answer: answer = 42388 |
84 | Correct | 39 ms | 6860 KB | Correct answer: answer = 10318 |
85 | Correct | 50 ms | 22220 KB | Correct answer: answer = 3416 |
86 | Correct | 15 ms | 656 KB | Correct answer: answer = 331708193881 |
87 | Correct | 95 ms | 7844 KB | Correct answer: answer = 2861193756 |
88 | Correct | 168 ms | 42396 KB | Correct answer: answer = 114646930 |
89 | Correct | 78 ms | 2252 KB | Correct answer: answer = 9280921 |
90 | Correct | 117 ms | 9936 KB | Correct answer: answer = 999984053400 |
91 | Correct | 148 ms | 31528 KB | Correct answer: answer = 750935949134 |
92 | Correct | 1 ms | 436 KB | Correct answer: answer = 1000000000000 |
93 | Correct | 2 ms | 588 KB | Correct answer: answer = 998762383161 |
94 | Correct | 53 ms | 1772 KB | Correct answer: answer = 23017412908 |
95 | Correct | 2 ms | 1004 KB | Correct answer: answer = 728143410622 |
96 | Correct | 1 ms | 332 KB | Correct answer: answer = 2 |
97 | Correct | 33 ms | 816 KB | Correct answer: answer = 1824916 |
98 | Correct | 261 ms | 16460 KB | Correct answer: answer = 10680029 |
99 | Correct | 277 ms | 8524 KB | Correct answer: answer = 18351700 |
100 | Correct | 10 ms | 612 KB | Correct answer: answer = 16040026 |
101 | Correct | 2 ms | 460 KB | Correct answer: answer = 253968628325 |
102 | Correct | 49 ms | 16076 KB | Correct answer: answer = 10267 |
103 | Correct | 572 ms | 55628 KB | Correct answer: answer = 2582408 |
104 | Correct | 2 ms | 460 KB | Correct answer: answer = 78024964781 |
105 | Correct | 2 ms | 460 KB | Correct answer: answer = 9866346457 |
106 | Correct | 4 ms | 844 KB | Correct answer: answer = 3327720949 |
107 | Correct | 4 ms | 4088 KB | Correct answer: answer = 86064128360 |
108 | Correct | 16 ms | 17640 KB | Correct answer: answer = 12698259150 |
109 | Correct | 143 ms | 62820 KB | Correct answer: answer = 1185259288 |
110 | Correct | 25 ms | 2328 KB | Correct answer: answer = 999889968863 |
111 | Correct | 18 ms | 2336 KB | Correct answer: answer = 999861384931 |
112 | Correct | 19 ms | 2344 KB | Correct answer: answer = 999811809929 |
113 | Correct | 18 ms | 2336 KB | Correct answer: answer = 999869756441 |
114 | Correct | 1118 ms | 4128 KB | Correct answer: answer = 1700000000 |
115 | Execution timed out | 2072 ms | 10732 KB | Time limit exceeded |
116 | Halted | 0 ms | 0 KB | - |