# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
424602 | 2021-06-12T07:25:51 Z | jainbot27 | Aliens (IOI16_aliens) | C++17 | 3 ms | 2764 KB |
#include <bits/stdc++.h> using namespace std; #define f first #define s second #define pb push_back #define ar array #define all(x) x.begin(), x.end() #define siz(x) (int) x.size() #define uid(a, b) uniform_int_distribution<int>(a, b)(rng) #define FOR(i, a, b) for(auto i=(a); i<(b); i++) #define ROF(i, a, b) for(auto i=(b)-1; i>=(a); i--) #define F0R(i, n) FOR(i, 0, n) #define R0F(i, n) ROF(i, 0, n) using ll=long long; using ld=long double; using pii=pair<int, int>; using pll=pair<ll, ll>; using vi=vector<int>; using vl=vector<ll>; using vpii=vector<pii>; template<class T> bool ckmin(T&a, const T&b) {return b<a?a=b,1:0;} template<class T> bool ckmax(T&a, const T&b) {return b>a?a=b,1:0;} mt19937 rng(chrono::steady_clock::now().time_since_epoch().count()); const int mxN=1e5+10; const int MOD=1e9+7; const ll infLL=1e18; const ld eps=1e-6; int n, m, k; vi r, c; vector<pair<ll, ll>> pts, pts2; struct line{ ll M, B; int idx; ll operator()(const ll&q){ return M*q+B; } line(){M=-1, B=-1, idx=-1;} line(ll m, ll b, int IDX):M(m), B(b), idx(IDX){} }; int L, R; // we can do convex hull in linear cause we only have x is decreasing order line A[mxN]; bool itersect(line P, line Q, line R){ if(pair<ll, ll>{(Q.B-P.B)*(Q.M-R.M), Q.idx}>pair<ll, ll>{(R.B-Q.B)*(P.M-Q.M), R.idx}) return 1; return 0; } void add(line V){ while(R-L>1&&itersect(A[R-2], A[R-1], V)) R--; A[R]=V; R++; } pair<ll, ll> qry(ll X){ while(R-L>1&&A[L+1](X)<A[L](X)) L++; return {A[L](X), A[L].idx}; } pair<ll, ll> solve(ll x){ // cout << "Solve: " << x << "\n"; pair<ll, ll> dp={0, 0}; L=0, R=0; F0R(i, n){ ll A=max(i?pts[i-1].f-pts[i].s+1:0LL, 0LL); add(line(-2*pts[i].s, dp.f-A*A+pts[i].s*pts[i].s, dp.s));; dp=qry(pts[i].f+1); dp.s++; dp.f+=(pts[i].f+1)*(pts[i].f+1)+x; // cout << dp.f << ' ' << dp.s << "\n"; } return dp; } ll take_photos(int N, int M, int K, vi R, vi C){ n=N, m=M, k=K, r=R, c=C; F0R(i, n){ pts.pb({max(r[i], c[i]), min(r[i], c[i])}); } sort(all(pts)); F0R(i, n){ while(!pts2.empty()&&pts[i].s<=pts2.back().s) pts2.pop_back(); pts2.pb(pts[i]); } swap(pts, pts2); n=siz(pts); // for(auto [X, Y]:pts){ // cout << X << ' ' << Y << "\n"; // } ll lo=0, hi=m*m; ll ans=0; while(lo<=hi){ ll m=(lo+hi)/2; auto cur=solve(m); if(cur.s<=k) ans=cur.f, hi=m-1; else lo=m+1; } return ans-lo*k; // while(lo+1<hi){ // ll m=(lo+hi)/2; // if(k>=solve(m).s) // hi=m; // else // lo=m; // } // // cout << "LO: " << lo << ' ' << "HI: " << hi << "\n"; // auto ans=solve(lo); // return ans.f-lo*k; }
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 2636 KB | Correct answer: answer = 4 |
2 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4 |
3 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4 |
4 | Correct | 1 ms | 2636 KB | Correct answer: answer = 12 |
5 | Correct | 1 ms | 2636 KB | Correct answer: answer = 52 |
6 | Correct | 1 ms | 2636 KB | Correct answer: answer = 210 |
7 | Correct | 2 ms | 2636 KB | Correct answer: answer = 88 |
8 | Correct | 2 ms | 2636 KB | Correct answer: answer = 7696 |
9 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1 |
10 | Correct | 2 ms | 2636 KB | Correct answer: answer = 2374 |
11 | Correct | 2 ms | 2636 KB | Correct answer: answer = 9502 |
12 | Correct | 2 ms | 2636 KB | Correct answer: answer = 49 |
13 | Correct | 2 ms | 2636 KB | Correct answer: answer = 151 |
14 | Correct | 2 ms | 2636 KB | Correct answer: answer = 7550 |
15 | Correct | 2 ms | 2636 KB | Correct answer: answer = 7220 |
16 | Correct | 2 ms | 2636 KB | Correct answer: answer = 7550 |
17 | Correct | 2 ms | 2636 KB | Correct answer: answer = 10000 |
18 | Correct | 2 ms | 2636 KB | Correct answer: answer = 10000 |
19 | Correct | 2 ms | 2636 KB | Correct answer: answer = 624 |
20 | Correct | 2 ms | 2636 KB | Correct answer: answer = 10000 |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1 |
2 | Correct | 1 ms | 2636 KB | Correct answer: answer = 4 |
3 | Correct | 1 ms | 2636 KB | Correct answer: answer = 1 |
4 | Correct | 2 ms | 2560 KB | Correct answer: answer = 5 |
5 | Correct | 2 ms | 2636 KB | Correct answer: answer = 41 |
6 | Correct | 2 ms | 2636 KB | Correct answer: answer = 71923 |
7 | Correct | 2 ms | 2636 KB | Correct answer: answer = 77137 |
8 | Correct | 2 ms | 2636 KB | Correct answer: answer = 764 |
9 | Correct | 2 ms | 2636 KB | Correct answer: answer = 250000 |
10 | Correct | 2 ms | 2636 KB | Correct answer: answer = 500 |
11 | Correct | 2 ms | 2636 KB | Correct answer: answer = 32 |
12 | Correct | 3 ms | 2636 KB | Correct answer: answer = 130050 |
13 | Correct | 2 ms | 2636 KB | Correct answer: answer = 5110 |
14 | Correct | 2 ms | 2636 KB | Correct answer: answer = 2626 |
15 | Correct | 2 ms | 2636 KB | Correct answer: answer = 796 |
16 | Correct | 3 ms | 2636 KB | Correct answer: answer = 7580 |
17 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1904 |
18 | Correct | 2 ms | 2636 KB | Correct answer: answer = 996004 |
19 | Correct | 2 ms | 2636 KB | Correct answer: answer = 38817 |
20 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4096 |
21 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1 |
22 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1 |
23 | Correct | 2 ms | 2636 KB | Correct answer: answer = 2040 |
24 | Correct | 2 ms | 2636 KB | Correct answer: answer = 2 |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 2636 KB | Correct answer: answer = 4 |
2 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4 |
3 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4 |
4 | Correct | 1 ms | 2636 KB | Correct answer: answer = 12 |
5 | Correct | 1 ms | 2636 KB | Correct answer: answer = 52 |
6 | Correct | 1 ms | 2636 KB | Correct answer: answer = 210 |
7 | Correct | 2 ms | 2636 KB | Correct answer: answer = 88 |
8 | Correct | 2 ms | 2636 KB | Correct answer: answer = 7696 |
9 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1 |
10 | Correct | 2 ms | 2636 KB | Correct answer: answer = 2374 |
11 | Correct | 2 ms | 2636 KB | Correct answer: answer = 9502 |
12 | Correct | 2 ms | 2636 KB | Correct answer: answer = 49 |
13 | Correct | 2 ms | 2636 KB | Correct answer: answer = 151 |
14 | Correct | 2 ms | 2636 KB | Correct answer: answer = 7550 |
15 | Correct | 2 ms | 2636 KB | Correct answer: answer = 7220 |
16 | Correct | 2 ms | 2636 KB | Correct answer: answer = 7550 |
17 | Correct | 2 ms | 2636 KB | Correct answer: answer = 10000 |
18 | Correct | 2 ms | 2636 KB | Correct answer: answer = 10000 |
19 | Correct | 2 ms | 2636 KB | Correct answer: answer = 624 |
20 | Correct | 2 ms | 2636 KB | Correct answer: answer = 10000 |
21 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1 |
22 | Correct | 1 ms | 2636 KB | Correct answer: answer = 4 |
23 | Correct | 1 ms | 2636 KB | Correct answer: answer = 1 |
24 | Correct | 2 ms | 2560 KB | Correct answer: answer = 5 |
25 | Correct | 2 ms | 2636 KB | Correct answer: answer = 41 |
26 | Correct | 2 ms | 2636 KB | Correct answer: answer = 71923 |
27 | Correct | 2 ms | 2636 KB | Correct answer: answer = 77137 |
28 | Correct | 2 ms | 2636 KB | Correct answer: answer = 764 |
29 | Correct | 2 ms | 2636 KB | Correct answer: answer = 250000 |
30 | Correct | 2 ms | 2636 KB | Correct answer: answer = 500 |
31 | Correct | 2 ms | 2636 KB | Correct answer: answer = 32 |
32 | Correct | 3 ms | 2636 KB | Correct answer: answer = 130050 |
33 | Correct | 2 ms | 2636 KB | Correct answer: answer = 5110 |
34 | Correct | 2 ms | 2636 KB | Correct answer: answer = 2626 |
35 | Correct | 2 ms | 2636 KB | Correct answer: answer = 796 |
36 | Correct | 3 ms | 2636 KB | Correct answer: answer = 7580 |
37 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1904 |
38 | Correct | 2 ms | 2636 KB | Correct answer: answer = 996004 |
39 | Correct | 2 ms | 2636 KB | Correct answer: answer = 38817 |
40 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4096 |
41 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1 |
42 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1 |
43 | Correct | 2 ms | 2636 KB | Correct answer: answer = 2040 |
44 | Correct | 2 ms | 2636 KB | Correct answer: answer = 2 |
45 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4 |
46 | Correct | 2 ms | 2636 KB | Correct answer: answer = 9 |
47 | Correct | 2 ms | 2636 KB | Correct answer: answer = 9 |
48 | Correct | 2 ms | 2636 KB | Correct answer: answer = 21 |
49 | Correct | 2 ms | 2636 KB | Correct answer: answer = 71 |
50 | Correct | 2 ms | 2636 KB | Correct answer: answer = 77 |
51 | Correct | 2 ms | 2636 KB | Correct answer: answer = 400 |
52 | Correct | 2 ms | 2636 KB | Correct answer: answer = 996004 |
53 | Correct | 2 ms | 2636 KB | Correct answer: answer = 997310 |
54 | Correct | 2 ms | 2644 KB | Correct answer: answer = 990781 |
55 | Correct | 2 ms | 2636 KB | Correct answer: answer = 996545 |
56 | Correct | 2 ms | 2636 KB | Correct answer: answer = 484 |
57 | Correct | 2 ms | 2636 KB | Correct answer: answer = 484 |
58 | Correct | 2 ms | 2636 KB | Correct answer: answer = 63501 |
59 | Correct | 2 ms | 2636 KB | Correct answer: answer = 323501 |
60 | Correct | 2 ms | 2636 KB | Correct answer: answer = 752500 |
61 | Correct | 2 ms | 2636 KB | Correct answer: answer = 761480 |
62 | Correct | 2 ms | 2636 KB | Correct answer: answer = 758932 |
63 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1000000 |
64 | Correct | 2 ms | 2676 KB | Correct answer: answer = 750500 |
65 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1000000 |
66 | Correct | 2 ms | 2636 KB | Correct answer: answer = 250000 |
67 | Correct | 2 ms | 2636 KB | Correct answer: answer = 250000 |
68 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1000000 |
69 | Correct | 2 ms | 2636 KB | Correct answer: answer = 994009 |
70 | Correct | 2 ms | 2636 KB | Correct answer: answer = 59315 |
71 | Correct | 3 ms | 2636 KB | Correct answer: answer = 25454 |
72 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1504 |
73 | Correct | 2 ms | 2636 KB | Correct answer: answer = 37486 |
74 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4284 |
75 | Correct | 2 ms | 2636 KB | Correct answer: answer = 158008 |
76 | Correct | 2 ms | 2636 KB | Correct answer: answer = 51860 |
77 | Correct | 2 ms | 2636 KB | Correct answer: answer = 12985 |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 2636 KB | Correct answer: answer = 4 |
2 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4 |
3 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4 |
4 | Correct | 1 ms | 2636 KB | Correct answer: answer = 12 |
5 | Correct | 1 ms | 2636 KB | Correct answer: answer = 52 |
6 | Correct | 1 ms | 2636 KB | Correct answer: answer = 210 |
7 | Correct | 2 ms | 2636 KB | Correct answer: answer = 88 |
8 | Correct | 2 ms | 2636 KB | Correct answer: answer = 7696 |
9 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1 |
10 | Correct | 2 ms | 2636 KB | Correct answer: answer = 2374 |
11 | Correct | 2 ms | 2636 KB | Correct answer: answer = 9502 |
12 | Correct | 2 ms | 2636 KB | Correct answer: answer = 49 |
13 | Correct | 2 ms | 2636 KB | Correct answer: answer = 151 |
14 | Correct | 2 ms | 2636 KB | Correct answer: answer = 7550 |
15 | Correct | 2 ms | 2636 KB | Correct answer: answer = 7220 |
16 | Correct | 2 ms | 2636 KB | Correct answer: answer = 7550 |
17 | Correct | 2 ms | 2636 KB | Correct answer: answer = 10000 |
18 | Correct | 2 ms | 2636 KB | Correct answer: answer = 10000 |
19 | Correct | 2 ms | 2636 KB | Correct answer: answer = 624 |
20 | Correct | 2 ms | 2636 KB | Correct answer: answer = 10000 |
21 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1 |
22 | Correct | 1 ms | 2636 KB | Correct answer: answer = 4 |
23 | Correct | 1 ms | 2636 KB | Correct answer: answer = 1 |
24 | Correct | 2 ms | 2560 KB | Correct answer: answer = 5 |
25 | Correct | 2 ms | 2636 KB | Correct answer: answer = 41 |
26 | Correct | 2 ms | 2636 KB | Correct answer: answer = 71923 |
27 | Correct | 2 ms | 2636 KB | Correct answer: answer = 77137 |
28 | Correct | 2 ms | 2636 KB | Correct answer: answer = 764 |
29 | Correct | 2 ms | 2636 KB | Correct answer: answer = 250000 |
30 | Correct | 2 ms | 2636 KB | Correct answer: answer = 500 |
31 | Correct | 2 ms | 2636 KB | Correct answer: answer = 32 |
32 | Correct | 3 ms | 2636 KB | Correct answer: answer = 130050 |
33 | Correct | 2 ms | 2636 KB | Correct answer: answer = 5110 |
34 | Correct | 2 ms | 2636 KB | Correct answer: answer = 2626 |
35 | Correct | 2 ms | 2636 KB | Correct answer: answer = 796 |
36 | Correct | 3 ms | 2636 KB | Correct answer: answer = 7580 |
37 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1904 |
38 | Correct | 2 ms | 2636 KB | Correct answer: answer = 996004 |
39 | Correct | 2 ms | 2636 KB | Correct answer: answer = 38817 |
40 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4096 |
41 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1 |
42 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1 |
43 | Correct | 2 ms | 2636 KB | Correct answer: answer = 2040 |
44 | Correct | 2 ms | 2636 KB | Correct answer: answer = 2 |
45 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4 |
46 | Correct | 2 ms | 2636 KB | Correct answer: answer = 9 |
47 | Correct | 2 ms | 2636 KB | Correct answer: answer = 9 |
48 | Correct | 2 ms | 2636 KB | Correct answer: answer = 21 |
49 | Correct | 2 ms | 2636 KB | Correct answer: answer = 71 |
50 | Correct | 2 ms | 2636 KB | Correct answer: answer = 77 |
51 | Correct | 2 ms | 2636 KB | Correct answer: answer = 400 |
52 | Correct | 2 ms | 2636 KB | Correct answer: answer = 996004 |
53 | Correct | 2 ms | 2636 KB | Correct answer: answer = 997310 |
54 | Correct | 2 ms | 2644 KB | Correct answer: answer = 990781 |
55 | Correct | 2 ms | 2636 KB | Correct answer: answer = 996545 |
56 | Correct | 2 ms | 2636 KB | Correct answer: answer = 484 |
57 | Correct | 2 ms | 2636 KB | Correct answer: answer = 484 |
58 | Correct | 2 ms | 2636 KB | Correct answer: answer = 63501 |
59 | Correct | 2 ms | 2636 KB | Correct answer: answer = 323501 |
60 | Correct | 2 ms | 2636 KB | Correct answer: answer = 752500 |
61 | Correct | 2 ms | 2636 KB | Correct answer: answer = 761480 |
62 | Correct | 2 ms | 2636 KB | Correct answer: answer = 758932 |
63 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1000000 |
64 | Correct | 2 ms | 2676 KB | Correct answer: answer = 750500 |
65 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1000000 |
66 | Correct | 2 ms | 2636 KB | Correct answer: answer = 250000 |
67 | Correct | 2 ms | 2636 KB | Correct answer: answer = 250000 |
68 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1000000 |
69 | Correct | 2 ms | 2636 KB | Correct answer: answer = 994009 |
70 | Correct | 2 ms | 2636 KB | Correct answer: answer = 59315 |
71 | Correct | 3 ms | 2636 KB | Correct answer: answer = 25454 |
72 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1504 |
73 | Correct | 2 ms | 2636 KB | Correct answer: answer = 37486 |
74 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4284 |
75 | Correct | 2 ms | 2636 KB | Correct answer: answer = 158008 |
76 | Correct | 2 ms | 2636 KB | Correct answer: answer = 51860 |
77 | Correct | 2 ms | 2636 KB | Correct answer: answer = 12985 |
78 | Incorrect | 3 ms | 2764 KB | Wrong answer: output = 1454759932, expected = 997864126212 |
79 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 2636 KB | Correct answer: answer = 4 |
2 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4 |
3 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4 |
4 | Correct | 1 ms | 2636 KB | Correct answer: answer = 12 |
5 | Correct | 1 ms | 2636 KB | Correct answer: answer = 52 |
6 | Correct | 1 ms | 2636 KB | Correct answer: answer = 210 |
7 | Correct | 2 ms | 2636 KB | Correct answer: answer = 88 |
8 | Correct | 2 ms | 2636 KB | Correct answer: answer = 7696 |
9 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1 |
10 | Correct | 2 ms | 2636 KB | Correct answer: answer = 2374 |
11 | Correct | 2 ms | 2636 KB | Correct answer: answer = 9502 |
12 | Correct | 2 ms | 2636 KB | Correct answer: answer = 49 |
13 | Correct | 2 ms | 2636 KB | Correct answer: answer = 151 |
14 | Correct | 2 ms | 2636 KB | Correct answer: answer = 7550 |
15 | Correct | 2 ms | 2636 KB | Correct answer: answer = 7220 |
16 | Correct | 2 ms | 2636 KB | Correct answer: answer = 7550 |
17 | Correct | 2 ms | 2636 KB | Correct answer: answer = 10000 |
18 | Correct | 2 ms | 2636 KB | Correct answer: answer = 10000 |
19 | Correct | 2 ms | 2636 KB | Correct answer: answer = 624 |
20 | Correct | 2 ms | 2636 KB | Correct answer: answer = 10000 |
21 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1 |
22 | Correct | 1 ms | 2636 KB | Correct answer: answer = 4 |
23 | Correct | 1 ms | 2636 KB | Correct answer: answer = 1 |
24 | Correct | 2 ms | 2560 KB | Correct answer: answer = 5 |
25 | Correct | 2 ms | 2636 KB | Correct answer: answer = 41 |
26 | Correct | 2 ms | 2636 KB | Correct answer: answer = 71923 |
27 | Correct | 2 ms | 2636 KB | Correct answer: answer = 77137 |
28 | Correct | 2 ms | 2636 KB | Correct answer: answer = 764 |
29 | Correct | 2 ms | 2636 KB | Correct answer: answer = 250000 |
30 | Correct | 2 ms | 2636 KB | Correct answer: answer = 500 |
31 | Correct | 2 ms | 2636 KB | Correct answer: answer = 32 |
32 | Correct | 3 ms | 2636 KB | Correct answer: answer = 130050 |
33 | Correct | 2 ms | 2636 KB | Correct answer: answer = 5110 |
34 | Correct | 2 ms | 2636 KB | Correct answer: answer = 2626 |
35 | Correct | 2 ms | 2636 KB | Correct answer: answer = 796 |
36 | Correct | 3 ms | 2636 KB | Correct answer: answer = 7580 |
37 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1904 |
38 | Correct | 2 ms | 2636 KB | Correct answer: answer = 996004 |
39 | Correct | 2 ms | 2636 KB | Correct answer: answer = 38817 |
40 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4096 |
41 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1 |
42 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1 |
43 | Correct | 2 ms | 2636 KB | Correct answer: answer = 2040 |
44 | Correct | 2 ms | 2636 KB | Correct answer: answer = 2 |
45 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4 |
46 | Correct | 2 ms | 2636 KB | Correct answer: answer = 9 |
47 | Correct | 2 ms | 2636 KB | Correct answer: answer = 9 |
48 | Correct | 2 ms | 2636 KB | Correct answer: answer = 21 |
49 | Correct | 2 ms | 2636 KB | Correct answer: answer = 71 |
50 | Correct | 2 ms | 2636 KB | Correct answer: answer = 77 |
51 | Correct | 2 ms | 2636 KB | Correct answer: answer = 400 |
52 | Correct | 2 ms | 2636 KB | Correct answer: answer = 996004 |
53 | Correct | 2 ms | 2636 KB | Correct answer: answer = 997310 |
54 | Correct | 2 ms | 2644 KB | Correct answer: answer = 990781 |
55 | Correct | 2 ms | 2636 KB | Correct answer: answer = 996545 |
56 | Correct | 2 ms | 2636 KB | Correct answer: answer = 484 |
57 | Correct | 2 ms | 2636 KB | Correct answer: answer = 484 |
58 | Correct | 2 ms | 2636 KB | Correct answer: answer = 63501 |
59 | Correct | 2 ms | 2636 KB | Correct answer: answer = 323501 |
60 | Correct | 2 ms | 2636 KB | Correct answer: answer = 752500 |
61 | Correct | 2 ms | 2636 KB | Correct answer: answer = 761480 |
62 | Correct | 2 ms | 2636 KB | Correct answer: answer = 758932 |
63 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1000000 |
64 | Correct | 2 ms | 2676 KB | Correct answer: answer = 750500 |
65 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1000000 |
66 | Correct | 2 ms | 2636 KB | Correct answer: answer = 250000 |
67 | Correct | 2 ms | 2636 KB | Correct answer: answer = 250000 |
68 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1000000 |
69 | Correct | 2 ms | 2636 KB | Correct answer: answer = 994009 |
70 | Correct | 2 ms | 2636 KB | Correct answer: answer = 59315 |
71 | Correct | 3 ms | 2636 KB | Correct answer: answer = 25454 |
72 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1504 |
73 | Correct | 2 ms | 2636 KB | Correct answer: answer = 37486 |
74 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4284 |
75 | Correct | 2 ms | 2636 KB | Correct answer: answer = 158008 |
76 | Correct | 2 ms | 2636 KB | Correct answer: answer = 51860 |
77 | Correct | 2 ms | 2636 KB | Correct answer: answer = 12985 |
78 | Incorrect | 3 ms | 2764 KB | Wrong answer: output = 1454759932, expected = 997864126212 |
79 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 2636 KB | Correct answer: answer = 4 |
2 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4 |
3 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4 |
4 | Correct | 1 ms | 2636 KB | Correct answer: answer = 12 |
5 | Correct | 1 ms | 2636 KB | Correct answer: answer = 52 |
6 | Correct | 1 ms | 2636 KB | Correct answer: answer = 210 |
7 | Correct | 2 ms | 2636 KB | Correct answer: answer = 88 |
8 | Correct | 2 ms | 2636 KB | Correct answer: answer = 7696 |
9 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1 |
10 | Correct | 2 ms | 2636 KB | Correct answer: answer = 2374 |
11 | Correct | 2 ms | 2636 KB | Correct answer: answer = 9502 |
12 | Correct | 2 ms | 2636 KB | Correct answer: answer = 49 |
13 | Correct | 2 ms | 2636 KB | Correct answer: answer = 151 |
14 | Correct | 2 ms | 2636 KB | Correct answer: answer = 7550 |
15 | Correct | 2 ms | 2636 KB | Correct answer: answer = 7220 |
16 | Correct | 2 ms | 2636 KB | Correct answer: answer = 7550 |
17 | Correct | 2 ms | 2636 KB | Correct answer: answer = 10000 |
18 | Correct | 2 ms | 2636 KB | Correct answer: answer = 10000 |
19 | Correct | 2 ms | 2636 KB | Correct answer: answer = 624 |
20 | Correct | 2 ms | 2636 KB | Correct answer: answer = 10000 |
21 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1 |
22 | Correct | 1 ms | 2636 KB | Correct answer: answer = 4 |
23 | Correct | 1 ms | 2636 KB | Correct answer: answer = 1 |
24 | Correct | 2 ms | 2560 KB | Correct answer: answer = 5 |
25 | Correct | 2 ms | 2636 KB | Correct answer: answer = 41 |
26 | Correct | 2 ms | 2636 KB | Correct answer: answer = 71923 |
27 | Correct | 2 ms | 2636 KB | Correct answer: answer = 77137 |
28 | Correct | 2 ms | 2636 KB | Correct answer: answer = 764 |
29 | Correct | 2 ms | 2636 KB | Correct answer: answer = 250000 |
30 | Correct | 2 ms | 2636 KB | Correct answer: answer = 500 |
31 | Correct | 2 ms | 2636 KB | Correct answer: answer = 32 |
32 | Correct | 3 ms | 2636 KB | Correct answer: answer = 130050 |
33 | Correct | 2 ms | 2636 KB | Correct answer: answer = 5110 |
34 | Correct | 2 ms | 2636 KB | Correct answer: answer = 2626 |
35 | Correct | 2 ms | 2636 KB | Correct answer: answer = 796 |
36 | Correct | 3 ms | 2636 KB | Correct answer: answer = 7580 |
37 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1904 |
38 | Correct | 2 ms | 2636 KB | Correct answer: answer = 996004 |
39 | Correct | 2 ms | 2636 KB | Correct answer: answer = 38817 |
40 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4096 |
41 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1 |
42 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1 |
43 | Correct | 2 ms | 2636 KB | Correct answer: answer = 2040 |
44 | Correct | 2 ms | 2636 KB | Correct answer: answer = 2 |
45 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4 |
46 | Correct | 2 ms | 2636 KB | Correct answer: answer = 9 |
47 | Correct | 2 ms | 2636 KB | Correct answer: answer = 9 |
48 | Correct | 2 ms | 2636 KB | Correct answer: answer = 21 |
49 | Correct | 2 ms | 2636 KB | Correct answer: answer = 71 |
50 | Correct | 2 ms | 2636 KB | Correct answer: answer = 77 |
51 | Correct | 2 ms | 2636 KB | Correct answer: answer = 400 |
52 | Correct | 2 ms | 2636 KB | Correct answer: answer = 996004 |
53 | Correct | 2 ms | 2636 KB | Correct answer: answer = 997310 |
54 | Correct | 2 ms | 2644 KB | Correct answer: answer = 990781 |
55 | Correct | 2 ms | 2636 KB | Correct answer: answer = 996545 |
56 | Correct | 2 ms | 2636 KB | Correct answer: answer = 484 |
57 | Correct | 2 ms | 2636 KB | Correct answer: answer = 484 |
58 | Correct | 2 ms | 2636 KB | Correct answer: answer = 63501 |
59 | Correct | 2 ms | 2636 KB | Correct answer: answer = 323501 |
60 | Correct | 2 ms | 2636 KB | Correct answer: answer = 752500 |
61 | Correct | 2 ms | 2636 KB | Correct answer: answer = 761480 |
62 | Correct | 2 ms | 2636 KB | Correct answer: answer = 758932 |
63 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1000000 |
64 | Correct | 2 ms | 2676 KB | Correct answer: answer = 750500 |
65 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1000000 |
66 | Correct | 2 ms | 2636 KB | Correct answer: answer = 250000 |
67 | Correct | 2 ms | 2636 KB | Correct answer: answer = 250000 |
68 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1000000 |
69 | Correct | 2 ms | 2636 KB | Correct answer: answer = 994009 |
70 | Correct | 2 ms | 2636 KB | Correct answer: answer = 59315 |
71 | Correct | 3 ms | 2636 KB | Correct answer: answer = 25454 |
72 | Correct | 2 ms | 2636 KB | Correct answer: answer = 1504 |
73 | Correct | 2 ms | 2636 KB | Correct answer: answer = 37486 |
74 | Correct | 2 ms | 2636 KB | Correct answer: answer = 4284 |
75 | Correct | 2 ms | 2636 KB | Correct answer: answer = 158008 |
76 | Correct | 2 ms | 2636 KB | Correct answer: answer = 51860 |
77 | Correct | 2 ms | 2636 KB | Correct answer: answer = 12985 |
78 | Incorrect | 3 ms | 2764 KB | Wrong answer: output = 1454759932, expected = 997864126212 |
79 | Halted | 0 ms | 0 KB | - |