# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
429277 | 2021-06-15T19:55:33 Z | JeanBombeur | Aliens (IOI16_aliens) | C++17 | 2 ms | 332 KB |
#include <iostream> #include <cstdio> #include <vector> #include <algorithm> #include <bits/stdc++.h> #include "aliens.h" using namespace std; // <|°_°|> const int MAX_POINTS = (100 * 1000); const int LOG = (40); struct droite { long long pente, cst; int prix; }; pair <long long, long long> Points[MAX_POINTS]; pair <int, int> Aliens[MAX_POINTS]; droite Deque[MAX_POINTS]; int deb = 0, fin = 0; int nbPoints = 0; void Insert(droite a) { while (fin > deb + 1 && make_pair((a.cst - Deque[fin - 1].cst) * (Deque[fin - 2].pente - Deque[fin - 1].pente), a.prix) < make_pair((Deque[fin - 1].pente - a.pente) * (Deque[fin - 1].cst - Deque[fin - 2].cst), Deque[fin - 1].prix)) fin --; Deque[fin ++] = a; return; } pair <long long, int> GetMin(long long absc) { while (fin > deb + 1 && make_pair(absc * Deque[deb].pente + Deque[deb].cst, Deque[deb].prix) > make_pair(absc * Deque[deb + 1].pente + Deque[deb + 1].cst, Deque[deb + 1].prix)) deb ++; return {Deque[deb].pente * absc + Deque[deb].cst, Deque[deb].prix}; } pair <long long, int> FindDP(long long lambda) { deb = 0, fin = 0; pair <long long, int> DP = {0LL, 0}; // Insert({- 2 * Points[0].first, Points[0].first * Points[0].first, 0}); for (int i = 0; i < nbPoints; i ++) { long long d1 = 0, d2 = Points[i].first; if (i > 0) d1 = max(0LL, Points[i - 1].second - Points[i].first); Insert({-2 * d2, DP.first - d1 * d1 + d2 * d2, DP.second}); DP = GetMin(Points[i].second); DP.first += Points[i].second * Points[i].second + lambda; DP.second ++; } return DP; } long long take_photos(int nbAliens, int tailleMax, int nbPhotos, vector<int> Lignes, vector<int> Colonnes) { tailleMax ++; for (int i = 0; i < nbAliens; i ++) { if (Lignes[i] > Colonnes[i]) swap(Lignes[i], Colonnes[i]); Aliens[i] = {Colonnes[i] + 1, Lignes[i]}; } sort(Aliens, Aliens + nbAliens); for (int i = 0; i < nbAliens; i ++) { while (nbPoints > 0 && Aliens[i].second <= (int)Points[nbPoints - 1].second) nbPoints --; Points[nbPoints ++] = Aliens[i]; } for (int i = 0; i < nbPoints; i ++) { swap(Points[i].first, Points[i].second); } long long lambda = -1; long long ans = 0; long long gauche = 0, droite = tailleMax * tailleMax; while (gauche <= droite) { long long milieu = (gauche + droite) / 2; pair <long long, int> dp = FindDP(milieu); if (dp.second <= nbPhotos) { ans = dp.first; droite = milieu - 1; } else gauche = milieu + 1; } return ans - gauche * nbPhotos; /*for (long long i = (1LL << LOG); i > 0; i /= 2) { pair <long long, int> DP = FindDP(lambda + i); if (DP.second <= nbPhotos) ans = DP.first - (lambda + i) * DP.second; else lambda += i; } return ans;*/ }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
2 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
3 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
4 | Correct | 1 ms | 204 KB | Correct answer: answer = 12 |
5 | Correct | 1 ms | 204 KB | Correct answer: answer = 52 |
6 | Correct | 1 ms | 204 KB | Correct answer: answer = 210 |
7 | Correct | 1 ms | 204 KB | Correct answer: answer = 88 |
8 | Correct | 1 ms | 204 KB | Correct answer: answer = 7696 |
9 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
10 | Correct | 1 ms | 204 KB | Correct answer: answer = 2374 |
11 | Correct | 1 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 | 1 ms | 268 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 |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
2 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
3 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
4 | Correct | 1 ms | 204 KB | Correct answer: answer = 5 |
5 | Correct | 0 ms | 204 KB | Correct answer: answer = 41 |
6 | Correct | 1 ms | 204 KB | Correct answer: answer = 71923 |
7 | Correct | 1 ms | 204 KB | Correct answer: answer = 77137 |
8 | Correct | 1 ms | 332 KB | Correct answer: answer = 764 |
9 | Correct | 1 ms | 204 KB | Correct answer: answer = 250000 |
10 | Correct | 1 ms | 332 KB | Correct answer: answer = 500 |
11 | Correct | 1 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 | 1 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 | 204 KB | Correct answer: answer = 996004 |
19 | Correct | 1 ms | 204 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 | 1 ms | 204 KB | Correct answer: answer = 1 |
23 | Correct | 1 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 | 1 ms | 204 KB | Correct answer: answer = 4 |
2 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
3 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
4 | Correct | 1 ms | 204 KB | Correct answer: answer = 12 |
5 | Correct | 1 ms | 204 KB | Correct answer: answer = 52 |
6 | Correct | 1 ms | 204 KB | Correct answer: answer = 210 |
7 | Correct | 1 ms | 204 KB | Correct answer: answer = 88 |
8 | Correct | 1 ms | 204 KB | Correct answer: answer = 7696 |
9 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
10 | Correct | 1 ms | 204 KB | Correct answer: answer = 2374 |
11 | Correct | 1 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 | 1 ms | 268 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 | 1 ms | 204 KB | Correct answer: answer = 1 |
22 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
23 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
24 | Correct | 1 ms | 204 KB | Correct answer: answer = 5 |
25 | Correct | 0 ms | 204 KB | Correct answer: answer = 41 |
26 | Correct | 1 ms | 204 KB | Correct answer: answer = 71923 |
27 | Correct | 1 ms | 204 KB | Correct answer: answer = 77137 |
28 | Correct | 1 ms | 332 KB | Correct answer: answer = 764 |
29 | Correct | 1 ms | 204 KB | Correct answer: answer = 250000 |
30 | Correct | 1 ms | 332 KB | Correct answer: answer = 500 |
31 | Correct | 1 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 | 1 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 | 204 KB | Correct answer: answer = 996004 |
39 | Correct | 1 ms | 204 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 | 1 ms | 204 KB | Correct answer: answer = 1 |
43 | Correct | 1 ms | 332 KB | Correct answer: answer = 2040 |
44 | Correct | 1 ms | 204 KB | Correct answer: answer = 2 |
45 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
46 | Correct | 1 ms | 204 KB | Correct answer: answer = 9 |
47 | Correct | 1 ms | 204 KB | Correct answer: answer = 9 |
48 | Correct | 1 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 | 1 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 | 204 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 | 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 | 1 ms | 204 KB | Correct answer: answer = 1000000 |
66 | Correct | 1 ms | 204 KB | Correct answer: answer = 250000 |
67 | Correct | 1 ms | 204 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 | 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 | 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 | 1 ms | 204 KB | Correct answer: answer = 4 |
2 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
3 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
4 | Correct | 1 ms | 204 KB | Correct answer: answer = 12 |
5 | Correct | 1 ms | 204 KB | Correct answer: answer = 52 |
6 | Correct | 1 ms | 204 KB | Correct answer: answer = 210 |
7 | Correct | 1 ms | 204 KB | Correct answer: answer = 88 |
8 | Correct | 1 ms | 204 KB | Correct answer: answer = 7696 |
9 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
10 | Correct | 1 ms | 204 KB | Correct answer: answer = 2374 |
11 | Correct | 1 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 | 1 ms | 268 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 | 1 ms | 204 KB | Correct answer: answer = 1 |
22 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
23 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
24 | Correct | 1 ms | 204 KB | Correct answer: answer = 5 |
25 | Correct | 0 ms | 204 KB | Correct answer: answer = 41 |
26 | Correct | 1 ms | 204 KB | Correct answer: answer = 71923 |
27 | Correct | 1 ms | 204 KB | Correct answer: answer = 77137 |
28 | Correct | 1 ms | 332 KB | Correct answer: answer = 764 |
29 | Correct | 1 ms | 204 KB | Correct answer: answer = 250000 |
30 | Correct | 1 ms | 332 KB | Correct answer: answer = 500 |
31 | Correct | 1 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 | 1 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 | 204 KB | Correct answer: answer = 996004 |
39 | Correct | 1 ms | 204 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 | 1 ms | 204 KB | Correct answer: answer = 1 |
43 | Correct | 1 ms | 332 KB | Correct answer: answer = 2040 |
44 | Correct | 1 ms | 204 KB | Correct answer: answer = 2 |
45 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
46 | Correct | 1 ms | 204 KB | Correct answer: answer = 9 |
47 | Correct | 1 ms | 204 KB | Correct answer: answer = 9 |
48 | Correct | 1 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 | 1 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 | 204 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 | 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 | 1 ms | 204 KB | Correct answer: answer = 1000000 |
66 | Correct | 1 ms | 204 KB | Correct answer: answer = 250000 |
67 | Correct | 1 ms | 204 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 | 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 | 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 | Incorrect | 2 ms | 332 KB | Wrong answer: output = 1450759932, expected = 997864126212 |
79 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
2 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
3 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
4 | Correct | 1 ms | 204 KB | Correct answer: answer = 12 |
5 | Correct | 1 ms | 204 KB | Correct answer: answer = 52 |
6 | Correct | 1 ms | 204 KB | Correct answer: answer = 210 |
7 | Correct | 1 ms | 204 KB | Correct answer: answer = 88 |
8 | Correct | 1 ms | 204 KB | Correct answer: answer = 7696 |
9 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
10 | Correct | 1 ms | 204 KB | Correct answer: answer = 2374 |
11 | Correct | 1 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 | 1 ms | 268 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 | 1 ms | 204 KB | Correct answer: answer = 1 |
22 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
23 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
24 | Correct | 1 ms | 204 KB | Correct answer: answer = 5 |
25 | Correct | 0 ms | 204 KB | Correct answer: answer = 41 |
26 | Correct | 1 ms | 204 KB | Correct answer: answer = 71923 |
27 | Correct | 1 ms | 204 KB | Correct answer: answer = 77137 |
28 | Correct | 1 ms | 332 KB | Correct answer: answer = 764 |
29 | Correct | 1 ms | 204 KB | Correct answer: answer = 250000 |
30 | Correct | 1 ms | 332 KB | Correct answer: answer = 500 |
31 | Correct | 1 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 | 1 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 | 204 KB | Correct answer: answer = 996004 |
39 | Correct | 1 ms | 204 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 | 1 ms | 204 KB | Correct answer: answer = 1 |
43 | Correct | 1 ms | 332 KB | Correct answer: answer = 2040 |
44 | Correct | 1 ms | 204 KB | Correct answer: answer = 2 |
45 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
46 | Correct | 1 ms | 204 KB | Correct answer: answer = 9 |
47 | Correct | 1 ms | 204 KB | Correct answer: answer = 9 |
48 | Correct | 1 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 | 1 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 | 204 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 | 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 | 1 ms | 204 KB | Correct answer: answer = 1000000 |
66 | Correct | 1 ms | 204 KB | Correct answer: answer = 250000 |
67 | Correct | 1 ms | 204 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 | 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 | 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 | Incorrect | 2 ms | 332 KB | Wrong answer: output = 1450759932, expected = 997864126212 |
79 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
2 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
3 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
4 | Correct | 1 ms | 204 KB | Correct answer: answer = 12 |
5 | Correct | 1 ms | 204 KB | Correct answer: answer = 52 |
6 | Correct | 1 ms | 204 KB | Correct answer: answer = 210 |
7 | Correct | 1 ms | 204 KB | Correct answer: answer = 88 |
8 | Correct | 1 ms | 204 KB | Correct answer: answer = 7696 |
9 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
10 | Correct | 1 ms | 204 KB | Correct answer: answer = 2374 |
11 | Correct | 1 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 | 1 ms | 268 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 | 1 ms | 204 KB | Correct answer: answer = 1 |
22 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
23 | Correct | 1 ms | 204 KB | Correct answer: answer = 1 |
24 | Correct | 1 ms | 204 KB | Correct answer: answer = 5 |
25 | Correct | 0 ms | 204 KB | Correct answer: answer = 41 |
26 | Correct | 1 ms | 204 KB | Correct answer: answer = 71923 |
27 | Correct | 1 ms | 204 KB | Correct answer: answer = 77137 |
28 | Correct | 1 ms | 332 KB | Correct answer: answer = 764 |
29 | Correct | 1 ms | 204 KB | Correct answer: answer = 250000 |
30 | Correct | 1 ms | 332 KB | Correct answer: answer = 500 |
31 | Correct | 1 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 | 1 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 | 204 KB | Correct answer: answer = 996004 |
39 | Correct | 1 ms | 204 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 | 1 ms | 204 KB | Correct answer: answer = 1 |
43 | Correct | 1 ms | 332 KB | Correct answer: answer = 2040 |
44 | Correct | 1 ms | 204 KB | Correct answer: answer = 2 |
45 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
46 | Correct | 1 ms | 204 KB | Correct answer: answer = 9 |
47 | Correct | 1 ms | 204 KB | Correct answer: answer = 9 |
48 | Correct | 1 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 | 1 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 | 204 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 | 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 | 1 ms | 204 KB | Correct answer: answer = 1000000 |
66 | Correct | 1 ms | 204 KB | Correct answer: answer = 250000 |
67 | Correct | 1 ms | 204 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 | 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 | 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 | Incorrect | 2 ms | 332 KB | Wrong answer: output = 1450759932, expected = 997864126212 |
79 | Halted | 0 ms | 0 KB | - |