# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
48720 | 2018-05-18T09:24:31 Z | faustaadp | Aliens (IOI16_aliens) | C++17 | 192 ms | 7180 KB |
#include<bits/stdc++.h> #define ll long long #define pb push_back #define mp make_pair #define fi first #define se second using namespace std; #include "aliens.h" ll d[550][1010],i,j,b[1010],te,N,me[1010][1010]; pair<ll,ll> a[1010]; ll inter(ll aa,ll bb) { if(bb==N+1) return 0; if(a[aa].se<a[bb].fi||a[aa]==a[bb]) return 0; return (a[bb].fi-a[aa].se-1)*(a[bb].fi-a[aa].se-1); } ll depe(ll aa,ll bb) { if(aa==N+1) return 0; if(bb<=0) return 1e18; if(d[aa][bb]==-1) { d[aa][bb]=1e18; ll ii,L=aa,R=N,C1,C2,CC1,CC2; while(R-L>1000) { C1=L+(R-L)/3; C2=R-(R-L)/3; CC1=depe(C1+1,bb-1)+(a[C1].se-a[aa].fi+1)*(a[C1].se-a[aa].fi+1)-inter(C1,C1+1); CC2=depe(C2+1,bb-1)+(a[C2].se-a[aa].fi+1)*(a[C2].se-a[aa].fi+1)-inter(C2,C2+1); if(CC1<CC2) R=C2-1; else L=C1+1; d[aa][bb]=min(d[aa][bb],min(CC1,CC2)); } for(ii=L;ii<=R;ii++) d[aa][bb]=min(d[aa][bb],depe(ii+1,bb-1)+(a[ii].se-a[aa].fi+1)*(a[ii].se-a[aa].fi+1)-inter(ii,ii+1)); } return d[aa][bb]; } long long take_photos(int n, int m, int k, std::vector<int> r, std::vector<int> c) { for(i=0;i<n;i++) for(j=0;j<n;j++) { ll Ki=min(r[i],c[i]); ll Ka=max(r[i],c[i]); if(Ki==min(r[j],c[j])&&Ka==max(r[j],c[j])) continue; if(i==j) continue; if(Ki<r[j]&&r[j]<Ka&&Ki<c[j]&&c[j]<Ka) b[j]=1; } for(i=0;i<n;i++) if(!b[i]&&me[min(c[i],r[i])][max(r[i],c[i])]==0) { te++; a[te]=mp(min(r[i],c[i]),max(r[i],c[i])); me[min(c[i],r[i])][max(r[i],c[i])]=1; } memset(d,-1,sizeof(d)); N=te; sort(a+1,a+1+N); for(i=1;i<N;i++) if(a[i].se>a[i+1].se) while(1); // for(i=1;i<=N;i++) // cout<<a[i].fi<<" "<<a[i].se<<"\n"; // cout<<N<<"\n"; return depe(1,k); }
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 4728 KB | Correct answer: answer = 4 |
2 | Correct | 5 ms | 4840 KB | Correct answer: answer = 4 |
3 | Correct | 5 ms | 4840 KB | Correct answer: answer = 4 |
4 | Correct | 5 ms | 4848 KB | Correct answer: answer = 12 |
5 | Correct | 5 ms | 4888 KB | Correct answer: answer = 52 |
6 | Correct | 5 ms | 4888 KB | Correct answer: answer = 210 |
7 | Correct | 5 ms | 4888 KB | Correct answer: answer = 88 |
8 | Correct | 5 ms | 4888 KB | Correct answer: answer = 7696 |
9 | Correct | 5 ms | 4888 KB | Correct answer: answer = 1 |
10 | Correct | 5 ms | 4940 KB | Correct answer: answer = 2374 |
11 | Correct | 5 ms | 4940 KB | Correct answer: answer = 9502 |
12 | Correct | 5 ms | 4940 KB | Correct answer: answer = 49 |
13 | Correct | 6 ms | 5068 KB | Correct answer: answer = 151 |
14 | Correct | 5 ms | 5068 KB | Correct answer: answer = 7550 |
15 | Correct | 5 ms | 5068 KB | Correct answer: answer = 7220 |
16 | Correct | 6 ms | 5072 KB | Correct answer: answer = 7550 |
17 | Correct | 5 ms | 5072 KB | Correct answer: answer = 10000 |
18 | Correct | 5 ms | 5072 KB | Correct answer: answer = 10000 |
19 | Correct | 5 ms | 5072 KB | Correct answer: answer = 624 |
20 | Correct | 5 ms | 5072 KB | Correct answer: answer = 10000 |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 5072 KB | Correct answer: answer = 1 |
2 | Correct | 5 ms | 5072 KB | Correct answer: answer = 4 |
3 | Correct | 5 ms | 5072 KB | Correct answer: answer = 1 |
4 | Correct | 5 ms | 5072 KB | Correct answer: answer = 5 |
5 | Correct | 5 ms | 5072 KB | Correct answer: answer = 41 |
6 | Correct | 6 ms | 5072 KB | Correct answer: answer = 71923 |
7 | Correct | 7 ms | 5716 KB | Correct answer: answer = 77137 |
8 | Correct | 89 ms | 6584 KB | Correct answer: answer = 764 |
9 | Correct | 8 ms | 6888 KB | Correct answer: answer = 250000 |
10 | Correct | 183 ms | 7180 KB | Correct answer: answer = 500 |
11 | Correct | 5 ms | 7180 KB | Correct answer: answer = 32 |
12 | Correct | 9 ms | 7180 KB | Correct answer: answer = 130050 |
13 | Correct | 53 ms | 7180 KB | Correct answer: answer = 5110 |
14 | Correct | 12 ms | 7180 KB | Correct answer: answer = 2626 |
15 | Correct | 22 ms | 7180 KB | Correct answer: answer = 796 |
16 | Correct | 39 ms | 7180 KB | Correct answer: answer = 7580 |
17 | Correct | 113 ms | 7180 KB | Correct answer: answer = 1904 |
18 | Correct | 7 ms | 7180 KB | Correct answer: answer = 996004 |
19 | Correct | 20 ms | 7180 KB | Correct answer: answer = 38817 |
20 | Correct | 56 ms | 7180 KB | Correct answer: answer = 4096 |
21 | Correct | 5 ms | 7180 KB | Correct answer: answer = 1 |
22 | Correct | 6 ms | 7180 KB | Correct answer: answer = 1 |
23 | Correct | 107 ms | 7180 KB | Correct answer: answer = 2040 |
24 | Correct | 6 ms | 7180 KB | Correct answer: answer = 2 |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 4728 KB | Correct answer: answer = 4 |
2 | Correct | 5 ms | 4840 KB | Correct answer: answer = 4 |
3 | Correct | 5 ms | 4840 KB | Correct answer: answer = 4 |
4 | Correct | 5 ms | 4848 KB | Correct answer: answer = 12 |
5 | Correct | 5 ms | 4888 KB | Correct answer: answer = 52 |
6 | Correct | 5 ms | 4888 KB | Correct answer: answer = 210 |
7 | Correct | 5 ms | 4888 KB | Correct answer: answer = 88 |
8 | Correct | 5 ms | 4888 KB | Correct answer: answer = 7696 |
9 | Correct | 5 ms | 4888 KB | Correct answer: answer = 1 |
10 | Correct | 5 ms | 4940 KB | Correct answer: answer = 2374 |
11 | Correct | 5 ms | 4940 KB | Correct answer: answer = 9502 |
12 | Correct | 5 ms | 4940 KB | Correct answer: answer = 49 |
13 | Correct | 6 ms | 5068 KB | Correct answer: answer = 151 |
14 | Correct | 5 ms | 5068 KB | Correct answer: answer = 7550 |
15 | Correct | 5 ms | 5068 KB | Correct answer: answer = 7220 |
16 | Correct | 6 ms | 5072 KB | Correct answer: answer = 7550 |
17 | Correct | 5 ms | 5072 KB | Correct answer: answer = 10000 |
18 | Correct | 5 ms | 5072 KB | Correct answer: answer = 10000 |
19 | Correct | 5 ms | 5072 KB | Correct answer: answer = 624 |
20 | Correct | 5 ms | 5072 KB | Correct answer: answer = 10000 |
21 | Correct | 5 ms | 5072 KB | Correct answer: answer = 1 |
22 | Correct | 5 ms | 5072 KB | Correct answer: answer = 4 |
23 | Correct | 5 ms | 5072 KB | Correct answer: answer = 1 |
24 | Correct | 5 ms | 5072 KB | Correct answer: answer = 5 |
25 | Correct | 5 ms | 5072 KB | Correct answer: answer = 41 |
26 | Correct | 6 ms | 5072 KB | Correct answer: answer = 71923 |
27 | Correct | 7 ms | 5716 KB | Correct answer: answer = 77137 |
28 | Correct | 89 ms | 6584 KB | Correct answer: answer = 764 |
29 | Correct | 8 ms | 6888 KB | Correct answer: answer = 250000 |
30 | Correct | 183 ms | 7180 KB | Correct answer: answer = 500 |
31 | Correct | 5 ms | 7180 KB | Correct answer: answer = 32 |
32 | Correct | 9 ms | 7180 KB | Correct answer: answer = 130050 |
33 | Correct | 53 ms | 7180 KB | Correct answer: answer = 5110 |
34 | Correct | 12 ms | 7180 KB | Correct answer: answer = 2626 |
35 | Correct | 22 ms | 7180 KB | Correct answer: answer = 796 |
36 | Correct | 39 ms | 7180 KB | Correct answer: answer = 7580 |
37 | Correct | 113 ms | 7180 KB | Correct answer: answer = 1904 |
38 | Correct | 7 ms | 7180 KB | Correct answer: answer = 996004 |
39 | Correct | 20 ms | 7180 KB | Correct answer: answer = 38817 |
40 | Correct | 56 ms | 7180 KB | Correct answer: answer = 4096 |
41 | Correct | 5 ms | 7180 KB | Correct answer: answer = 1 |
42 | Correct | 6 ms | 7180 KB | Correct answer: answer = 1 |
43 | Correct | 107 ms | 7180 KB | Correct answer: answer = 2040 |
44 | Correct | 6 ms | 7180 KB | Correct answer: answer = 2 |
45 | Correct | 5 ms | 7180 KB | Correct answer: answer = 4 |
46 | Correct | 5 ms | 7180 KB | Correct answer: answer = 9 |
47 | Correct | 5 ms | 7180 KB | Correct answer: answer = 9 |
48 | Correct | 5 ms | 7180 KB | Correct answer: answer = 21 |
49 | Correct | 5 ms | 7180 KB | Correct answer: answer = 71 |
50 | Correct | 5 ms | 7180 KB | Correct answer: answer = 77 |
51 | Correct | 5 ms | 7180 KB | Correct answer: answer = 400 |
52 | Correct | 7 ms | 7180 KB | Correct answer: answer = 996004 |
53 | Correct | 6 ms | 7180 KB | Correct answer: answer = 997310 |
54 | Correct | 6 ms | 7180 KB | Correct answer: answer = 990781 |
55 | Correct | 7 ms | 7180 KB | Correct answer: answer = 996545 |
56 | Correct | 6 ms | 7180 KB | Correct answer: answer = 484 |
57 | Correct | 7 ms | 7180 KB | Correct answer: answer = 484 |
58 | Correct | 11 ms | 7180 KB | Correct answer: answer = 63501 |
59 | Correct | 29 ms | 7180 KB | Correct answer: answer = 323501 |
60 | Correct | 98 ms | 7180 KB | Correct answer: answer = 752500 |
61 | Correct | 33 ms | 7180 KB | Correct answer: answer = 761480 |
62 | Correct | 117 ms | 7180 KB | Correct answer: answer = 758932 |
63 | Correct | 6 ms | 7180 KB | Correct answer: answer = 1000000 |
64 | Correct | 192 ms | 7180 KB | Correct answer: answer = 750500 |
65 | Correct | 5 ms | 7180 KB | Correct answer: answer = 1000000 |
66 | Correct | 6 ms | 7180 KB | Correct answer: answer = 250000 |
67 | Correct | 6 ms | 7180 KB | Correct answer: answer = 250000 |
68 | Correct | 6 ms | 7180 KB | Correct answer: answer = 1000000 |
69 | Correct | 6 ms | 7180 KB | Correct answer: answer = 994009 |
70 | Correct | 11 ms | 7180 KB | Correct answer: answer = 59315 |
71 | Correct | 21 ms | 7180 KB | Correct answer: answer = 25454 |
72 | Correct | 43 ms | 7180 KB | Correct answer: answer = 1504 |
73 | Correct | 6 ms | 7180 KB | Correct answer: answer = 37486 |
74 | Correct | 24 ms | 7180 KB | Correct answer: answer = 4284 |
75 | Correct | 7 ms | 7180 KB | Correct answer: answer = 158008 |
76 | Correct | 10 ms | 7180 KB | Correct answer: answer = 51860 |
77 | Correct | 12 ms | 7180 KB | Correct answer: answer = 12985 |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 4728 KB | Correct answer: answer = 4 |
2 | Correct | 5 ms | 4840 KB | Correct answer: answer = 4 |
3 | Correct | 5 ms | 4840 KB | Correct answer: answer = 4 |
4 | Correct | 5 ms | 4848 KB | Correct answer: answer = 12 |
5 | Correct | 5 ms | 4888 KB | Correct answer: answer = 52 |
6 | Correct | 5 ms | 4888 KB | Correct answer: answer = 210 |
7 | Correct | 5 ms | 4888 KB | Correct answer: answer = 88 |
8 | Correct | 5 ms | 4888 KB | Correct answer: answer = 7696 |
9 | Correct | 5 ms | 4888 KB | Correct answer: answer = 1 |
10 | Correct | 5 ms | 4940 KB | Correct answer: answer = 2374 |
11 | Correct | 5 ms | 4940 KB | Correct answer: answer = 9502 |
12 | Correct | 5 ms | 4940 KB | Correct answer: answer = 49 |
13 | Correct | 6 ms | 5068 KB | Correct answer: answer = 151 |
14 | Correct | 5 ms | 5068 KB | Correct answer: answer = 7550 |
15 | Correct | 5 ms | 5068 KB | Correct answer: answer = 7220 |
16 | Correct | 6 ms | 5072 KB | Correct answer: answer = 7550 |
17 | Correct | 5 ms | 5072 KB | Correct answer: answer = 10000 |
18 | Correct | 5 ms | 5072 KB | Correct answer: answer = 10000 |
19 | Correct | 5 ms | 5072 KB | Correct answer: answer = 624 |
20 | Correct | 5 ms | 5072 KB | Correct answer: answer = 10000 |
21 | Correct | 5 ms | 5072 KB | Correct answer: answer = 1 |
22 | Correct | 5 ms | 5072 KB | Correct answer: answer = 4 |
23 | Correct | 5 ms | 5072 KB | Correct answer: answer = 1 |
24 | Correct | 5 ms | 5072 KB | Correct answer: answer = 5 |
25 | Correct | 5 ms | 5072 KB | Correct answer: answer = 41 |
26 | Correct | 6 ms | 5072 KB | Correct answer: answer = 71923 |
27 | Correct | 7 ms | 5716 KB | Correct answer: answer = 77137 |
28 | Correct | 89 ms | 6584 KB | Correct answer: answer = 764 |
29 | Correct | 8 ms | 6888 KB | Correct answer: answer = 250000 |
30 | Correct | 183 ms | 7180 KB | Correct answer: answer = 500 |
31 | Correct | 5 ms | 7180 KB | Correct answer: answer = 32 |
32 | Correct | 9 ms | 7180 KB | Correct answer: answer = 130050 |
33 | Correct | 53 ms | 7180 KB | Correct answer: answer = 5110 |
34 | Correct | 12 ms | 7180 KB | Correct answer: answer = 2626 |
35 | Correct | 22 ms | 7180 KB | Correct answer: answer = 796 |
36 | Correct | 39 ms | 7180 KB | Correct answer: answer = 7580 |
37 | Correct | 113 ms | 7180 KB | Correct answer: answer = 1904 |
38 | Correct | 7 ms | 7180 KB | Correct answer: answer = 996004 |
39 | Correct | 20 ms | 7180 KB | Correct answer: answer = 38817 |
40 | Correct | 56 ms | 7180 KB | Correct answer: answer = 4096 |
41 | Correct | 5 ms | 7180 KB | Correct answer: answer = 1 |
42 | Correct | 6 ms | 7180 KB | Correct answer: answer = 1 |
43 | Correct | 107 ms | 7180 KB | Correct answer: answer = 2040 |
44 | Correct | 6 ms | 7180 KB | Correct answer: answer = 2 |
45 | Correct | 5 ms | 7180 KB | Correct answer: answer = 4 |
46 | Correct | 5 ms | 7180 KB | Correct answer: answer = 9 |
47 | Correct | 5 ms | 7180 KB | Correct answer: answer = 9 |
48 | Correct | 5 ms | 7180 KB | Correct answer: answer = 21 |
49 | Correct | 5 ms | 7180 KB | Correct answer: answer = 71 |
50 | Correct | 5 ms | 7180 KB | Correct answer: answer = 77 |
51 | Correct | 5 ms | 7180 KB | Correct answer: answer = 400 |
52 | Correct | 7 ms | 7180 KB | Correct answer: answer = 996004 |
53 | Correct | 6 ms | 7180 KB | Correct answer: answer = 997310 |
54 | Correct | 6 ms | 7180 KB | Correct answer: answer = 990781 |
55 | Correct | 7 ms | 7180 KB | Correct answer: answer = 996545 |
56 | Correct | 6 ms | 7180 KB | Correct answer: answer = 484 |
57 | Correct | 7 ms | 7180 KB | Correct answer: answer = 484 |
58 | Correct | 11 ms | 7180 KB | Correct answer: answer = 63501 |
59 | Correct | 29 ms | 7180 KB | Correct answer: answer = 323501 |
60 | Correct | 98 ms | 7180 KB | Correct answer: answer = 752500 |
61 | Correct | 33 ms | 7180 KB | Correct answer: answer = 761480 |
62 | Correct | 117 ms | 7180 KB | Correct answer: answer = 758932 |
63 | Correct | 6 ms | 7180 KB | Correct answer: answer = 1000000 |
64 | Correct | 192 ms | 7180 KB | Correct answer: answer = 750500 |
65 | Correct | 5 ms | 7180 KB | Correct answer: answer = 1000000 |
66 | Correct | 6 ms | 7180 KB | Correct answer: answer = 250000 |
67 | Correct | 6 ms | 7180 KB | Correct answer: answer = 250000 |
68 | Correct | 6 ms | 7180 KB | Correct answer: answer = 1000000 |
69 | Correct | 6 ms | 7180 KB | Correct answer: answer = 994009 |
70 | Correct | 11 ms | 7180 KB | Correct answer: answer = 59315 |
71 | Correct | 21 ms | 7180 KB | Correct answer: answer = 25454 |
72 | Correct | 43 ms | 7180 KB | Correct answer: answer = 1504 |
73 | Correct | 6 ms | 7180 KB | Correct answer: answer = 37486 |
74 | Correct | 24 ms | 7180 KB | Correct answer: answer = 4284 |
75 | Correct | 7 ms | 7180 KB | Correct answer: answer = 158008 |
76 | Correct | 10 ms | 7180 KB | Correct answer: answer = 51860 |
77 | Correct | 12 ms | 7180 KB | Correct answer: answer = 12985 |
78 | Runtime error | 98 ms | 7180 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
79 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 4728 KB | Correct answer: answer = 4 |
2 | Correct | 5 ms | 4840 KB | Correct answer: answer = 4 |
3 | Correct | 5 ms | 4840 KB | Correct answer: answer = 4 |
4 | Correct | 5 ms | 4848 KB | Correct answer: answer = 12 |
5 | Correct | 5 ms | 4888 KB | Correct answer: answer = 52 |
6 | Correct | 5 ms | 4888 KB | Correct answer: answer = 210 |
7 | Correct | 5 ms | 4888 KB | Correct answer: answer = 88 |
8 | Correct | 5 ms | 4888 KB | Correct answer: answer = 7696 |
9 | Correct | 5 ms | 4888 KB | Correct answer: answer = 1 |
10 | Correct | 5 ms | 4940 KB | Correct answer: answer = 2374 |
11 | Correct | 5 ms | 4940 KB | Correct answer: answer = 9502 |
12 | Correct | 5 ms | 4940 KB | Correct answer: answer = 49 |
13 | Correct | 6 ms | 5068 KB | Correct answer: answer = 151 |
14 | Correct | 5 ms | 5068 KB | Correct answer: answer = 7550 |
15 | Correct | 5 ms | 5068 KB | Correct answer: answer = 7220 |
16 | Correct | 6 ms | 5072 KB | Correct answer: answer = 7550 |
17 | Correct | 5 ms | 5072 KB | Correct answer: answer = 10000 |
18 | Correct | 5 ms | 5072 KB | Correct answer: answer = 10000 |
19 | Correct | 5 ms | 5072 KB | Correct answer: answer = 624 |
20 | Correct | 5 ms | 5072 KB | Correct answer: answer = 10000 |
21 | Correct | 5 ms | 5072 KB | Correct answer: answer = 1 |
22 | Correct | 5 ms | 5072 KB | Correct answer: answer = 4 |
23 | Correct | 5 ms | 5072 KB | Correct answer: answer = 1 |
24 | Correct | 5 ms | 5072 KB | Correct answer: answer = 5 |
25 | Correct | 5 ms | 5072 KB | Correct answer: answer = 41 |
26 | Correct | 6 ms | 5072 KB | Correct answer: answer = 71923 |
27 | Correct | 7 ms | 5716 KB | Correct answer: answer = 77137 |
28 | Correct | 89 ms | 6584 KB | Correct answer: answer = 764 |
29 | Correct | 8 ms | 6888 KB | Correct answer: answer = 250000 |
30 | Correct | 183 ms | 7180 KB | Correct answer: answer = 500 |
31 | Correct | 5 ms | 7180 KB | Correct answer: answer = 32 |
32 | Correct | 9 ms | 7180 KB | Correct answer: answer = 130050 |
33 | Correct | 53 ms | 7180 KB | Correct answer: answer = 5110 |
34 | Correct | 12 ms | 7180 KB | Correct answer: answer = 2626 |
35 | Correct | 22 ms | 7180 KB | Correct answer: answer = 796 |
36 | Correct | 39 ms | 7180 KB | Correct answer: answer = 7580 |
37 | Correct | 113 ms | 7180 KB | Correct answer: answer = 1904 |
38 | Correct | 7 ms | 7180 KB | Correct answer: answer = 996004 |
39 | Correct | 20 ms | 7180 KB | Correct answer: answer = 38817 |
40 | Correct | 56 ms | 7180 KB | Correct answer: answer = 4096 |
41 | Correct | 5 ms | 7180 KB | Correct answer: answer = 1 |
42 | Correct | 6 ms | 7180 KB | Correct answer: answer = 1 |
43 | Correct | 107 ms | 7180 KB | Correct answer: answer = 2040 |
44 | Correct | 6 ms | 7180 KB | Correct answer: answer = 2 |
45 | Correct | 5 ms | 7180 KB | Correct answer: answer = 4 |
46 | Correct | 5 ms | 7180 KB | Correct answer: answer = 9 |
47 | Correct | 5 ms | 7180 KB | Correct answer: answer = 9 |
48 | Correct | 5 ms | 7180 KB | Correct answer: answer = 21 |
49 | Correct | 5 ms | 7180 KB | Correct answer: answer = 71 |
50 | Correct | 5 ms | 7180 KB | Correct answer: answer = 77 |
51 | Correct | 5 ms | 7180 KB | Correct answer: answer = 400 |
52 | Correct | 7 ms | 7180 KB | Correct answer: answer = 996004 |
53 | Correct | 6 ms | 7180 KB | Correct answer: answer = 997310 |
54 | Correct | 6 ms | 7180 KB | Correct answer: answer = 990781 |
55 | Correct | 7 ms | 7180 KB | Correct answer: answer = 996545 |
56 | Correct | 6 ms | 7180 KB | Correct answer: answer = 484 |
57 | Correct | 7 ms | 7180 KB | Correct answer: answer = 484 |
58 | Correct | 11 ms | 7180 KB | Correct answer: answer = 63501 |
59 | Correct | 29 ms | 7180 KB | Correct answer: answer = 323501 |
60 | Correct | 98 ms | 7180 KB | Correct answer: answer = 752500 |
61 | Correct | 33 ms | 7180 KB | Correct answer: answer = 761480 |
62 | Correct | 117 ms | 7180 KB | Correct answer: answer = 758932 |
63 | Correct | 6 ms | 7180 KB | Correct answer: answer = 1000000 |
64 | Correct | 192 ms | 7180 KB | Correct answer: answer = 750500 |
65 | Correct | 5 ms | 7180 KB | Correct answer: answer = 1000000 |
66 | Correct | 6 ms | 7180 KB | Correct answer: answer = 250000 |
67 | Correct | 6 ms | 7180 KB | Correct answer: answer = 250000 |
68 | Correct | 6 ms | 7180 KB | Correct answer: answer = 1000000 |
69 | Correct | 6 ms | 7180 KB | Correct answer: answer = 994009 |
70 | Correct | 11 ms | 7180 KB | Correct answer: answer = 59315 |
71 | Correct | 21 ms | 7180 KB | Correct answer: answer = 25454 |
72 | Correct | 43 ms | 7180 KB | Correct answer: answer = 1504 |
73 | Correct | 6 ms | 7180 KB | Correct answer: answer = 37486 |
74 | Correct | 24 ms | 7180 KB | Correct answer: answer = 4284 |
75 | Correct | 7 ms | 7180 KB | Correct answer: answer = 158008 |
76 | Correct | 10 ms | 7180 KB | Correct answer: answer = 51860 |
77 | Correct | 12 ms | 7180 KB | Correct answer: answer = 12985 |
78 | Runtime error | 98 ms | 7180 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
79 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 4728 KB | Correct answer: answer = 4 |
2 | Correct | 5 ms | 4840 KB | Correct answer: answer = 4 |
3 | Correct | 5 ms | 4840 KB | Correct answer: answer = 4 |
4 | Correct | 5 ms | 4848 KB | Correct answer: answer = 12 |
5 | Correct | 5 ms | 4888 KB | Correct answer: answer = 52 |
6 | Correct | 5 ms | 4888 KB | Correct answer: answer = 210 |
7 | Correct | 5 ms | 4888 KB | Correct answer: answer = 88 |
8 | Correct | 5 ms | 4888 KB | Correct answer: answer = 7696 |
9 | Correct | 5 ms | 4888 KB | Correct answer: answer = 1 |
10 | Correct | 5 ms | 4940 KB | Correct answer: answer = 2374 |
11 | Correct | 5 ms | 4940 KB | Correct answer: answer = 9502 |
12 | Correct | 5 ms | 4940 KB | Correct answer: answer = 49 |
13 | Correct | 6 ms | 5068 KB | Correct answer: answer = 151 |
14 | Correct | 5 ms | 5068 KB | Correct answer: answer = 7550 |
15 | Correct | 5 ms | 5068 KB | Correct answer: answer = 7220 |
16 | Correct | 6 ms | 5072 KB | Correct answer: answer = 7550 |
17 | Correct | 5 ms | 5072 KB | Correct answer: answer = 10000 |
18 | Correct | 5 ms | 5072 KB | Correct answer: answer = 10000 |
19 | Correct | 5 ms | 5072 KB | Correct answer: answer = 624 |
20 | Correct | 5 ms | 5072 KB | Correct answer: answer = 10000 |
21 | Correct | 5 ms | 5072 KB | Correct answer: answer = 1 |
22 | Correct | 5 ms | 5072 KB | Correct answer: answer = 4 |
23 | Correct | 5 ms | 5072 KB | Correct answer: answer = 1 |
24 | Correct | 5 ms | 5072 KB | Correct answer: answer = 5 |
25 | Correct | 5 ms | 5072 KB | Correct answer: answer = 41 |
26 | Correct | 6 ms | 5072 KB | Correct answer: answer = 71923 |
27 | Correct | 7 ms | 5716 KB | Correct answer: answer = 77137 |
28 | Correct | 89 ms | 6584 KB | Correct answer: answer = 764 |
29 | Correct | 8 ms | 6888 KB | Correct answer: answer = 250000 |
30 | Correct | 183 ms | 7180 KB | Correct answer: answer = 500 |
31 | Correct | 5 ms | 7180 KB | Correct answer: answer = 32 |
32 | Correct | 9 ms | 7180 KB | Correct answer: answer = 130050 |
33 | Correct | 53 ms | 7180 KB | Correct answer: answer = 5110 |
34 | Correct | 12 ms | 7180 KB | Correct answer: answer = 2626 |
35 | Correct | 22 ms | 7180 KB | Correct answer: answer = 796 |
36 | Correct | 39 ms | 7180 KB | Correct answer: answer = 7580 |
37 | Correct | 113 ms | 7180 KB | Correct answer: answer = 1904 |
38 | Correct | 7 ms | 7180 KB | Correct answer: answer = 996004 |
39 | Correct | 20 ms | 7180 KB | Correct answer: answer = 38817 |
40 | Correct | 56 ms | 7180 KB | Correct answer: answer = 4096 |
41 | Correct | 5 ms | 7180 KB | Correct answer: answer = 1 |
42 | Correct | 6 ms | 7180 KB | Correct answer: answer = 1 |
43 | Correct | 107 ms | 7180 KB | Correct answer: answer = 2040 |
44 | Correct | 6 ms | 7180 KB | Correct answer: answer = 2 |
45 | Correct | 5 ms | 7180 KB | Correct answer: answer = 4 |
46 | Correct | 5 ms | 7180 KB | Correct answer: answer = 9 |
47 | Correct | 5 ms | 7180 KB | Correct answer: answer = 9 |
48 | Correct | 5 ms | 7180 KB | Correct answer: answer = 21 |
49 | Correct | 5 ms | 7180 KB | Correct answer: answer = 71 |
50 | Correct | 5 ms | 7180 KB | Correct answer: answer = 77 |
51 | Correct | 5 ms | 7180 KB | Correct answer: answer = 400 |
52 | Correct | 7 ms | 7180 KB | Correct answer: answer = 996004 |
53 | Correct | 6 ms | 7180 KB | Correct answer: answer = 997310 |
54 | Correct | 6 ms | 7180 KB | Correct answer: answer = 990781 |
55 | Correct | 7 ms | 7180 KB | Correct answer: answer = 996545 |
56 | Correct | 6 ms | 7180 KB | Correct answer: answer = 484 |
57 | Correct | 7 ms | 7180 KB | Correct answer: answer = 484 |
58 | Correct | 11 ms | 7180 KB | Correct answer: answer = 63501 |
59 | Correct | 29 ms | 7180 KB | Correct answer: answer = 323501 |
60 | Correct | 98 ms | 7180 KB | Correct answer: answer = 752500 |
61 | Correct | 33 ms | 7180 KB | Correct answer: answer = 761480 |
62 | Correct | 117 ms | 7180 KB | Correct answer: answer = 758932 |
63 | Correct | 6 ms | 7180 KB | Correct answer: answer = 1000000 |
64 | Correct | 192 ms | 7180 KB | Correct answer: answer = 750500 |
65 | Correct | 5 ms | 7180 KB | Correct answer: answer = 1000000 |
66 | Correct | 6 ms | 7180 KB | Correct answer: answer = 250000 |
67 | Correct | 6 ms | 7180 KB | Correct answer: answer = 250000 |
68 | Correct | 6 ms | 7180 KB | Correct answer: answer = 1000000 |
69 | Correct | 6 ms | 7180 KB | Correct answer: answer = 994009 |
70 | Correct | 11 ms | 7180 KB | Correct answer: answer = 59315 |
71 | Correct | 21 ms | 7180 KB | Correct answer: answer = 25454 |
72 | Correct | 43 ms | 7180 KB | Correct answer: answer = 1504 |
73 | Correct | 6 ms | 7180 KB | Correct answer: answer = 37486 |
74 | Correct | 24 ms | 7180 KB | Correct answer: answer = 4284 |
75 | Correct | 7 ms | 7180 KB | Correct answer: answer = 158008 |
76 | Correct | 10 ms | 7180 KB | Correct answer: answer = 51860 |
77 | Correct | 12 ms | 7180 KB | Correct answer: answer = 12985 |
78 | Runtime error | 98 ms | 7180 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
79 | Halted | 0 ms | 0 KB | - |