# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
389091 | 2021-04-13T15:41:59 Z | alishahali1382 | Aliens (IOI16_aliens) | C++14 | 986 ms | 759688 KB |
#include "aliens.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; #define debug(x) {cerr<<#x<<"="<<x<<"\n";} #define debug2(x, y) {cerr<<#x<<", "<<#y<<" = "<<x<<", "<<y<<"\n";} #define debugp(p) {cerr<<#p<<"={"<<p.first<<", "<<p.second<<"}\n";} #define pb push_back #define all(x) x.begin(), x.end() const int inf=1000001000; const ll INF=10000000010000000; const int MAXN=4010, K=4005; int n, m, k; pii A[MAXN]; ll dp[MAXN][K]; ll Inter(pll a, pll b){ if (a.first==b.first) return (a.second<=b.second?-INF:INF); return (a.second-b.second)/(b.first-a.first) + ((a.second-b.second)%(b.first-a.first)>0); } struct CHT{ pair<ll, pll> A[MAXN]; int L, R; inline void Add(pll x){ while (L<R && Inter(A[R-1].second, x)<=A[R-1].first) R--; if (L==R) A[R++]={-INF, x}; else A[R]={Inter(A[R-1].second, x), x}, R++; } inline ll Get(ll x){ while (L+1<R && A[L+1].first<=x) L++; pll p=A[L].second; return p.first*x+p.second; } } cht[K]; inline ll _sq(ll x){ return x*x;} ll take_photos(int _n, int _m, int _k, vector<int> r, vector<int> c) { k=_k; m=_m; vector<pii> vec; for (int i=0; i<_n; i++) vec.pb({min(r[i], c[i]), max(r[i], c[i])}); sort(all(vec), [](pii i, pii j){ if (i.second!=j.second) return i.second<j.second; return i.first>j.first; }); for (pii p:vec){ while (n && p.first<=A[n].first) n--; A[++n]=p; } // for (int i=1; i<=n; i++) debugp(A[i]) k=min(k, n); memset(dp, 63, sizeof(dp)); for (int i=0; i<=k; i++) dp[0][i]=0; for (int i=1; i<=n; i++){ for (int t=0; t<k; t++){ ll val=_sq(A[i].first)+dp[i-1][t]; if (i!=1 && A[i].first<=A[i-1].second) val-=_sq(A[i-1].second-A[i].first+1); cht[t].Add({2*A[i].first, -val}); } for (int t=1; t<=k; t++){ dp[i][t]=_sq(A[i].second+1)-cht[t-1].Get(A[i].second+1); } } return dp[n][k]; }
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 254 ms | 503256 KB | Correct answer: answer = 4 |
2 | Correct | 259 ms | 503144 KB | Correct answer: answer = 4 |
3 | Correct | 253 ms | 503064 KB | Correct answer: answer = 4 |
4 | Correct | 250 ms | 503124 KB | Correct answer: answer = 12 |
5 | Correct | 263 ms | 503260 KB | Correct answer: answer = 52 |
6 | Correct | 257 ms | 503056 KB | Correct answer: answer = 210 |
7 | Correct | 248 ms | 503108 KB | Correct answer: answer = 88 |
8 | Correct | 249 ms | 503224 KB | Correct answer: answer = 7696 |
9 | Correct | 251 ms | 503240 KB | Correct answer: answer = 1 |
10 | Correct | 248 ms | 503108 KB | Correct answer: answer = 2374 |
11 | Correct | 255 ms | 503120 KB | Correct answer: answer = 9502 |
12 | Correct | 251 ms | 503108 KB | Correct answer: answer = 49 |
13 | Correct | 245 ms | 503108 KB | Correct answer: answer = 151 |
14 | Correct | 278 ms | 503228 KB | Correct answer: answer = 7550 |
15 | Correct | 252 ms | 503168 KB | Correct answer: answer = 7220 |
16 | Correct | 254 ms | 503092 KB | Correct answer: answer = 7550 |
17 | Correct | 249 ms | 503056 KB | Correct answer: answer = 10000 |
18 | Correct | 248 ms | 503116 KB | Correct answer: answer = 10000 |
19 | Correct | 251 ms | 503072 KB | Correct answer: answer = 624 |
20 | Correct | 250 ms | 503144 KB | Correct answer: answer = 10000 |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 254 ms | 503128 KB | Correct answer: answer = 1 |
2 | Correct | 258 ms | 503068 KB | Correct answer: answer = 4 |
3 | Correct | 255 ms | 503080 KB | Correct answer: answer = 1 |
4 | Correct | 249 ms | 503156 KB | Correct answer: answer = 5 |
5 | Correct | 249 ms | 503108 KB | Correct answer: answer = 41 |
6 | Correct | 250 ms | 503108 KB | Correct answer: answer = 71923 |
7 | Correct | 249 ms | 503132 KB | Correct answer: answer = 77137 |
8 | Correct | 254 ms | 503128 KB | Correct answer: answer = 764 |
9 | Correct | 250 ms | 503108 KB | Correct answer: answer = 250000 |
10 | Correct | 257 ms | 503236 KB | Correct answer: answer = 500 |
11 | Correct | 250 ms | 503108 KB | Correct answer: answer = 32 |
12 | Correct | 254 ms | 503096 KB | Correct answer: answer = 130050 |
13 | Correct | 255 ms | 503192 KB | Correct answer: answer = 5110 |
14 | Correct | 257 ms | 503108 KB | Correct answer: answer = 2626 |
15 | Correct | 275 ms | 503132 KB | Correct answer: answer = 796 |
16 | Correct | 249 ms | 503180 KB | Correct answer: answer = 7580 |
17 | Correct | 254 ms | 503104 KB | Correct answer: answer = 1904 |
18 | Correct | 247 ms | 503156 KB | Correct answer: answer = 996004 |
19 | Correct | 267 ms | 503112 KB | Correct answer: answer = 38817 |
20 | Correct | 250 ms | 503176 KB | Correct answer: answer = 4096 |
21 | Correct | 246 ms | 503108 KB | Correct answer: answer = 1 |
22 | Correct | 253 ms | 503272 KB | Correct answer: answer = 1 |
23 | Correct | 249 ms | 503148 KB | Correct answer: answer = 2040 |
24 | Correct | 247 ms | 503148 KB | Correct answer: answer = 2 |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 254 ms | 503256 KB | Correct answer: answer = 4 |
2 | Correct | 259 ms | 503144 KB | Correct answer: answer = 4 |
3 | Correct | 253 ms | 503064 KB | Correct answer: answer = 4 |
4 | Correct | 250 ms | 503124 KB | Correct answer: answer = 12 |
5 | Correct | 263 ms | 503260 KB | Correct answer: answer = 52 |
6 | Correct | 257 ms | 503056 KB | Correct answer: answer = 210 |
7 | Correct | 248 ms | 503108 KB | Correct answer: answer = 88 |
8 | Correct | 249 ms | 503224 KB | Correct answer: answer = 7696 |
9 | Correct | 251 ms | 503240 KB | Correct answer: answer = 1 |
10 | Correct | 248 ms | 503108 KB | Correct answer: answer = 2374 |
11 | Correct | 255 ms | 503120 KB | Correct answer: answer = 9502 |
12 | Correct | 251 ms | 503108 KB | Correct answer: answer = 49 |
13 | Correct | 245 ms | 503108 KB | Correct answer: answer = 151 |
14 | Correct | 278 ms | 503228 KB | Correct answer: answer = 7550 |
15 | Correct | 252 ms | 503168 KB | Correct answer: answer = 7220 |
16 | Correct | 254 ms | 503092 KB | Correct answer: answer = 7550 |
17 | Correct | 249 ms | 503056 KB | Correct answer: answer = 10000 |
18 | Correct | 248 ms | 503116 KB | Correct answer: answer = 10000 |
19 | Correct | 251 ms | 503072 KB | Correct answer: answer = 624 |
20 | Correct | 250 ms | 503144 KB | Correct answer: answer = 10000 |
21 | Correct | 254 ms | 503128 KB | Correct answer: answer = 1 |
22 | Correct | 258 ms | 503068 KB | Correct answer: answer = 4 |
23 | Correct | 255 ms | 503080 KB | Correct answer: answer = 1 |
24 | Correct | 249 ms | 503156 KB | Correct answer: answer = 5 |
25 | Correct | 249 ms | 503108 KB | Correct answer: answer = 41 |
26 | Correct | 250 ms | 503108 KB | Correct answer: answer = 71923 |
27 | Correct | 249 ms | 503132 KB | Correct answer: answer = 77137 |
28 | Correct | 254 ms | 503128 KB | Correct answer: answer = 764 |
29 | Correct | 250 ms | 503108 KB | Correct answer: answer = 250000 |
30 | Correct | 257 ms | 503236 KB | Correct answer: answer = 500 |
31 | Correct | 250 ms | 503108 KB | Correct answer: answer = 32 |
32 | Correct | 254 ms | 503096 KB | Correct answer: answer = 130050 |
33 | Correct | 255 ms | 503192 KB | Correct answer: answer = 5110 |
34 | Correct | 257 ms | 503108 KB | Correct answer: answer = 2626 |
35 | Correct | 275 ms | 503132 KB | Correct answer: answer = 796 |
36 | Correct | 249 ms | 503180 KB | Correct answer: answer = 7580 |
37 | Correct | 254 ms | 503104 KB | Correct answer: answer = 1904 |
38 | Correct | 247 ms | 503156 KB | Correct answer: answer = 996004 |
39 | Correct | 267 ms | 503112 KB | Correct answer: answer = 38817 |
40 | Correct | 250 ms | 503176 KB | Correct answer: answer = 4096 |
41 | Correct | 246 ms | 503108 KB | Correct answer: answer = 1 |
42 | Correct | 253 ms | 503272 KB | Correct answer: answer = 1 |
43 | Correct | 249 ms | 503148 KB | Correct answer: answer = 2040 |
44 | Correct | 247 ms | 503148 KB | Correct answer: answer = 2 |
45 | Correct | 250 ms | 503124 KB | Correct answer: answer = 4 |
46 | Correct | 253 ms | 503076 KB | Correct answer: answer = 9 |
47 | Correct | 257 ms | 503156 KB | Correct answer: answer = 9 |
48 | Correct | 252 ms | 503268 KB | Correct answer: answer = 21 |
49 | Correct | 251 ms | 503080 KB | Correct answer: answer = 71 |
50 | Correct | 253 ms | 503252 KB | Correct answer: answer = 77 |
51 | Correct | 247 ms | 503108 KB | Correct answer: answer = 400 |
52 | Correct | 254 ms | 503076 KB | Correct answer: answer = 996004 |
53 | Correct | 260 ms | 503084 KB | Correct answer: answer = 997310 |
54 | Correct | 247 ms | 503092 KB | Correct answer: answer = 990781 |
55 | Correct | 259 ms | 503188 KB | Correct answer: answer = 996545 |
56 | Correct | 249 ms | 503188 KB | Correct answer: answer = 484 |
57 | Correct | 251 ms | 503140 KB | Correct answer: answer = 484 |
58 | Correct | 257 ms | 503108 KB | Correct answer: answer = 63501 |
59 | Correct | 249 ms | 503172 KB | Correct answer: answer = 323501 |
60 | Correct | 249 ms | 503104 KB | Correct answer: answer = 752500 |
61 | Correct | 251 ms | 503232 KB | Correct answer: answer = 761480 |
62 | Correct | 253 ms | 503168 KB | Correct answer: answer = 758932 |
63 | Correct | 249 ms | 503108 KB | Correct answer: answer = 1000000 |
64 | Correct | 270 ms | 503072 KB | Correct answer: answer = 750500 |
65 | Correct | 251 ms | 503108 KB | Correct answer: answer = 1000000 |
66 | Correct | 254 ms | 503124 KB | Correct answer: answer = 250000 |
67 | Correct | 252 ms | 503192 KB | Correct answer: answer = 250000 |
68 | Correct | 255 ms | 503136 KB | Correct answer: answer = 1000000 |
69 | Correct | 249 ms | 503236 KB | Correct answer: answer = 994009 |
70 | Correct | 250 ms | 503156 KB | Correct answer: answer = 59315 |
71 | Correct | 294 ms | 503092 KB | Correct answer: answer = 25454 |
72 | Correct | 254 ms | 503172 KB | Correct answer: answer = 1504 |
73 | Correct | 250 ms | 503112 KB | Correct answer: answer = 37486 |
74 | Correct | 251 ms | 503100 KB | Correct answer: answer = 4284 |
75 | Correct | 252 ms | 503224 KB | Correct answer: answer = 158008 |
76 | Correct | 251 ms | 503132 KB | Correct answer: answer = 51860 |
77 | Correct | 251 ms | 503116 KB | Correct answer: answer = 12985 |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 254 ms | 503256 KB | Correct answer: answer = 4 |
2 | Correct | 259 ms | 503144 KB | Correct answer: answer = 4 |
3 | Correct | 253 ms | 503064 KB | Correct answer: answer = 4 |
4 | Correct | 250 ms | 503124 KB | Correct answer: answer = 12 |
5 | Correct | 263 ms | 503260 KB | Correct answer: answer = 52 |
6 | Correct | 257 ms | 503056 KB | Correct answer: answer = 210 |
7 | Correct | 248 ms | 503108 KB | Correct answer: answer = 88 |
8 | Correct | 249 ms | 503224 KB | Correct answer: answer = 7696 |
9 | Correct | 251 ms | 503240 KB | Correct answer: answer = 1 |
10 | Correct | 248 ms | 503108 KB | Correct answer: answer = 2374 |
11 | Correct | 255 ms | 503120 KB | Correct answer: answer = 9502 |
12 | Correct | 251 ms | 503108 KB | Correct answer: answer = 49 |
13 | Correct | 245 ms | 503108 KB | Correct answer: answer = 151 |
14 | Correct | 278 ms | 503228 KB | Correct answer: answer = 7550 |
15 | Correct | 252 ms | 503168 KB | Correct answer: answer = 7220 |
16 | Correct | 254 ms | 503092 KB | Correct answer: answer = 7550 |
17 | Correct | 249 ms | 503056 KB | Correct answer: answer = 10000 |
18 | Correct | 248 ms | 503116 KB | Correct answer: answer = 10000 |
19 | Correct | 251 ms | 503072 KB | Correct answer: answer = 624 |
20 | Correct | 250 ms | 503144 KB | Correct answer: answer = 10000 |
21 | Correct | 254 ms | 503128 KB | Correct answer: answer = 1 |
22 | Correct | 258 ms | 503068 KB | Correct answer: answer = 4 |
23 | Correct | 255 ms | 503080 KB | Correct answer: answer = 1 |
24 | Correct | 249 ms | 503156 KB | Correct answer: answer = 5 |
25 | Correct | 249 ms | 503108 KB | Correct answer: answer = 41 |
26 | Correct | 250 ms | 503108 KB | Correct answer: answer = 71923 |
27 | Correct | 249 ms | 503132 KB | Correct answer: answer = 77137 |
28 | Correct | 254 ms | 503128 KB | Correct answer: answer = 764 |
29 | Correct | 250 ms | 503108 KB | Correct answer: answer = 250000 |
30 | Correct | 257 ms | 503236 KB | Correct answer: answer = 500 |
31 | Correct | 250 ms | 503108 KB | Correct answer: answer = 32 |
32 | Correct | 254 ms | 503096 KB | Correct answer: answer = 130050 |
33 | Correct | 255 ms | 503192 KB | Correct answer: answer = 5110 |
34 | Correct | 257 ms | 503108 KB | Correct answer: answer = 2626 |
35 | Correct | 275 ms | 503132 KB | Correct answer: answer = 796 |
36 | Correct | 249 ms | 503180 KB | Correct answer: answer = 7580 |
37 | Correct | 254 ms | 503104 KB | Correct answer: answer = 1904 |
38 | Correct | 247 ms | 503156 KB | Correct answer: answer = 996004 |
39 | Correct | 267 ms | 503112 KB | Correct answer: answer = 38817 |
40 | Correct | 250 ms | 503176 KB | Correct answer: answer = 4096 |
41 | Correct | 246 ms | 503108 KB | Correct answer: answer = 1 |
42 | Correct | 253 ms | 503272 KB | Correct answer: answer = 1 |
43 | Correct | 249 ms | 503148 KB | Correct answer: answer = 2040 |
44 | Correct | 247 ms | 503148 KB | Correct answer: answer = 2 |
45 | Correct | 250 ms | 503124 KB | Correct answer: answer = 4 |
46 | Correct | 253 ms | 503076 KB | Correct answer: answer = 9 |
47 | Correct | 257 ms | 503156 KB | Correct answer: answer = 9 |
48 | Correct | 252 ms | 503268 KB | Correct answer: answer = 21 |
49 | Correct | 251 ms | 503080 KB | Correct answer: answer = 71 |
50 | Correct | 253 ms | 503252 KB | Correct answer: answer = 77 |
51 | Correct | 247 ms | 503108 KB | Correct answer: answer = 400 |
52 | Correct | 254 ms | 503076 KB | Correct answer: answer = 996004 |
53 | Correct | 260 ms | 503084 KB | Correct answer: answer = 997310 |
54 | Correct | 247 ms | 503092 KB | Correct answer: answer = 990781 |
55 | Correct | 259 ms | 503188 KB | Correct answer: answer = 996545 |
56 | Correct | 249 ms | 503188 KB | Correct answer: answer = 484 |
57 | Correct | 251 ms | 503140 KB | Correct answer: answer = 484 |
58 | Correct | 257 ms | 503108 KB | Correct answer: answer = 63501 |
59 | Correct | 249 ms | 503172 KB | Correct answer: answer = 323501 |
60 | Correct | 249 ms | 503104 KB | Correct answer: answer = 752500 |
61 | Correct | 251 ms | 503232 KB | Correct answer: answer = 761480 |
62 | Correct | 253 ms | 503168 KB | Correct answer: answer = 758932 |
63 | Correct | 249 ms | 503108 KB | Correct answer: answer = 1000000 |
64 | Correct | 270 ms | 503072 KB | Correct answer: answer = 750500 |
65 | Correct | 251 ms | 503108 KB | Correct answer: answer = 1000000 |
66 | Correct | 254 ms | 503124 KB | Correct answer: answer = 250000 |
67 | Correct | 252 ms | 503192 KB | Correct answer: answer = 250000 |
68 | Correct | 255 ms | 503136 KB | Correct answer: answer = 1000000 |
69 | Correct | 249 ms | 503236 KB | Correct answer: answer = 994009 |
70 | Correct | 250 ms | 503156 KB | Correct answer: answer = 59315 |
71 | Correct | 294 ms | 503092 KB | Correct answer: answer = 25454 |
72 | Correct | 254 ms | 503172 KB | Correct answer: answer = 1504 |
73 | Correct | 250 ms | 503112 KB | Correct answer: answer = 37486 |
74 | Correct | 251 ms | 503100 KB | Correct answer: answer = 4284 |
75 | Correct | 252 ms | 503224 KB | Correct answer: answer = 158008 |
76 | Correct | 251 ms | 503132 KB | Correct answer: answer = 51860 |
77 | Correct | 251 ms | 503116 KB | Correct answer: answer = 12985 |
78 | Correct | 252 ms | 503244 KB | Correct answer: answer = 997864126212 |
79 | Correct | 249 ms | 503260 KB | Correct answer: answer = 998608411647 |
80 | Correct | 261 ms | 503276 KB | Correct answer: answer = 995265560477 |
81 | Correct | 263 ms | 503364 KB | Correct answer: answer = 10125000 |
82 | Correct | 256 ms | 503304 KB | Correct answer: answer = 2291668 |
83 | Correct | 258 ms | 503264 KB | Correct answer: answer = 42388 |
84 | Correct | 280 ms | 503220 KB | Correct answer: answer = 10318 |
85 | Correct | 495 ms | 503260 KB | Correct answer: answer = 3416 |
86 | Correct | 254 ms | 503344 KB | Correct answer: answer = 331708193881 |
87 | Correct | 287 ms | 503460 KB | Correct answer: answer = 2861193756 |
88 | Correct | 737 ms | 503376 KB | Correct answer: answer = 114646930 |
89 | Correct | 263 ms | 503348 KB | Correct answer: answer = 9280921 |
90 | Correct | 287 ms | 503372 KB | Correct answer: answer = 999984053400 |
91 | Correct | 590 ms | 503364 KB | Correct answer: answer = 750935949134 |
92 | Correct | 251 ms | 503320 KB | Correct answer: answer = 1000000000000 |
93 | Correct | 249 ms | 503348 KB | Correct answer: answer = 998762383161 |
94 | Correct | 258 ms | 503308 KB | Correct answer: answer = 23017412908 |
95 | Correct | 268 ms | 503236 KB | Correct answer: answer = 728143410622 |
96 | Correct | 253 ms | 503364 KB | Correct answer: answer = 2 |
97 | Correct | 255 ms | 503288 KB | Correct answer: answer = 1824916 |
98 | Correct | 345 ms | 503400 KB | Correct answer: answer = 10680029 |
99 | Correct | 286 ms | 503324 KB | Correct answer: answer = 18351700 |
100 | Correct | 261 ms | 503364 KB | Correct answer: answer = 16040026 |
101 | Correct | 249 ms | 503316 KB | Correct answer: answer = 253968628325 |
102 | Correct | 407 ms | 503236 KB | Correct answer: answer = 10267 |
103 | Correct | 894 ms | 503324 KB | Correct answer: answer = 2582408 |
104 | Correct | 252 ms | 503356 KB | Correct answer: answer = 78024964781 |
105 | Correct | 252 ms | 503332 KB | Correct answer: answer = 9866346457 |
106 | Correct | 255 ms | 503304 KB | Correct answer: answer = 3327720949 |
107 | Correct | 262 ms | 503336 KB | Correct answer: answer = 86064128360 |
108 | Correct | 286 ms | 503236 KB | Correct answer: answer = 12698259150 |
109 | Correct | 986 ms | 503348 KB | Correct answer: answer = 1185259288 |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 254 ms | 503256 KB | Correct answer: answer = 4 |
2 | Correct | 259 ms | 503144 KB | Correct answer: answer = 4 |
3 | Correct | 253 ms | 503064 KB | Correct answer: answer = 4 |
4 | Correct | 250 ms | 503124 KB | Correct answer: answer = 12 |
5 | Correct | 263 ms | 503260 KB | Correct answer: answer = 52 |
6 | Correct | 257 ms | 503056 KB | Correct answer: answer = 210 |
7 | Correct | 248 ms | 503108 KB | Correct answer: answer = 88 |
8 | Correct | 249 ms | 503224 KB | Correct answer: answer = 7696 |
9 | Correct | 251 ms | 503240 KB | Correct answer: answer = 1 |
10 | Correct | 248 ms | 503108 KB | Correct answer: answer = 2374 |
11 | Correct | 255 ms | 503120 KB | Correct answer: answer = 9502 |
12 | Correct | 251 ms | 503108 KB | Correct answer: answer = 49 |
13 | Correct | 245 ms | 503108 KB | Correct answer: answer = 151 |
14 | Correct | 278 ms | 503228 KB | Correct answer: answer = 7550 |
15 | Correct | 252 ms | 503168 KB | Correct answer: answer = 7220 |
16 | Correct | 254 ms | 503092 KB | Correct answer: answer = 7550 |
17 | Correct | 249 ms | 503056 KB | Correct answer: answer = 10000 |
18 | Correct | 248 ms | 503116 KB | Correct answer: answer = 10000 |
19 | Correct | 251 ms | 503072 KB | Correct answer: answer = 624 |
20 | Correct | 250 ms | 503144 KB | Correct answer: answer = 10000 |
21 | Correct | 254 ms | 503128 KB | Correct answer: answer = 1 |
22 | Correct | 258 ms | 503068 KB | Correct answer: answer = 4 |
23 | Correct | 255 ms | 503080 KB | Correct answer: answer = 1 |
24 | Correct | 249 ms | 503156 KB | Correct answer: answer = 5 |
25 | Correct | 249 ms | 503108 KB | Correct answer: answer = 41 |
26 | Correct | 250 ms | 503108 KB | Correct answer: answer = 71923 |
27 | Correct | 249 ms | 503132 KB | Correct answer: answer = 77137 |
28 | Correct | 254 ms | 503128 KB | Correct answer: answer = 764 |
29 | Correct | 250 ms | 503108 KB | Correct answer: answer = 250000 |
30 | Correct | 257 ms | 503236 KB | Correct answer: answer = 500 |
31 | Correct | 250 ms | 503108 KB | Correct answer: answer = 32 |
32 | Correct | 254 ms | 503096 KB | Correct answer: answer = 130050 |
33 | Correct | 255 ms | 503192 KB | Correct answer: answer = 5110 |
34 | Correct | 257 ms | 503108 KB | Correct answer: answer = 2626 |
35 | Correct | 275 ms | 503132 KB | Correct answer: answer = 796 |
36 | Correct | 249 ms | 503180 KB | Correct answer: answer = 7580 |
37 | Correct | 254 ms | 503104 KB | Correct answer: answer = 1904 |
38 | Correct | 247 ms | 503156 KB | Correct answer: answer = 996004 |
39 | Correct | 267 ms | 503112 KB | Correct answer: answer = 38817 |
40 | Correct | 250 ms | 503176 KB | Correct answer: answer = 4096 |
41 | Correct | 246 ms | 503108 KB | Correct answer: answer = 1 |
42 | Correct | 253 ms | 503272 KB | Correct answer: answer = 1 |
43 | Correct | 249 ms | 503148 KB | Correct answer: answer = 2040 |
44 | Correct | 247 ms | 503148 KB | Correct answer: answer = 2 |
45 | Correct | 250 ms | 503124 KB | Correct answer: answer = 4 |
46 | Correct | 253 ms | 503076 KB | Correct answer: answer = 9 |
47 | Correct | 257 ms | 503156 KB | Correct answer: answer = 9 |
48 | Correct | 252 ms | 503268 KB | Correct answer: answer = 21 |
49 | Correct | 251 ms | 503080 KB | Correct answer: answer = 71 |
50 | Correct | 253 ms | 503252 KB | Correct answer: answer = 77 |
51 | Correct | 247 ms | 503108 KB | Correct answer: answer = 400 |
52 | Correct | 254 ms | 503076 KB | Correct answer: answer = 996004 |
53 | Correct | 260 ms | 503084 KB | Correct answer: answer = 997310 |
54 | Correct | 247 ms | 503092 KB | Correct answer: answer = 990781 |
55 | Correct | 259 ms | 503188 KB | Correct answer: answer = 996545 |
56 | Correct | 249 ms | 503188 KB | Correct answer: answer = 484 |
57 | Correct | 251 ms | 503140 KB | Correct answer: answer = 484 |
58 | Correct | 257 ms | 503108 KB | Correct answer: answer = 63501 |
59 | Correct | 249 ms | 503172 KB | Correct answer: answer = 323501 |
60 | Correct | 249 ms | 503104 KB | Correct answer: answer = 752500 |
61 | Correct | 251 ms | 503232 KB | Correct answer: answer = 761480 |
62 | Correct | 253 ms | 503168 KB | Correct answer: answer = 758932 |
63 | Correct | 249 ms | 503108 KB | Correct answer: answer = 1000000 |
64 | Correct | 270 ms | 503072 KB | Correct answer: answer = 750500 |
65 | Correct | 251 ms | 503108 KB | Correct answer: answer = 1000000 |
66 | Correct | 254 ms | 503124 KB | Correct answer: answer = 250000 |
67 | Correct | 252 ms | 503192 KB | Correct answer: answer = 250000 |
68 | Correct | 255 ms | 503136 KB | Correct answer: answer = 1000000 |
69 | Correct | 249 ms | 503236 KB | Correct answer: answer = 994009 |
70 | Correct | 250 ms | 503156 KB | Correct answer: answer = 59315 |
71 | Correct | 294 ms | 503092 KB | Correct answer: answer = 25454 |
72 | Correct | 254 ms | 503172 KB | Correct answer: answer = 1504 |
73 | Correct | 250 ms | 503112 KB | Correct answer: answer = 37486 |
74 | Correct | 251 ms | 503100 KB | Correct answer: answer = 4284 |
75 | Correct | 252 ms | 503224 KB | Correct answer: answer = 158008 |
76 | Correct | 251 ms | 503132 KB | Correct answer: answer = 51860 |
77 | Correct | 251 ms | 503116 KB | Correct answer: answer = 12985 |
78 | Correct | 252 ms | 503244 KB | Correct answer: answer = 997864126212 |
79 | Correct | 249 ms | 503260 KB | Correct answer: answer = 998608411647 |
80 | Correct | 261 ms | 503276 KB | Correct answer: answer = 995265560477 |
81 | Correct | 263 ms | 503364 KB | Correct answer: answer = 10125000 |
82 | Correct | 256 ms | 503304 KB | Correct answer: answer = 2291668 |
83 | Correct | 258 ms | 503264 KB | Correct answer: answer = 42388 |
84 | Correct | 280 ms | 503220 KB | Correct answer: answer = 10318 |
85 | Correct | 495 ms | 503260 KB | Correct answer: answer = 3416 |
86 | Correct | 254 ms | 503344 KB | Correct answer: answer = 331708193881 |
87 | Correct | 287 ms | 503460 KB | Correct answer: answer = 2861193756 |
88 | Correct | 737 ms | 503376 KB | Correct answer: answer = 114646930 |
89 | Correct | 263 ms | 503348 KB | Correct answer: answer = 9280921 |
90 | Correct | 287 ms | 503372 KB | Correct answer: answer = 999984053400 |
91 | Correct | 590 ms | 503364 KB | Correct answer: answer = 750935949134 |
92 | Correct | 251 ms | 503320 KB | Correct answer: answer = 1000000000000 |
93 | Correct | 249 ms | 503348 KB | Correct answer: answer = 998762383161 |
94 | Correct | 258 ms | 503308 KB | Correct answer: answer = 23017412908 |
95 | Correct | 268 ms | 503236 KB | Correct answer: answer = 728143410622 |
96 | Correct | 253 ms | 503364 KB | Correct answer: answer = 2 |
97 | Correct | 255 ms | 503288 KB | Correct answer: answer = 1824916 |
98 | Correct | 345 ms | 503400 KB | Correct answer: answer = 10680029 |
99 | Correct | 286 ms | 503324 KB | Correct answer: answer = 18351700 |
100 | Correct | 261 ms | 503364 KB | Correct answer: answer = 16040026 |
101 | Correct | 249 ms | 503316 KB | Correct answer: answer = 253968628325 |
102 | Correct | 407 ms | 503236 KB | Correct answer: answer = 10267 |
103 | Correct | 894 ms | 503324 KB | Correct answer: answer = 2582408 |
104 | Correct | 252 ms | 503356 KB | Correct answer: answer = 78024964781 |
105 | Correct | 252 ms | 503332 KB | Correct answer: answer = 9866346457 |
106 | Correct | 255 ms | 503304 KB | Correct answer: answer = 3327720949 |
107 | Correct | 262 ms | 503336 KB | Correct answer: answer = 86064128360 |
108 | Correct | 286 ms | 503236 KB | Correct answer: answer = 12698259150 |
109 | Correct | 986 ms | 503348 KB | Correct answer: answer = 1185259288 |
110 | Correct | 273 ms | 504756 KB | Correct answer: answer = 999889968863 |
111 | Correct | 269 ms | 504696 KB | Correct answer: answer = 999861384931 |
112 | Correct | 270 ms | 504764 KB | Correct answer: answer = 999811809929 |
113 | Correct | 277 ms | 504760 KB | Correct answer: answer = 999869756441 |
114 | Runtime error | 601 ms | 759688 KB | Execution killed with signal 11 |
115 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 254 ms | 503256 KB | Correct answer: answer = 4 |
2 | Correct | 259 ms | 503144 KB | Correct answer: answer = 4 |
3 | Correct | 253 ms | 503064 KB | Correct answer: answer = 4 |
4 | Correct | 250 ms | 503124 KB | Correct answer: answer = 12 |
5 | Correct | 263 ms | 503260 KB | Correct answer: answer = 52 |
6 | Correct | 257 ms | 503056 KB | Correct answer: answer = 210 |
7 | Correct | 248 ms | 503108 KB | Correct answer: answer = 88 |
8 | Correct | 249 ms | 503224 KB | Correct answer: answer = 7696 |
9 | Correct | 251 ms | 503240 KB | Correct answer: answer = 1 |
10 | Correct | 248 ms | 503108 KB | Correct answer: answer = 2374 |
11 | Correct | 255 ms | 503120 KB | Correct answer: answer = 9502 |
12 | Correct | 251 ms | 503108 KB | Correct answer: answer = 49 |
13 | Correct | 245 ms | 503108 KB | Correct answer: answer = 151 |
14 | Correct | 278 ms | 503228 KB | Correct answer: answer = 7550 |
15 | Correct | 252 ms | 503168 KB | Correct answer: answer = 7220 |
16 | Correct | 254 ms | 503092 KB | Correct answer: answer = 7550 |
17 | Correct | 249 ms | 503056 KB | Correct answer: answer = 10000 |
18 | Correct | 248 ms | 503116 KB | Correct answer: answer = 10000 |
19 | Correct | 251 ms | 503072 KB | Correct answer: answer = 624 |
20 | Correct | 250 ms | 503144 KB | Correct answer: answer = 10000 |
21 | Correct | 254 ms | 503128 KB | Correct answer: answer = 1 |
22 | Correct | 258 ms | 503068 KB | Correct answer: answer = 4 |
23 | Correct | 255 ms | 503080 KB | Correct answer: answer = 1 |
24 | Correct | 249 ms | 503156 KB | Correct answer: answer = 5 |
25 | Correct | 249 ms | 503108 KB | Correct answer: answer = 41 |
26 | Correct | 250 ms | 503108 KB | Correct answer: answer = 71923 |
27 | Correct | 249 ms | 503132 KB | Correct answer: answer = 77137 |
28 | Correct | 254 ms | 503128 KB | Correct answer: answer = 764 |
29 | Correct | 250 ms | 503108 KB | Correct answer: answer = 250000 |
30 | Correct | 257 ms | 503236 KB | Correct answer: answer = 500 |
31 | Correct | 250 ms | 503108 KB | Correct answer: answer = 32 |
32 | Correct | 254 ms | 503096 KB | Correct answer: answer = 130050 |
33 | Correct | 255 ms | 503192 KB | Correct answer: answer = 5110 |
34 | Correct | 257 ms | 503108 KB | Correct answer: answer = 2626 |
35 | Correct | 275 ms | 503132 KB | Correct answer: answer = 796 |
36 | Correct | 249 ms | 503180 KB | Correct answer: answer = 7580 |
37 | Correct | 254 ms | 503104 KB | Correct answer: answer = 1904 |
38 | Correct | 247 ms | 503156 KB | Correct answer: answer = 996004 |
39 | Correct | 267 ms | 503112 KB | Correct answer: answer = 38817 |
40 | Correct | 250 ms | 503176 KB | Correct answer: answer = 4096 |
41 | Correct | 246 ms | 503108 KB | Correct answer: answer = 1 |
42 | Correct | 253 ms | 503272 KB | Correct answer: answer = 1 |
43 | Correct | 249 ms | 503148 KB | Correct answer: answer = 2040 |
44 | Correct | 247 ms | 503148 KB | Correct answer: answer = 2 |
45 | Correct | 250 ms | 503124 KB | Correct answer: answer = 4 |
46 | Correct | 253 ms | 503076 KB | Correct answer: answer = 9 |
47 | Correct | 257 ms | 503156 KB | Correct answer: answer = 9 |
48 | Correct | 252 ms | 503268 KB | Correct answer: answer = 21 |
49 | Correct | 251 ms | 503080 KB | Correct answer: answer = 71 |
50 | Correct | 253 ms | 503252 KB | Correct answer: answer = 77 |
51 | Correct | 247 ms | 503108 KB | Correct answer: answer = 400 |
52 | Correct | 254 ms | 503076 KB | Correct answer: answer = 996004 |
53 | Correct | 260 ms | 503084 KB | Correct answer: answer = 997310 |
54 | Correct | 247 ms | 503092 KB | Correct answer: answer = 990781 |
55 | Correct | 259 ms | 503188 KB | Correct answer: answer = 996545 |
56 | Correct | 249 ms | 503188 KB | Correct answer: answer = 484 |
57 | Correct | 251 ms | 503140 KB | Correct answer: answer = 484 |
58 | Correct | 257 ms | 503108 KB | Correct answer: answer = 63501 |
59 | Correct | 249 ms | 503172 KB | Correct answer: answer = 323501 |
60 | Correct | 249 ms | 503104 KB | Correct answer: answer = 752500 |
61 | Correct | 251 ms | 503232 KB | Correct answer: answer = 761480 |
62 | Correct | 253 ms | 503168 KB | Correct answer: answer = 758932 |
63 | Correct | 249 ms | 503108 KB | Correct answer: answer = 1000000 |
64 | Correct | 270 ms | 503072 KB | Correct answer: answer = 750500 |
65 | Correct | 251 ms | 503108 KB | Correct answer: answer = 1000000 |
66 | Correct | 254 ms | 503124 KB | Correct answer: answer = 250000 |
67 | Correct | 252 ms | 503192 KB | Correct answer: answer = 250000 |
68 | Correct | 255 ms | 503136 KB | Correct answer: answer = 1000000 |
69 | Correct | 249 ms | 503236 KB | Correct answer: answer = 994009 |
70 | Correct | 250 ms | 503156 KB | Correct answer: answer = 59315 |
71 | Correct | 294 ms | 503092 KB | Correct answer: answer = 25454 |
72 | Correct | 254 ms | 503172 KB | Correct answer: answer = 1504 |
73 | Correct | 250 ms | 503112 KB | Correct answer: answer = 37486 |
74 | Correct | 251 ms | 503100 KB | Correct answer: answer = 4284 |
75 | Correct | 252 ms | 503224 KB | Correct answer: answer = 158008 |
76 | Correct | 251 ms | 503132 KB | Correct answer: answer = 51860 |
77 | Correct | 251 ms | 503116 KB | Correct answer: answer = 12985 |
78 | Correct | 252 ms | 503244 KB | Correct answer: answer = 997864126212 |
79 | Correct | 249 ms | 503260 KB | Correct answer: answer = 998608411647 |
80 | Correct | 261 ms | 503276 KB | Correct answer: answer = 995265560477 |
81 | Correct | 263 ms | 503364 KB | Correct answer: answer = 10125000 |
82 | Correct | 256 ms | 503304 KB | Correct answer: answer = 2291668 |
83 | Correct | 258 ms | 503264 KB | Correct answer: answer = 42388 |
84 | Correct | 280 ms | 503220 KB | Correct answer: answer = 10318 |
85 | Correct | 495 ms | 503260 KB | Correct answer: answer = 3416 |
86 | Correct | 254 ms | 503344 KB | Correct answer: answer = 331708193881 |
87 | Correct | 287 ms | 503460 KB | Correct answer: answer = 2861193756 |
88 | Correct | 737 ms | 503376 KB | Correct answer: answer = 114646930 |
89 | Correct | 263 ms | 503348 KB | Correct answer: answer = 9280921 |
90 | Correct | 287 ms | 503372 KB | Correct answer: answer = 999984053400 |
91 | Correct | 590 ms | 503364 KB | Correct answer: answer = 750935949134 |
92 | Correct | 251 ms | 503320 KB | Correct answer: answer = 1000000000000 |
93 | Correct | 249 ms | 503348 KB | Correct answer: answer = 998762383161 |
94 | Correct | 258 ms | 503308 KB | Correct answer: answer = 23017412908 |
95 | Correct | 268 ms | 503236 KB | Correct answer: answer = 728143410622 |
96 | Correct | 253 ms | 503364 KB | Correct answer: answer = 2 |
97 | Correct | 255 ms | 503288 KB | Correct answer: answer = 1824916 |
98 | Correct | 345 ms | 503400 KB | Correct answer: answer = 10680029 |
99 | Correct | 286 ms | 503324 KB | Correct answer: answer = 18351700 |
100 | Correct | 261 ms | 503364 KB | Correct answer: answer = 16040026 |
101 | Correct | 249 ms | 503316 KB | Correct answer: answer = 253968628325 |
102 | Correct | 407 ms | 503236 KB | Correct answer: answer = 10267 |
103 | Correct | 894 ms | 503324 KB | Correct answer: answer = 2582408 |
104 | Correct | 252 ms | 503356 KB | Correct answer: answer = 78024964781 |
105 | Correct | 252 ms | 503332 KB | Correct answer: answer = 9866346457 |
106 | Correct | 255 ms | 503304 KB | Correct answer: answer = 3327720949 |
107 | Correct | 262 ms | 503336 KB | Correct answer: answer = 86064128360 |
108 | Correct | 286 ms | 503236 KB | Correct answer: answer = 12698259150 |
109 | Correct | 986 ms | 503348 KB | Correct answer: answer = 1185259288 |
110 | Correct | 273 ms | 504756 KB | Correct answer: answer = 999889968863 |
111 | Correct | 269 ms | 504696 KB | Correct answer: answer = 999861384931 |
112 | Correct | 270 ms | 504764 KB | Correct answer: answer = 999811809929 |
113 | Correct | 277 ms | 504760 KB | Correct answer: answer = 999869756441 |
114 | Runtime error | 601 ms | 759688 KB | Execution killed with signal 11 |
115 | Halted | 0 ms | 0 KB | - |