# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
476058 | 2021-09-24T16:59:25 Z | AdamGS | Aliens (IOI16_aliens) | C++14 | 2000 ms | 3244 KB |
#include "aliens.h" #include<bits/stdc++.h> using namespace std; typedef long double ld; typedef long long ll; #define rep(a, b) for(int a = 0; a < (b); ++a) #define st first #define nd second #define pb push_back #define all(a) a.begin(), a.end() const int LIM=1e5+7; const ll INF=1e18+7; vector<pair<ll,ll>>V; ll dp[LIM], ile[LIM]; void licz(ll c) { int n=V.size(); rep(i, n) { dp[i]=ile[i]=INF; rep(j, i+1) { ll x=abs(V[i].nd-V[j].st)+1; x=x*x+c; if(j) { x+=dp[j-1]; ll y=abs(V[j].st-V[j-1].nd)+1; if(V[j].st<=V[j-1].nd) x-=y*y; } if(x<dp[i]) { dp[i]=x; ile[i]=1; if(j) ile[i]+=ile[j-1]; } } } } ll take_photos(int N, int M, int K, vector<int>r, vector<int>c) { ll n=N, m=M, k=K; vector<pair<int,int>>S; rep(i, n) { if(r[i]<=c[i]) S.pb({r[i], -c[i]}); else S.pb({c[i], -r[i]}); } sort(all(S)); int ma=-1; for(auto i : S) { if(ma>=-i.nd) continue; V.pb({i.st, -i.nd}); ma=max(ma, -i.nd); } ll po=0, ko=10000000000000; while(po<ko) { ll sr=(po+ko)/2; licz(sr); if(ile[V.size()-1]<=k) ko=sr; else po=sr+1; } licz(po); return dp[V.size()-1]-po*k; }
Compilation message
# | 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 | 204 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 | 1 ms | 204 KB | Correct answer: answer = 151 |
14 | Correct | 1 ms | 204 KB | Correct answer: answer = 7550 |
15 | Correct | 1 ms | 204 KB | Correct answer: answer = 7220 |
16 | Correct | 1 ms | 204 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 | 1 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 | 1 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 | 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 | 3 ms | 204 KB | Correct answer: answer = 77137 |
8 | Correct | 9 ms | 332 KB | Correct answer: answer = 764 |
9 | Correct | 12 ms | 332 KB | Correct answer: answer = 250000 |
10 | Correct | 13 ms | 332 KB | Correct answer: answer = 500 |
11 | Correct | 0 ms | 204 KB | Correct answer: answer = 32 |
12 | Correct | 17 ms | 340 KB | Correct answer: answer = 130050 |
13 | Correct | 12 ms | 332 KB | Correct answer: answer = 5110 |
14 | Correct | 6 ms | 204 KB | Correct answer: answer = 2626 |
15 | Correct | 4 ms | 204 KB | Correct answer: answer = 796 |
16 | Correct | 14 ms | 340 KB | Correct answer: answer = 7580 |
17 | Correct | 12 ms | 340 KB | Correct answer: answer = 1904 |
18 | Correct | 7 ms | 332 KB | Correct answer: answer = 996004 |
19 | Correct | 9 ms | 204 KB | Correct answer: answer = 38817 |
20 | Correct | 9 ms | 340 KB | Correct answer: answer = 4096 |
21 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
22 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
23 | Correct | 13 ms | 332 KB | Correct answer: answer = 2040 |
24 | Correct | 1 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 | 204 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 | 1 ms | 204 KB | Correct answer: answer = 151 |
14 | Correct | 1 ms | 204 KB | Correct answer: answer = 7550 |
15 | Correct | 1 ms | 204 KB | Correct answer: answer = 7220 |
16 | Correct | 1 ms | 204 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 | 1 ms | 204 KB | Correct answer: answer = 624 |
20 | Correct | 0 ms | 204 KB | Correct answer: answer = 10000 |
21 | Correct | 1 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 | 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 | 3 ms | 204 KB | Correct answer: answer = 77137 |
28 | Correct | 9 ms | 332 KB | Correct answer: answer = 764 |
29 | Correct | 12 ms | 332 KB | Correct answer: answer = 250000 |
30 | Correct | 13 ms | 332 KB | Correct answer: answer = 500 |
31 | Correct | 0 ms | 204 KB | Correct answer: answer = 32 |
32 | Correct | 17 ms | 340 KB | Correct answer: answer = 130050 |
33 | Correct | 12 ms | 332 KB | Correct answer: answer = 5110 |
34 | Correct | 6 ms | 204 KB | Correct answer: answer = 2626 |
35 | Correct | 4 ms | 204 KB | Correct answer: answer = 796 |
36 | Correct | 14 ms | 340 KB | Correct answer: answer = 7580 |
37 | Correct | 12 ms | 340 KB | Correct answer: answer = 1904 |
38 | Correct | 7 ms | 332 KB | Correct answer: answer = 996004 |
39 | Correct | 9 ms | 204 KB | Correct answer: answer = 38817 |
40 | Correct | 9 ms | 340 KB | Correct answer: answer = 4096 |
41 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
42 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
43 | Correct | 13 ms | 332 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 | 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 | 1 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 | 0 ms | 204 KB | Correct answer: answer = 484 |
57 | Correct | 1 ms | 204 KB | Correct answer: answer = 484 |
58 | Correct | 15 ms | 340 KB | Correct answer: answer = 63501 |
59 | Correct | 16 ms | 332 KB | Correct answer: answer = 323501 |
60 | Correct | 16 ms | 332 KB | Correct answer: answer = 752500 |
61 | Correct | 4 ms | 204 KB | Correct answer: answer = 761480 |
62 | Correct | 4 ms | 204 KB | Correct answer: answer = 758932 |
63 | Correct | 0 ms | 204 KB | Correct answer: answer = 1000000 |
64 | Correct | 18 ms | 204 KB | Correct answer: answer = 750500 |
65 | Correct | 1 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 | 1 ms | 204 KB | Correct answer: answer = 1000000 |
69 | Correct | 0 ms | 204 KB | Correct answer: answer = 994009 |
70 | Correct | 3 ms | 204 KB | Correct answer: answer = 59315 |
71 | Correct | 4 ms | 204 KB | Correct answer: answer = 25454 |
72 | Correct | 7 ms | 204 KB | Correct answer: answer = 1504 |
73 | Correct | 1 ms | 204 KB | Correct answer: answer = 37486 |
74 | Correct | 4 ms | 204 KB | Correct answer: answer = 4284 |
75 | Correct | 1 ms | 204 KB | Correct answer: answer = 158008 |
76 | Correct | 1 ms | 204 KB | Correct answer: answer = 51860 |
77 | Correct | 1 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 | 204 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 | 1 ms | 204 KB | Correct answer: answer = 151 |
14 | Correct | 1 ms | 204 KB | Correct answer: answer = 7550 |
15 | Correct | 1 ms | 204 KB | Correct answer: answer = 7220 |
16 | Correct | 1 ms | 204 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 | 1 ms | 204 KB | Correct answer: answer = 624 |
20 | Correct | 0 ms | 204 KB | Correct answer: answer = 10000 |
21 | Correct | 1 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 | 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 | 3 ms | 204 KB | Correct answer: answer = 77137 |
28 | Correct | 9 ms | 332 KB | Correct answer: answer = 764 |
29 | Correct | 12 ms | 332 KB | Correct answer: answer = 250000 |
30 | Correct | 13 ms | 332 KB | Correct answer: answer = 500 |
31 | Correct | 0 ms | 204 KB | Correct answer: answer = 32 |
32 | Correct | 17 ms | 340 KB | Correct answer: answer = 130050 |
33 | Correct | 12 ms | 332 KB | Correct answer: answer = 5110 |
34 | Correct | 6 ms | 204 KB | Correct answer: answer = 2626 |
35 | Correct | 4 ms | 204 KB | Correct answer: answer = 796 |
36 | Correct | 14 ms | 340 KB | Correct answer: answer = 7580 |
37 | Correct | 12 ms | 340 KB | Correct answer: answer = 1904 |
38 | Correct | 7 ms | 332 KB | Correct answer: answer = 996004 |
39 | Correct | 9 ms | 204 KB | Correct answer: answer = 38817 |
40 | Correct | 9 ms | 340 KB | Correct answer: answer = 4096 |
41 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
42 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
43 | Correct | 13 ms | 332 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 | 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 | 1 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 | 0 ms | 204 KB | Correct answer: answer = 484 |
57 | Correct | 1 ms | 204 KB | Correct answer: answer = 484 |
58 | Correct | 15 ms | 340 KB | Correct answer: answer = 63501 |
59 | Correct | 16 ms | 332 KB | Correct answer: answer = 323501 |
60 | Correct | 16 ms | 332 KB | Correct answer: answer = 752500 |
61 | Correct | 4 ms | 204 KB | Correct answer: answer = 761480 |
62 | Correct | 4 ms | 204 KB | Correct answer: answer = 758932 |
63 | Correct | 0 ms | 204 KB | Correct answer: answer = 1000000 |
64 | Correct | 18 ms | 204 KB | Correct answer: answer = 750500 |
65 | Correct | 1 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 | 1 ms | 204 KB | Correct answer: answer = 1000000 |
69 | Correct | 0 ms | 204 KB | Correct answer: answer = 994009 |
70 | Correct | 3 ms | 204 KB | Correct answer: answer = 59315 |
71 | Correct | 4 ms | 204 KB | Correct answer: answer = 25454 |
72 | Correct | 7 ms | 204 KB | Correct answer: answer = 1504 |
73 | Correct | 1 ms | 204 KB | Correct answer: answer = 37486 |
74 | Correct | 4 ms | 204 KB | Correct answer: answer = 4284 |
75 | Correct | 1 ms | 204 KB | Correct answer: answer = 158008 |
76 | Correct | 1 ms | 204 KB | Correct answer: answer = 51860 |
77 | Correct | 1 ms | 204 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 | 332 KB | Correct answer: answer = 995265560477 |
81 | Correct | 744 ms | 676 KB | Correct answer: answer = 10125000 |
82 | Correct | 751 ms | 588 KB | Correct answer: answer = 2291668 |
83 | Correct | 265 ms | 452 KB | Correct answer: answer = 42388 |
84 | Correct | 197 ms | 440 KB | Correct answer: answer = 10318 |
85 | Correct | 204 ms | 436 KB | Correct answer: answer = 3416 |
86 | Correct | 996 ms | 576 KB | Correct answer: answer = 331708193881 |
87 | Correct | 1016 ms | 568 KB | Correct answer: answer = 2861193756 |
88 | Correct | 997 ms | 568 KB | Correct answer: answer = 114646930 |
89 | Correct | 931 ms | 584 KB | Correct answer: answer = 9280921 |
90 | Correct | 1004 ms | 588 KB | Correct answer: answer = 999984053400 |
91 | Correct | 1172 ms | 564 KB | Correct answer: answer = 750935949134 |
92 | Correct | 1 ms | 332 KB | Correct answer: answer = 1000000000000 |
93 | Correct | 2 ms | 332 KB | Correct answer: answer = 998762383161 |
94 | Correct | 1125 ms | 584 KB | Correct answer: answer = 23017412908 |
95 | Correct | 2 ms | 332 KB | Correct answer: answer = 728143410622 |
96 | Correct | 1 ms | 332 KB | Correct answer: answer = 2 |
97 | Correct | 944 ms | 568 KB | Correct answer: answer = 1824916 |
98 | Correct | 777 ms | 588 KB | Correct answer: answer = 10680029 |
99 | Correct | 805 ms | 568 KB | Correct answer: answer = 18351700 |
100 | Correct | 890 ms | 580 KB | Correct answer: answer = 16040026 |
101 | Correct | 15 ms | 332 KB | Correct answer: answer = 253968628325 |
102 | Correct | 458 ms | 428 KB | Correct answer: answer = 10267 |
103 | Correct | 820 ms | 588 KB | Correct answer: answer = 2582408 |
104 | Correct | 2 ms | 332 KB | Correct answer: answer = 78024964781 |
105 | Correct | 2 ms | 332 KB | Correct answer: answer = 9866346457 |
106 | Correct | 20 ms | 332 KB | Correct answer: answer = 3327720949 |
107 | Correct | 6 ms | 432 KB | Correct answer: answer = 86064128360 |
108 | Correct | 42 ms | 420 KB | Correct answer: answer = 12698259150 |
109 | Correct | 649 ms | 544 KB | Correct answer: answer = 1185259288 |
# | 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 | 204 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 | 1 ms | 204 KB | Correct answer: answer = 151 |
14 | Correct | 1 ms | 204 KB | Correct answer: answer = 7550 |
15 | Correct | 1 ms | 204 KB | Correct answer: answer = 7220 |
16 | Correct | 1 ms | 204 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 | 1 ms | 204 KB | Correct answer: answer = 624 |
20 | Correct | 0 ms | 204 KB | Correct answer: answer = 10000 |
21 | Correct | 1 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 | 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 | 3 ms | 204 KB | Correct answer: answer = 77137 |
28 | Correct | 9 ms | 332 KB | Correct answer: answer = 764 |
29 | Correct | 12 ms | 332 KB | Correct answer: answer = 250000 |
30 | Correct | 13 ms | 332 KB | Correct answer: answer = 500 |
31 | Correct | 0 ms | 204 KB | Correct answer: answer = 32 |
32 | Correct | 17 ms | 340 KB | Correct answer: answer = 130050 |
33 | Correct | 12 ms | 332 KB | Correct answer: answer = 5110 |
34 | Correct | 6 ms | 204 KB | Correct answer: answer = 2626 |
35 | Correct | 4 ms | 204 KB | Correct answer: answer = 796 |
36 | Correct | 14 ms | 340 KB | Correct answer: answer = 7580 |
37 | Correct | 12 ms | 340 KB | Correct answer: answer = 1904 |
38 | Correct | 7 ms | 332 KB | Correct answer: answer = 996004 |
39 | Correct | 9 ms | 204 KB | Correct answer: answer = 38817 |
40 | Correct | 9 ms | 340 KB | Correct answer: answer = 4096 |
41 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
42 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
43 | Correct | 13 ms | 332 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 | 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 | 1 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 | 0 ms | 204 KB | Correct answer: answer = 484 |
57 | Correct | 1 ms | 204 KB | Correct answer: answer = 484 |
58 | Correct | 15 ms | 340 KB | Correct answer: answer = 63501 |
59 | Correct | 16 ms | 332 KB | Correct answer: answer = 323501 |
60 | Correct | 16 ms | 332 KB | Correct answer: answer = 752500 |
61 | Correct | 4 ms | 204 KB | Correct answer: answer = 761480 |
62 | Correct | 4 ms | 204 KB | Correct answer: answer = 758932 |
63 | Correct | 0 ms | 204 KB | Correct answer: answer = 1000000 |
64 | Correct | 18 ms | 204 KB | Correct answer: answer = 750500 |
65 | Correct | 1 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 | 1 ms | 204 KB | Correct answer: answer = 1000000 |
69 | Correct | 0 ms | 204 KB | Correct answer: answer = 994009 |
70 | Correct | 3 ms | 204 KB | Correct answer: answer = 59315 |
71 | Correct | 4 ms | 204 KB | Correct answer: answer = 25454 |
72 | Correct | 7 ms | 204 KB | Correct answer: answer = 1504 |
73 | Correct | 1 ms | 204 KB | Correct answer: answer = 37486 |
74 | Correct | 4 ms | 204 KB | Correct answer: answer = 4284 |
75 | Correct | 1 ms | 204 KB | Correct answer: answer = 158008 |
76 | Correct | 1 ms | 204 KB | Correct answer: answer = 51860 |
77 | Correct | 1 ms | 204 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 | 332 KB | Correct answer: answer = 995265560477 |
81 | Correct | 744 ms | 676 KB | Correct answer: answer = 10125000 |
82 | Correct | 751 ms | 588 KB | Correct answer: answer = 2291668 |
83 | Correct | 265 ms | 452 KB | Correct answer: answer = 42388 |
84 | Correct | 197 ms | 440 KB | Correct answer: answer = 10318 |
85 | Correct | 204 ms | 436 KB | Correct answer: answer = 3416 |
86 | Correct | 996 ms | 576 KB | Correct answer: answer = 331708193881 |
87 | Correct | 1016 ms | 568 KB | Correct answer: answer = 2861193756 |
88 | Correct | 997 ms | 568 KB | Correct answer: answer = 114646930 |
89 | Correct | 931 ms | 584 KB | Correct answer: answer = 9280921 |
90 | Correct | 1004 ms | 588 KB | Correct answer: answer = 999984053400 |
91 | Correct | 1172 ms | 564 KB | Correct answer: answer = 750935949134 |
92 | Correct | 1 ms | 332 KB | Correct answer: answer = 1000000000000 |
93 | Correct | 2 ms | 332 KB | Correct answer: answer = 998762383161 |
94 | Correct | 1125 ms | 584 KB | Correct answer: answer = 23017412908 |
95 | Correct | 2 ms | 332 KB | Correct answer: answer = 728143410622 |
96 | Correct | 1 ms | 332 KB | Correct answer: answer = 2 |
97 | Correct | 944 ms | 568 KB | Correct answer: answer = 1824916 |
98 | Correct | 777 ms | 588 KB | Correct answer: answer = 10680029 |
99 | Correct | 805 ms | 568 KB | Correct answer: answer = 18351700 |
100 | Correct | 890 ms | 580 KB | Correct answer: answer = 16040026 |
101 | Correct | 15 ms | 332 KB | Correct answer: answer = 253968628325 |
102 | Correct | 458 ms | 428 KB | Correct answer: answer = 10267 |
103 | Correct | 820 ms | 588 KB | Correct answer: answer = 2582408 |
104 | Correct | 2 ms | 332 KB | Correct answer: answer = 78024964781 |
105 | Correct | 2 ms | 332 KB | Correct answer: answer = 9866346457 |
106 | Correct | 20 ms | 332 KB | Correct answer: answer = 3327720949 |
107 | Correct | 6 ms | 432 KB | Correct answer: answer = 86064128360 |
108 | Correct | 42 ms | 420 KB | Correct answer: answer = 12698259150 |
109 | Correct | 649 ms | 544 KB | Correct answer: answer = 1185259288 |
110 | Correct | 21 ms | 1716 KB | Correct answer: answer = 999889968863 |
111 | Correct | 16 ms | 1728 KB | Correct answer: answer = 999861384931 |
112 | Correct | 17 ms | 1720 KB | Correct answer: answer = 999811809929 |
113 | Correct | 21 ms | 1736 KB | Correct answer: answer = 999869756441 |
114 | Execution timed out | 2075 ms | 3244 KB | Time limit exceeded |
115 | 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 | 204 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 | 1 ms | 204 KB | Correct answer: answer = 151 |
14 | Correct | 1 ms | 204 KB | Correct answer: answer = 7550 |
15 | Correct | 1 ms | 204 KB | Correct answer: answer = 7220 |
16 | Correct | 1 ms | 204 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 | 1 ms | 204 KB | Correct answer: answer = 624 |
20 | Correct | 0 ms | 204 KB | Correct answer: answer = 10000 |
21 | Correct | 1 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 | 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 | 3 ms | 204 KB | Correct answer: answer = 77137 |
28 | Correct | 9 ms | 332 KB | Correct answer: answer = 764 |
29 | Correct | 12 ms | 332 KB | Correct answer: answer = 250000 |
30 | Correct | 13 ms | 332 KB | Correct answer: answer = 500 |
31 | Correct | 0 ms | 204 KB | Correct answer: answer = 32 |
32 | Correct | 17 ms | 340 KB | Correct answer: answer = 130050 |
33 | Correct | 12 ms | 332 KB | Correct answer: answer = 5110 |
34 | Correct | 6 ms | 204 KB | Correct answer: answer = 2626 |
35 | Correct | 4 ms | 204 KB | Correct answer: answer = 796 |
36 | Correct | 14 ms | 340 KB | Correct answer: answer = 7580 |
37 | Correct | 12 ms | 340 KB | Correct answer: answer = 1904 |
38 | Correct | 7 ms | 332 KB | Correct answer: answer = 996004 |
39 | Correct | 9 ms | 204 KB | Correct answer: answer = 38817 |
40 | Correct | 9 ms | 340 KB | Correct answer: answer = 4096 |
41 | Correct | 0 ms | 204 KB | Correct answer: answer = 1 |
42 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
43 | Correct | 13 ms | 332 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 | 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 | 1 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 | 0 ms | 204 KB | Correct answer: answer = 484 |
57 | Correct | 1 ms | 204 KB | Correct answer: answer = 484 |
58 | Correct | 15 ms | 340 KB | Correct answer: answer = 63501 |
59 | Correct | 16 ms | 332 KB | Correct answer: answer = 323501 |
60 | Correct | 16 ms | 332 KB | Correct answer: answer = 752500 |
61 | Correct | 4 ms | 204 KB | Correct answer: answer = 761480 |
62 | Correct | 4 ms | 204 KB | Correct answer: answer = 758932 |
63 | Correct | 0 ms | 204 KB | Correct answer: answer = 1000000 |
64 | Correct | 18 ms | 204 KB | Correct answer: answer = 750500 |
65 | Correct | 1 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 | 1 ms | 204 KB | Correct answer: answer = 1000000 |
69 | Correct | 0 ms | 204 KB | Correct answer: answer = 994009 |
70 | Correct | 3 ms | 204 KB | Correct answer: answer = 59315 |
71 | Correct | 4 ms | 204 KB | Correct answer: answer = 25454 |
72 | Correct | 7 ms | 204 KB | Correct answer: answer = 1504 |
73 | Correct | 1 ms | 204 KB | Correct answer: answer = 37486 |
74 | Correct | 4 ms | 204 KB | Correct answer: answer = 4284 |
75 | Correct | 1 ms | 204 KB | Correct answer: answer = 158008 |
76 | Correct | 1 ms | 204 KB | Correct answer: answer = 51860 |
77 | Correct | 1 ms | 204 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 | 332 KB | Correct answer: answer = 995265560477 |
81 | Correct | 744 ms | 676 KB | Correct answer: answer = 10125000 |
82 | Correct | 751 ms | 588 KB | Correct answer: answer = 2291668 |
83 | Correct | 265 ms | 452 KB | Correct answer: answer = 42388 |
84 | Correct | 197 ms | 440 KB | Correct answer: answer = 10318 |
85 | Correct | 204 ms | 436 KB | Correct answer: answer = 3416 |
86 | Correct | 996 ms | 576 KB | Correct answer: answer = 331708193881 |
87 | Correct | 1016 ms | 568 KB | Correct answer: answer = 2861193756 |
88 | Correct | 997 ms | 568 KB | Correct answer: answer = 114646930 |
89 | Correct | 931 ms | 584 KB | Correct answer: answer = 9280921 |
90 | Correct | 1004 ms | 588 KB | Correct answer: answer = 999984053400 |
91 | Correct | 1172 ms | 564 KB | Correct answer: answer = 750935949134 |
92 | Correct | 1 ms | 332 KB | Correct answer: answer = 1000000000000 |
93 | Correct | 2 ms | 332 KB | Correct answer: answer = 998762383161 |
94 | Correct | 1125 ms | 584 KB | Correct answer: answer = 23017412908 |
95 | Correct | 2 ms | 332 KB | Correct answer: answer = 728143410622 |
96 | Correct | 1 ms | 332 KB | Correct answer: answer = 2 |
97 | Correct | 944 ms | 568 KB | Correct answer: answer = 1824916 |
98 | Correct | 777 ms | 588 KB | Correct answer: answer = 10680029 |
99 | Correct | 805 ms | 568 KB | Correct answer: answer = 18351700 |
100 | Correct | 890 ms | 580 KB | Correct answer: answer = 16040026 |
101 | Correct | 15 ms | 332 KB | Correct answer: answer = 253968628325 |
102 | Correct | 458 ms | 428 KB | Correct answer: answer = 10267 |
103 | Correct | 820 ms | 588 KB | Correct answer: answer = 2582408 |
104 | Correct | 2 ms | 332 KB | Correct answer: answer = 78024964781 |
105 | Correct | 2 ms | 332 KB | Correct answer: answer = 9866346457 |
106 | Correct | 20 ms | 332 KB | Correct answer: answer = 3327720949 |
107 | Correct | 6 ms | 432 KB | Correct answer: answer = 86064128360 |
108 | Correct | 42 ms | 420 KB | Correct answer: answer = 12698259150 |
109 | Correct | 649 ms | 544 KB | Correct answer: answer = 1185259288 |
110 | Correct | 21 ms | 1716 KB | Correct answer: answer = 999889968863 |
111 | Correct | 16 ms | 1728 KB | Correct answer: answer = 999861384931 |
112 | Correct | 17 ms | 1720 KB | Correct answer: answer = 999811809929 |
113 | Correct | 21 ms | 1736 KB | Correct answer: answer = 999869756441 |
114 | Execution timed out | 2075 ms | 3244 KB | Time limit exceeded |
115 | Halted | 0 ms | 0 KB | - |