# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
485274 | 2021-11-06T23:15:40 Z | couplefire | Aliens (IOI16_aliens) | C++17 | 2 ms | 332 KB |
#include <bits/stdc++.h> using namespace std; #define ll long long #define f first #define s second const int N = 100005; int n, m, k; pair<int, int> segs[N]; pair<ll, int> dp[N]; void check(ll mid){ deque<pair<pair<ll, ll>, int>> dq; dq.push_back({{segs[0].f*segs[0].f-2*segs[0].f, -2*segs[0].f}, 0}); for(int i = 0; i<n; ++i){ while(dq.size()>1 && pair<ll, int>{dq[1].f.f+dq[1].f.s*segs[i].s, dq[1].s}<pair<ll, int>{dq[0].f.f+dq[0].f.s*segs[i].s, dq[0].s}) dq.pop_front(); dp[i] = {dq[0].f.f+dq[0].f.s*segs[i].s+segs[i].s*segs[i].s+1+2*segs[i].s+mid, dq[0].s+1}; if(i==n-1) break; ll a = dp[i].f-max(0ll, segs[i].s-segs[i+1].f+1ll)*max(0ll, segs[i].s-segs[i+1].f+1ll)+segs[i+1].f*segs[i+1].f-2*segs[i+1].f; ll b = -2*segs[i+1].f; while(dq.size()>1 && (double)(a-dq[dq.size()-1].f.f)/(dq[dq.size()-1].f.s-b)<(double)(a-dq[dq.size()-2].f.f)/(dq[dq.size()-2].f.s-b)) dq.pop_back(); dq.push_back({{a, b}, dp[i].s}); } } ll take_photos(int _n, int _m, int _k, vector<int> _r, vector<int> _c){ n = _n, m = _m, k = _k; vector<pair<int, int>> _tmp, tmp; for(int i = 0; i<n; ++i) _tmp.push_back({_r[i], _c[i]}); for(int i = 0; i<n; ++i) if(_tmp[i].f>_tmp[i].s) swap(_tmp[i].f, _tmp[i].s); sort(_tmp.begin(), _tmp.end(), [&](pair<int, int> a, pair<int, int> b){ if(a.f != b.f) return a.f<b.f; return a.s>b.s; }); for(auto [l, r] : _tmp) if(tmp.empty() || r>tmp.back().s) tmp.push_back({l, r}); n = tmp.size(); for(int i = 0; i<n; ++i) segs[i] = tmp[i]; ll lo = 0, hi = 1ll*m*m; while(lo<hi){ ll mid = lo+(hi-lo)/2; check(mid); if(dp[n-1].s<=k) hi = mid; else lo = mid+1; } check(lo); return dp[n-1].f-lo*k; }
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 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 | 0 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 | 284 KB | Correct answer: answer = 1 |
10 | Correct | 0 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 | 0 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 | 0 ms | 276 KB | Correct answer: answer = 7550 |
17 | Correct | 0 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 | 0 ms | 204 KB | Correct answer: answer = 10000 |
# | Verdict | Execution time | Memory | 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 | 232 KB | Correct answer: answer = 1 |
4 | Correct | 0 ms | 204 KB | Correct answer: answer = 5 |
5 | Correct | 0 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 | 1 ms | 204 KB | Correct answer: answer = 764 |
9 | Correct | 1 ms | 332 KB | Correct answer: answer = 250000 |
10 | Correct | 1 ms | 204 KB | Correct answer: answer = 500 |
11 | Correct | 0 ms | 204 KB | Correct answer: answer = 32 |
12 | Correct | 1 ms | 332 KB | Correct answer: answer = 130050 |
13 | Correct | 1 ms | 332 KB | Correct answer: answer = 5110 |
14 | Correct | 0 ms | 204 KB | Correct answer: answer = 2626 |
15 | Correct | 1 ms | 204 KB | Correct answer: answer = 796 |
16 | Correct | 1 ms | 332 KB | Correct answer: answer = 7580 |
17 | Correct | 1 ms | 332 KB | Correct answer: answer = 1904 |
18 | Correct | 1 ms | 332 KB | Correct answer: answer = 996004 |
19 | Correct | 1 ms | 332 KB | Correct answer: answer = 38817 |
20 | Correct | 1 ms | 204 KB | Correct answer: answer = 4096 |
21 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
22 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
23 | Correct | 1 ms | 332 KB | Correct answer: answer = 2040 |
24 | Correct | 0 ms | 204 KB | Correct answer: answer = 2 |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 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 | 0 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 | 284 KB | Correct answer: answer = 1 |
10 | Correct | 0 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 | 0 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 | 0 ms | 276 KB | Correct answer: answer = 7550 |
17 | Correct | 0 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 | 0 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 | 232 KB | Correct answer: answer = 1 |
24 | Correct | 0 ms | 204 KB | Correct answer: answer = 5 |
25 | Correct | 0 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 | 1 ms | 204 KB | Correct answer: answer = 764 |
29 | Correct | 1 ms | 332 KB | Correct answer: answer = 250000 |
30 | Correct | 1 ms | 204 KB | Correct answer: answer = 500 |
31 | Correct | 0 ms | 204 KB | Correct answer: answer = 32 |
32 | Correct | 1 ms | 332 KB | Correct answer: answer = 130050 |
33 | Correct | 1 ms | 332 KB | Correct answer: answer = 5110 |
34 | Correct | 0 ms | 204 KB | Correct answer: answer = 2626 |
35 | Correct | 1 ms | 204 KB | Correct answer: answer = 796 |
36 | Correct | 1 ms | 332 KB | Correct answer: answer = 7580 |
37 | Correct | 1 ms | 332 KB | Correct answer: answer = 1904 |
38 | Correct | 1 ms | 332 KB | Correct answer: answer = 996004 |
39 | Correct | 1 ms | 332 KB | Correct answer: answer = 38817 |
40 | Correct | 1 ms | 204 KB | Correct answer: answer = 4096 |
41 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
42 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
43 | Correct | 1 ms | 332 KB | Correct answer: answer = 2040 |
44 | Correct | 0 ms | 204 KB | Correct answer: answer = 2 |
45 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
46 | Correct | 0 ms | 204 KB | Correct answer: answer = 9 |
47 | Correct | 0 ms | 204 KB | Correct answer: answer = 9 |
48 | Correct | 0 ms | 204 KB | Correct answer: answer = 21 |
49 | Correct | 0 ms | 204 KB | Correct answer: answer = 71 |
50 | Correct | 0 ms | 204 KB | Correct answer: answer = 77 |
51 | Correct | 0 ms | 204 KB | Correct answer: answer = 400 |
52 | Correct | 0 ms | 204 KB | Correct answer: answer = 996004 |
53 | Correct | 0 ms | 204 KB | Correct answer: answer = 997310 |
54 | Correct | 0 ms | 204 KB | Correct answer: answer = 990781 |
55 | Correct | 1 ms | 204 KB | Correct answer: answer = 996545 |
56 | Correct | 1 ms | 204 KB | Correct answer: answer = 484 |
57 | Correct | 0 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 | 1 ms | 332 KB | Correct answer: answer = 752500 |
61 | Correct | 1 ms | 204 KB | Correct answer: answer = 761480 |
62 | Correct | 1 ms | 204 KB | Correct answer: answer = 758932 |
63 | Correct | 1 ms | 204 KB | Correct answer: answer = 1000000 |
64 | Correct | 1 ms | 332 KB | Correct answer: answer = 750500 |
65 | Correct | 0 ms | 204 KB | Correct answer: answer = 1000000 |
66 | Correct | 0 ms | 204 KB | Correct answer: answer = 250000 |
67 | Correct | 0 ms | 204 KB | Correct answer: answer = 250000 |
68 | Correct | 0 ms | 204 KB | Correct answer: answer = 1000000 |
69 | Correct | 1 ms | 204 KB | Correct answer: answer = 994009 |
70 | Correct | 1 ms | 204 KB | Correct answer: answer = 59315 |
71 | Correct | 1 ms | 204 KB | Correct answer: answer = 25454 |
72 | Correct | 1 ms | 204 KB | Correct answer: answer = 1504 |
73 | Correct | 1 ms | 204 KB | Correct answer: answer = 37486 |
74 | Correct | 1 ms | 204 KB | Correct answer: answer = 4284 |
75 | Correct | 0 ms | 204 KB | Correct answer: answer = 158008 |
76 | Correct | 0 ms | 204 KB | Correct answer: answer = 51860 |
77 | Correct | 0 ms | 204 KB | Correct answer: answer = 12985 |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 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 | 0 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 | 284 KB | Correct answer: answer = 1 |
10 | Correct | 0 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 | 0 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 | 0 ms | 276 KB | Correct answer: answer = 7550 |
17 | Correct | 0 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 | 0 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 | 232 KB | Correct answer: answer = 1 |
24 | Correct | 0 ms | 204 KB | Correct answer: answer = 5 |
25 | Correct | 0 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 | 1 ms | 204 KB | Correct answer: answer = 764 |
29 | Correct | 1 ms | 332 KB | Correct answer: answer = 250000 |
30 | Correct | 1 ms | 204 KB | Correct answer: answer = 500 |
31 | Correct | 0 ms | 204 KB | Correct answer: answer = 32 |
32 | Correct | 1 ms | 332 KB | Correct answer: answer = 130050 |
33 | Correct | 1 ms | 332 KB | Correct answer: answer = 5110 |
34 | Correct | 0 ms | 204 KB | Correct answer: answer = 2626 |
35 | Correct | 1 ms | 204 KB | Correct answer: answer = 796 |
36 | Correct | 1 ms | 332 KB | Correct answer: answer = 7580 |
37 | Correct | 1 ms | 332 KB | Correct answer: answer = 1904 |
38 | Correct | 1 ms | 332 KB | Correct answer: answer = 996004 |
39 | Correct | 1 ms | 332 KB | Correct answer: answer = 38817 |
40 | Correct | 1 ms | 204 KB | Correct answer: answer = 4096 |
41 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
42 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
43 | Correct | 1 ms | 332 KB | Correct answer: answer = 2040 |
44 | Correct | 0 ms | 204 KB | Correct answer: answer = 2 |
45 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
46 | Correct | 0 ms | 204 KB | Correct answer: answer = 9 |
47 | Correct | 0 ms | 204 KB | Correct answer: answer = 9 |
48 | Correct | 0 ms | 204 KB | Correct answer: answer = 21 |
49 | Correct | 0 ms | 204 KB | Correct answer: answer = 71 |
50 | Correct | 0 ms | 204 KB | Correct answer: answer = 77 |
51 | Correct | 0 ms | 204 KB | Correct answer: answer = 400 |
52 | Correct | 0 ms | 204 KB | Correct answer: answer = 996004 |
53 | Correct | 0 ms | 204 KB | Correct answer: answer = 997310 |
54 | Correct | 0 ms | 204 KB | Correct answer: answer = 990781 |
55 | Correct | 1 ms | 204 KB | Correct answer: answer = 996545 |
56 | Correct | 1 ms | 204 KB | Correct answer: answer = 484 |
57 | Correct | 0 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 | 1 ms | 332 KB | Correct answer: answer = 752500 |
61 | Correct | 1 ms | 204 KB | Correct answer: answer = 761480 |
62 | Correct | 1 ms | 204 KB | Correct answer: answer = 758932 |
63 | Correct | 1 ms | 204 KB | Correct answer: answer = 1000000 |
64 | Correct | 1 ms | 332 KB | Correct answer: answer = 750500 |
65 | Correct | 0 ms | 204 KB | Correct answer: answer = 1000000 |
66 | Correct | 0 ms | 204 KB | Correct answer: answer = 250000 |
67 | Correct | 0 ms | 204 KB | Correct answer: answer = 250000 |
68 | Correct | 0 ms | 204 KB | Correct answer: answer = 1000000 |
69 | Correct | 1 ms | 204 KB | Correct answer: answer = 994009 |
70 | Correct | 1 ms | 204 KB | Correct answer: answer = 59315 |
71 | Correct | 1 ms | 204 KB | Correct answer: answer = 25454 |
72 | Correct | 1 ms | 204 KB | Correct answer: answer = 1504 |
73 | Correct | 1 ms | 204 KB | Correct answer: answer = 37486 |
74 | Correct | 1 ms | 204 KB | Correct answer: answer = 4284 |
75 | Correct | 0 ms | 204 KB | Correct answer: answer = 158008 |
76 | Correct | 0 ms | 204 KB | Correct answer: answer = 51860 |
77 | Correct | 0 ms | 204 KB | Correct answer: answer = 12985 |
78 | Incorrect | 2 ms | 332 KB | Wrong answer: output = -2862834731994, expected = 997864126212 |
79 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 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 | 0 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 | 284 KB | Correct answer: answer = 1 |
10 | Correct | 0 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 | 0 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 | 0 ms | 276 KB | Correct answer: answer = 7550 |
17 | Correct | 0 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 | 0 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 | 232 KB | Correct answer: answer = 1 |
24 | Correct | 0 ms | 204 KB | Correct answer: answer = 5 |
25 | Correct | 0 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 | 1 ms | 204 KB | Correct answer: answer = 764 |
29 | Correct | 1 ms | 332 KB | Correct answer: answer = 250000 |
30 | Correct | 1 ms | 204 KB | Correct answer: answer = 500 |
31 | Correct | 0 ms | 204 KB | Correct answer: answer = 32 |
32 | Correct | 1 ms | 332 KB | Correct answer: answer = 130050 |
33 | Correct | 1 ms | 332 KB | Correct answer: answer = 5110 |
34 | Correct | 0 ms | 204 KB | Correct answer: answer = 2626 |
35 | Correct | 1 ms | 204 KB | Correct answer: answer = 796 |
36 | Correct | 1 ms | 332 KB | Correct answer: answer = 7580 |
37 | Correct | 1 ms | 332 KB | Correct answer: answer = 1904 |
38 | Correct | 1 ms | 332 KB | Correct answer: answer = 996004 |
39 | Correct | 1 ms | 332 KB | Correct answer: answer = 38817 |
40 | Correct | 1 ms | 204 KB | Correct answer: answer = 4096 |
41 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
42 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
43 | Correct | 1 ms | 332 KB | Correct answer: answer = 2040 |
44 | Correct | 0 ms | 204 KB | Correct answer: answer = 2 |
45 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
46 | Correct | 0 ms | 204 KB | Correct answer: answer = 9 |
47 | Correct | 0 ms | 204 KB | Correct answer: answer = 9 |
48 | Correct | 0 ms | 204 KB | Correct answer: answer = 21 |
49 | Correct | 0 ms | 204 KB | Correct answer: answer = 71 |
50 | Correct | 0 ms | 204 KB | Correct answer: answer = 77 |
51 | Correct | 0 ms | 204 KB | Correct answer: answer = 400 |
52 | Correct | 0 ms | 204 KB | Correct answer: answer = 996004 |
53 | Correct | 0 ms | 204 KB | Correct answer: answer = 997310 |
54 | Correct | 0 ms | 204 KB | Correct answer: answer = 990781 |
55 | Correct | 1 ms | 204 KB | Correct answer: answer = 996545 |
56 | Correct | 1 ms | 204 KB | Correct answer: answer = 484 |
57 | Correct | 0 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 | 1 ms | 332 KB | Correct answer: answer = 752500 |
61 | Correct | 1 ms | 204 KB | Correct answer: answer = 761480 |
62 | Correct | 1 ms | 204 KB | Correct answer: answer = 758932 |
63 | Correct | 1 ms | 204 KB | Correct answer: answer = 1000000 |
64 | Correct | 1 ms | 332 KB | Correct answer: answer = 750500 |
65 | Correct | 0 ms | 204 KB | Correct answer: answer = 1000000 |
66 | Correct | 0 ms | 204 KB | Correct answer: answer = 250000 |
67 | Correct | 0 ms | 204 KB | Correct answer: answer = 250000 |
68 | Correct | 0 ms | 204 KB | Correct answer: answer = 1000000 |
69 | Correct | 1 ms | 204 KB | Correct answer: answer = 994009 |
70 | Correct | 1 ms | 204 KB | Correct answer: answer = 59315 |
71 | Correct | 1 ms | 204 KB | Correct answer: answer = 25454 |
72 | Correct | 1 ms | 204 KB | Correct answer: answer = 1504 |
73 | Correct | 1 ms | 204 KB | Correct answer: answer = 37486 |
74 | Correct | 1 ms | 204 KB | Correct answer: answer = 4284 |
75 | Correct | 0 ms | 204 KB | Correct answer: answer = 158008 |
76 | Correct | 0 ms | 204 KB | Correct answer: answer = 51860 |
77 | Correct | 0 ms | 204 KB | Correct answer: answer = 12985 |
78 | Incorrect | 2 ms | 332 KB | Wrong answer: output = -2862834731994, expected = 997864126212 |
79 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 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 | 0 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 | 284 KB | Correct answer: answer = 1 |
10 | Correct | 0 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 | 0 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 | 0 ms | 276 KB | Correct answer: answer = 7550 |
17 | Correct | 0 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 | 0 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 | 232 KB | Correct answer: answer = 1 |
24 | Correct | 0 ms | 204 KB | Correct answer: answer = 5 |
25 | Correct | 0 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 | 1 ms | 204 KB | Correct answer: answer = 764 |
29 | Correct | 1 ms | 332 KB | Correct answer: answer = 250000 |
30 | Correct | 1 ms | 204 KB | Correct answer: answer = 500 |
31 | Correct | 0 ms | 204 KB | Correct answer: answer = 32 |
32 | Correct | 1 ms | 332 KB | Correct answer: answer = 130050 |
33 | Correct | 1 ms | 332 KB | Correct answer: answer = 5110 |
34 | Correct | 0 ms | 204 KB | Correct answer: answer = 2626 |
35 | Correct | 1 ms | 204 KB | Correct answer: answer = 796 |
36 | Correct | 1 ms | 332 KB | Correct answer: answer = 7580 |
37 | Correct | 1 ms | 332 KB | Correct answer: answer = 1904 |
38 | Correct | 1 ms | 332 KB | Correct answer: answer = 996004 |
39 | Correct | 1 ms | 332 KB | Correct answer: answer = 38817 |
40 | Correct | 1 ms | 204 KB | Correct answer: answer = 4096 |
41 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
42 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
43 | Correct | 1 ms | 332 KB | Correct answer: answer = 2040 |
44 | Correct | 0 ms | 204 KB | Correct answer: answer = 2 |
45 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
46 | Correct | 0 ms | 204 KB | Correct answer: answer = 9 |
47 | Correct | 0 ms | 204 KB | Correct answer: answer = 9 |
48 | Correct | 0 ms | 204 KB | Correct answer: answer = 21 |
49 | Correct | 0 ms | 204 KB | Correct answer: answer = 71 |
50 | Correct | 0 ms | 204 KB | Correct answer: answer = 77 |
51 | Correct | 0 ms | 204 KB | Correct answer: answer = 400 |
52 | Correct | 0 ms | 204 KB | Correct answer: answer = 996004 |
53 | Correct | 0 ms | 204 KB | Correct answer: answer = 997310 |
54 | Correct | 0 ms | 204 KB | Correct answer: answer = 990781 |
55 | Correct | 1 ms | 204 KB | Correct answer: answer = 996545 |
56 | Correct | 1 ms | 204 KB | Correct answer: answer = 484 |
57 | Correct | 0 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 | 1 ms | 332 KB | Correct answer: answer = 752500 |
61 | Correct | 1 ms | 204 KB | Correct answer: answer = 761480 |
62 | Correct | 1 ms | 204 KB | Correct answer: answer = 758932 |
63 | Correct | 1 ms | 204 KB | Correct answer: answer = 1000000 |
64 | Correct | 1 ms | 332 KB | Correct answer: answer = 750500 |
65 | Correct | 0 ms | 204 KB | Correct answer: answer = 1000000 |
66 | Correct | 0 ms | 204 KB | Correct answer: answer = 250000 |
67 | Correct | 0 ms | 204 KB | Correct answer: answer = 250000 |
68 | Correct | 0 ms | 204 KB | Correct answer: answer = 1000000 |
69 | Correct | 1 ms | 204 KB | Correct answer: answer = 994009 |
70 | Correct | 1 ms | 204 KB | Correct answer: answer = 59315 |
71 | Correct | 1 ms | 204 KB | Correct answer: answer = 25454 |
72 | Correct | 1 ms | 204 KB | Correct answer: answer = 1504 |
73 | Correct | 1 ms | 204 KB | Correct answer: answer = 37486 |
74 | Correct | 1 ms | 204 KB | Correct answer: answer = 4284 |
75 | Correct | 0 ms | 204 KB | Correct answer: answer = 158008 |
76 | Correct | 0 ms | 204 KB | Correct answer: answer = 51860 |
77 | Correct | 0 ms | 204 KB | Correct answer: answer = 12985 |
78 | Incorrect | 2 ms | 332 KB | Wrong answer: output = -2862834731994, expected = 997864126212 |
79 | Halted | 0 ms | 0 KB | - |