# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
426405 | 2021-06-14T00:32:57 Z | ngrace | Aliens (IOI16_aliens) | C++14 | 142 ms | 2292 KB |
#include "aliens.h" #include <vector> #include <iostream> #include <utility> #include <algorithm> #include <set> #include <limits.h> using namespace std; #define v vector #define pii pair<int,int> #define fi first #define se second #define ll long long int N,K; v<pii> pos; v<v<long long>> memo; long long diagSolve(int cur, int k){//cover first cur with k photos if(memo[cur][k]!=-1) return memo[cur][k]; if(cur==0) return memo[cur][k] = 0; if(k==0) return LLONG_MAX/2; long long ret=LLONG_MAX/2; for(int i=0;i<cur;i++){ long long curArea=(pos[cur-1].se-pos[i].fi+1) * (pos[cur-1].se-pos[i].fi+1); //check for intersection with prev: if(i!=0){ long long length = max(0, pos[i-1].se-pos[i].fi+1); curArea-=length*length; } long long take = diagSolve(i,k-1); if(take+curArea<ret) ret=take+curArea; } return memo[cur][k] = ret; } long long take_photos(int n, int m, int k, std::vector<int> r, std::vector<int> c) { set<pii> tmp; for(int i=0;i<n;i++){ tmp.insert({min(r[i],c[i]),-max(c[i],r[i])}); } for(pii it:tmp){ if(pos.size()==0) { pos.push_back({it.fi,-it.se}); continue; } if(it.fi<=pos.back().se && -it.se<=pos.back().se) continue; pos.push_back({it.fi,-it.se}); } N=pos.size(); K=k; //top down: //memo=v<v<ll>>(N+1,v<long long>(k+1,-1)); //return diagSolve(N,k); //bottom up: for convex hull soon: memo=v<v<ll>>(K+1,v<ll>(N+1,-1)); for(int i=0;i<=K;i++) memo[i][0]=0; for(int i=1;i<=N;i++) memo[0][i]=LLONG_MAX/2; for(k=1;k<=K;k++){ for(int i=1;i<=N;i++){ long long val=LLONG_MAX/2; for(int j=0;j<i;j++){ long long curArea=(pos[i-1].se-pos[j].fi+1) * (pos[i-1].se-pos[j].fi+1); //check for intersection with prev: if(j!=0){ long long length = max(0, pos[j-1].se-pos[j].fi+1); curArea-=length*length; } long long take = memo[k-1][j]; if(take+curArea<val) val=take+curArea; } memo[k][i]=val; } } return memo[K][N]; }
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
2 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
3 | Correct | 0 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 | 1 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 | 204 KB | Correct answer: answer = 10000 |
18 | Correct | 1 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 | 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 | 1 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 | 46 ms | 1100 KB | Correct answer: answer = 764 |
9 | Correct | 1 ms | 332 KB | Correct answer: answer = 250000 |
10 | Correct | 142 ms | 2252 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 | 15 ms | 524 KB | Correct answer: answer = 5110 |
14 | Correct | 3 ms | 332 KB | Correct answer: answer = 2626 |
15 | Correct | 7 ms | 460 KB | Correct answer: answer = 796 |
16 | Correct | 10 ms | 460 KB | Correct answer: answer = 7580 |
17 | Correct | 38 ms | 844 KB | Correct answer: answer = 1904 |
18 | Correct | 1 ms | 332 KB | Correct answer: answer = 996004 |
19 | Correct | 5 ms | 332 KB | Correct answer: answer = 38817 |
20 | Correct | 18 ms | 636 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 | 36 ms | 716 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 | 1 ms | 204 KB | Correct answer: answer = 4 |
3 | Correct | 0 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 | 1 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 | 204 KB | Correct answer: answer = 10000 |
18 | Correct | 1 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 | 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 | 1 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 | 46 ms | 1100 KB | Correct answer: answer = 764 |
29 | Correct | 1 ms | 332 KB | Correct answer: answer = 250000 |
30 | Correct | 142 ms | 2252 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 | 15 ms | 524 KB | Correct answer: answer = 5110 |
34 | Correct | 3 ms | 332 KB | Correct answer: answer = 2626 |
35 | Correct | 7 ms | 460 KB | Correct answer: answer = 796 |
36 | Correct | 10 ms | 460 KB | Correct answer: answer = 7580 |
37 | Correct | 38 ms | 844 KB | Correct answer: answer = 1904 |
38 | Correct | 1 ms | 332 KB | Correct answer: answer = 996004 |
39 | Correct | 5 ms | 332 KB | Correct answer: answer = 38817 |
40 | Correct | 18 ms | 636 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 | 36 ms | 716 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 | 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 | 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 | 292 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 | 2 ms | 332 KB | Correct answer: answer = 63501 |
59 | Correct | 7 ms | 332 KB | Correct answer: answer = 323501 |
60 | Correct | 29 ms | 716 KB | Correct answer: answer = 752500 |
61 | Correct | 3 ms | 332 KB | Correct answer: answer = 761480 |
62 | Correct | 14 ms | 704 KB | Correct answer: answer = 758932 |
63 | Correct | 1 ms | 204 KB | Correct answer: answer = 1000000 |
64 | Correct | 141 ms | 2292 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 | 244 KB | Correct answer: answer = 250000 |
68 | Correct | 1 ms | 332 KB | Correct answer: answer = 1000000 |
69 | Correct | 1 ms | 204 KB | Correct answer: answer = 994009 |
70 | Correct | 2 ms | 332 KB | Correct answer: answer = 59315 |
71 | Correct | 4 ms | 444 KB | Correct answer: answer = 25454 |
72 | Correct | 17 ms | 680 KB | Correct answer: answer = 1504 |
73 | Correct | 1 ms | 204 KB | Correct answer: answer = 37486 |
74 | Correct | 9 ms | 524 KB | Correct answer: answer = 4284 |
75 | Correct | 2 ms | 460 KB | Correct answer: answer = 158008 |
76 | Correct | 2 ms | 332 KB | Correct answer: answer = 51860 |
77 | Correct | 1 ms | 332 KB | Correct answer: answer = 12985 |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 204 KB | Correct answer: answer = 4 |
2 | Correct | 1 ms | 204 KB | Correct answer: answer = 4 |
3 | Correct | 0 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 | 1 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 | 204 KB | Correct answer: answer = 10000 |
18 | Correct | 1 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 | 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 | 1 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 | 46 ms | 1100 KB | Correct answer: answer = 764 |
29 | Correct | 1 ms | 332 KB | Correct answer: answer = 250000 |
30 | Correct | 142 ms | 2252 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 | 15 ms | 524 KB | Correct answer: answer = 5110 |
34 | Correct | 3 ms | 332 KB | Correct answer: answer = 2626 |
35 | Correct | 7 ms | 460 KB | Correct answer: answer = 796 |
36 | Correct | 10 ms | 460 KB | Correct answer: answer = 7580 |
37 | Correct | 38 ms | 844 KB | Correct answer: answer = 1904 |
38 | Correct | 1 ms | 332 KB | Correct answer: answer = 996004 |
39 | Correct | 5 ms | 332 KB | Correct answer: answer = 38817 |
40 | Correct | 18 ms | 636 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 | 36 ms | 716 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 | 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 | 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 | 292 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 | 2 ms | 332 KB | Correct answer: answer = 63501 |
59 | Correct | 7 ms | 332 KB | Correct answer: answer = 323501 |
60 | Correct | 29 ms | 716 KB | Correct answer: answer = 752500 |
61 | Correct | 3 ms | 332 KB | Correct answer: answer = 761480 |
62 | Correct | 14 ms | 704 KB | Correct answer: answer = 758932 |
63 | Correct | 1 ms | 204 KB | Correct answer: answer = 1000000 |
64 | Correct | 141 ms | 2292 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 | 244 KB | Correct answer: answer = 250000 |
68 | Correct | 1 ms | 332 KB | Correct answer: answer = 1000000 |
69 | Correct | 1 ms | 204 KB | Correct answer: answer = 994009 |
70 | Correct | 2 ms | 332 KB | Correct answer: answer = 59315 |
71 | Correct | 4 ms | 444 KB | Correct answer: answer = 25454 |
72 | Correct | 17 ms | 680 KB | Correct answer: answer = 1504 |
73 | Correct | 1 ms | 204 KB | Correct answer: answer = 37486 |
74 | Correct | 9 ms | 524 KB | Correct answer: answer = 4284 |
75 | Correct | 2 ms | 460 KB | Correct answer: answer = 158008 |
76 | Correct | 2 ms | 332 KB | Correct answer: answer = 51860 |
77 | Correct | 1 ms | 332 KB | Correct answer: answer = 12985 |
78 | Incorrect | 2 ms | 460 KB | Wrong answer: output = -2819885059034, 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 | 1 ms | 204 KB | Correct answer: answer = 4 |
3 | Correct | 0 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 | 1 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 | 204 KB | Correct answer: answer = 10000 |
18 | Correct | 1 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 | 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 | 1 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 | 46 ms | 1100 KB | Correct answer: answer = 764 |
29 | Correct | 1 ms | 332 KB | Correct answer: answer = 250000 |
30 | Correct | 142 ms | 2252 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 | 15 ms | 524 KB | Correct answer: answer = 5110 |
34 | Correct | 3 ms | 332 KB | Correct answer: answer = 2626 |
35 | Correct | 7 ms | 460 KB | Correct answer: answer = 796 |
36 | Correct | 10 ms | 460 KB | Correct answer: answer = 7580 |
37 | Correct | 38 ms | 844 KB | Correct answer: answer = 1904 |
38 | Correct | 1 ms | 332 KB | Correct answer: answer = 996004 |
39 | Correct | 5 ms | 332 KB | Correct answer: answer = 38817 |
40 | Correct | 18 ms | 636 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 | 36 ms | 716 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 | 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 | 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 | 292 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 | 2 ms | 332 KB | Correct answer: answer = 63501 |
59 | Correct | 7 ms | 332 KB | Correct answer: answer = 323501 |
60 | Correct | 29 ms | 716 KB | Correct answer: answer = 752500 |
61 | Correct | 3 ms | 332 KB | Correct answer: answer = 761480 |
62 | Correct | 14 ms | 704 KB | Correct answer: answer = 758932 |
63 | Correct | 1 ms | 204 KB | Correct answer: answer = 1000000 |
64 | Correct | 141 ms | 2292 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 | 244 KB | Correct answer: answer = 250000 |
68 | Correct | 1 ms | 332 KB | Correct answer: answer = 1000000 |
69 | Correct | 1 ms | 204 KB | Correct answer: answer = 994009 |
70 | Correct | 2 ms | 332 KB | Correct answer: answer = 59315 |
71 | Correct | 4 ms | 444 KB | Correct answer: answer = 25454 |
72 | Correct | 17 ms | 680 KB | Correct answer: answer = 1504 |
73 | Correct | 1 ms | 204 KB | Correct answer: answer = 37486 |
74 | Correct | 9 ms | 524 KB | Correct answer: answer = 4284 |
75 | Correct | 2 ms | 460 KB | Correct answer: answer = 158008 |
76 | Correct | 2 ms | 332 KB | Correct answer: answer = 51860 |
77 | Correct | 1 ms | 332 KB | Correct answer: answer = 12985 |
78 | Incorrect | 2 ms | 460 KB | Wrong answer: output = -2819885059034, 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 | 1 ms | 204 KB | Correct answer: answer = 4 |
3 | Correct | 0 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 | 1 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 | 204 KB | Correct answer: answer = 10000 |
18 | Correct | 1 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 | 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 | 1 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 | 46 ms | 1100 KB | Correct answer: answer = 764 |
29 | Correct | 1 ms | 332 KB | Correct answer: answer = 250000 |
30 | Correct | 142 ms | 2252 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 | 15 ms | 524 KB | Correct answer: answer = 5110 |
34 | Correct | 3 ms | 332 KB | Correct answer: answer = 2626 |
35 | Correct | 7 ms | 460 KB | Correct answer: answer = 796 |
36 | Correct | 10 ms | 460 KB | Correct answer: answer = 7580 |
37 | Correct | 38 ms | 844 KB | Correct answer: answer = 1904 |
38 | Correct | 1 ms | 332 KB | Correct answer: answer = 996004 |
39 | Correct | 5 ms | 332 KB | Correct answer: answer = 38817 |
40 | Correct | 18 ms | 636 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 | 36 ms | 716 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 | 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 | 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 | 292 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 | 2 ms | 332 KB | Correct answer: answer = 63501 |
59 | Correct | 7 ms | 332 KB | Correct answer: answer = 323501 |
60 | Correct | 29 ms | 716 KB | Correct answer: answer = 752500 |
61 | Correct | 3 ms | 332 KB | Correct answer: answer = 761480 |
62 | Correct | 14 ms | 704 KB | Correct answer: answer = 758932 |
63 | Correct | 1 ms | 204 KB | Correct answer: answer = 1000000 |
64 | Correct | 141 ms | 2292 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 | 244 KB | Correct answer: answer = 250000 |
68 | Correct | 1 ms | 332 KB | Correct answer: answer = 1000000 |
69 | Correct | 1 ms | 204 KB | Correct answer: answer = 994009 |
70 | Correct | 2 ms | 332 KB | Correct answer: answer = 59315 |
71 | Correct | 4 ms | 444 KB | Correct answer: answer = 25454 |
72 | Correct | 17 ms | 680 KB | Correct answer: answer = 1504 |
73 | Correct | 1 ms | 204 KB | Correct answer: answer = 37486 |
74 | Correct | 9 ms | 524 KB | Correct answer: answer = 4284 |
75 | Correct | 2 ms | 460 KB | Correct answer: answer = 158008 |
76 | Correct | 2 ms | 332 KB | Correct answer: answer = 51860 |
77 | Correct | 1 ms | 332 KB | Correct answer: answer = 12985 |
78 | Incorrect | 2 ms | 460 KB | Wrong answer: output = -2819885059034, expected = 997864126212 |
79 | Halted | 0 ms | 0 KB | - |