답안 #1041756

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1041756 2024-08-02T07:47:50 Z 정민찬(#11002) A Light Inconvenience (CEOI23_light) C++17
100 / 100
314 ms 600 KB
#include "light.h"
#include <bits/stdc++.h>

using namespace std;
typedef long long ll;

const ll goal = 1;
vector<ll> pos;
ll len;

void prepare(){
    pos.clear();
    pos.push_back(1);
    len = 1;
}

pair<ll, vector<ll>> join(ll p){
    len += p;
    vector<ll> nw;
    nw.push_back(len);
    ll idx = pos.size() - 1;
    while (nw.back() != 1) {
        ll nxt = len - (len - nw.back() + 1) * (goal+1);
        while (idx > 0 && pos[idx-1] + p*goal >= nxt)
            idx --;
        if (pos[idx] <= nxt) {
            nw.push_back(nxt);
            continue;
        }
        nw.push_back(pos[idx]);
    }
    reverse(nw.begin(), nw.end());
    pos = nw;
    return {p*goal, nw};
}

pair<ll, vector<ll>> leave(ll p){
    len -= p;
    vector<ll> nw;
    nw.push_back(len);
    ll idx;
    for (ll i=pos.size()-1; i>=0; i--) {
        if (pos[i] <= len) {
            idx = i;
            break;
        }
    }
    while (nw.back() != 1) {
        ll nxt = len - (len - nw.back() + 1) * (goal+1);
        while (idx > 0 && pos[idx-1] + p*goal >= nxt)
            idx --;
        if (pos[idx] <= nxt) {
            nw.push_back(nxt);
            continue;
        }
        nw.push_back(pos[idx]);
    }
    reverse(nw.begin(), nw.end());
    pos = nw;
    return {p*goal, nw};
}
/*
using namespace std;
typedef long long ll;

namespace {

double maxQuotient = 0.0;
ll N = 1;
size_t maxFires = 1;
vector<ll> fires = {1};
constexpr int MAX_NUM_FIRES = 150;

[[noreturn]] void die(string msg)
{
    cout << msg << endl;
    exit(0);
}

void check(ll p, pair<ll, vector<ll>> res) {
    ll t = res.first;
    vector<ll> newFires = res.second;
    maxQuotient = max(maxQuotient, static_cast<double>(t)/abs(static_cast<double>(p)));
    maxFires = max(maxFires, newFires.size());

    cout << (p < 0? "leave" : "join") << "(" << llabs(p) << ") returned " << t << ", {";
    for(size_t i = 0; i < newFires.size(); i++) {
        cout << newFires[i];
        if(i + 1 < newFires.size()) cout << ", ";
    }
    cout << "}" << endl;

    if(t < 0 || t > 5 * static_cast<__int128_t>(llabs(p))) die("Invalid return value");
    for(size_t i = 0; i + 1 < newFires.size(); i++) {
        if(newFires[i] >= newFires[i + 1]) die("Invalid return value");
    }
    if(!newFires.empty() && (newFires[0] <= 0 || newFires.back() > N)) die("Invalid return value");
    if(newFires.size() > MAX_NUM_FIRES) die("Too many burning torches");
    if(newFires.empty() || newFires.back() < N) die("Rightmost torch not on fire");


    size_t i = 0;
    for (ll x : newFires) {
        for (;; ++i) {
            if (i >= fires.size() || fires[i] > x) die("Not all announced torches have been lit");
            if (fires[i] + t >= x) break;
        }
    }
    fires = newFires;
}

};

int main() {
    int Q;
    if (!(cin >> Q)) die("Invalid input");

    cout << "prepare()" << endl;
    prepare();

    for (int i = 0; i < Q; i++) {
        ll p;
        if (!(cin >> p) || p == 0) die("Invalid input");
        N += p;
        if (N <= 0) die("The stage is empty");
        if (p > 0)  check(p, join(p));
        if (p < 0)  check(p, leave(-p));
    }

    cout << "Correct: ratio at most " << maxQuotient << ", at most " << maxFires << " burning torches" << endl;
    return 0;
}*/

Compilation message

light.cpp: In function 'std::pair<long long int, std::vector<long long int> > leave(ll)':
light.cpp:52:20: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized]
   52 |         if (pos[idx] <= nxt) {
      |                    ^
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Correct
2 Correct 257 ms 344 KB Correct
3 Correct 262 ms 436 KB Correct
4 Correct 266 ms 344 KB Correct
5 Correct 229 ms 428 KB Correct
6 Correct 215 ms 416 KB Correct
7 Correct 240 ms 412 KB Correct
8 Correct 246 ms 416 KB Correct
9 Correct 250 ms 344 KB Correct
10 Correct 248 ms 432 KB Correct
11 Correct 235 ms 344 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Correct
2 Correct 248 ms 344 KB Correct
3 Correct 35 ms 344 KB Correct
4 Correct 240 ms 344 KB Correct
5 Correct 225 ms 344 KB Correct
6 Correct 5 ms 344 KB Correct
7 Correct 232 ms 344 KB Correct
8 Correct 18 ms 344 KB Correct
9 Correct 225 ms 344 KB Correct
10 Correct 232 ms 344 KB Correct
11 Correct 55 ms 344 KB Correct
12 Correct 249 ms 344 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Correct
2 Correct 248 ms 344 KB Correct
3 Correct 35 ms 344 KB Correct
4 Correct 240 ms 344 KB Correct
5 Correct 225 ms 344 KB Correct
6 Correct 5 ms 344 KB Correct
7 Correct 232 ms 344 KB Correct
8 Correct 18 ms 344 KB Correct
9 Correct 225 ms 344 KB Correct
10 Correct 232 ms 344 KB Correct
11 Correct 55 ms 344 KB Correct
12 Correct 249 ms 344 KB Correct
13 Correct 0 ms 344 KB Correct
14 Correct 208 ms 504 KB Correct
15 Correct 37 ms 344 KB Correct
16 Correct 243 ms 344 KB Correct
17 Correct 284 ms 344 KB Correct
18 Correct 6 ms 344 KB Correct
19 Correct 241 ms 344 KB Correct
20 Correct 16 ms 344 KB Correct
21 Correct 274 ms 344 KB Correct
22 Correct 260 ms 344 KB Correct
23 Correct 81 ms 340 KB Correct
24 Correct 208 ms 344 KB Correct
25 Correct 5 ms 344 KB Correct
26 Correct 5 ms 344 KB Correct
27 Correct 4 ms 344 KB Correct
28 Correct 242 ms 344 KB Correct
29 Correct 17 ms 344 KB Correct
30 Correct 267 ms 344 KB Correct
31 Correct 244 ms 344 KB Correct
32 Correct 9 ms 344 KB Correct
33 Correct 253 ms 440 KB Correct
34 Correct 259 ms 344 KB Correct
35 Correct 248 ms 436 KB Correct
36 Correct 244 ms 344 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Correct
2 Correct 248 ms 344 KB Correct
3 Correct 35 ms 344 KB Correct
4 Correct 240 ms 344 KB Correct
5 Correct 225 ms 344 KB Correct
6 Correct 5 ms 344 KB Correct
7 Correct 232 ms 344 KB Correct
8 Correct 18 ms 344 KB Correct
9 Correct 225 ms 344 KB Correct
10 Correct 232 ms 344 KB Correct
11 Correct 55 ms 344 KB Correct
12 Correct 249 ms 344 KB Correct
13 Correct 0 ms 344 KB Correct
14 Correct 208 ms 504 KB Correct
15 Correct 37 ms 344 KB Correct
16 Correct 243 ms 344 KB Correct
17 Correct 284 ms 344 KB Correct
18 Correct 6 ms 344 KB Correct
19 Correct 241 ms 344 KB Correct
20 Correct 16 ms 344 KB Correct
21 Correct 274 ms 344 KB Correct
22 Correct 260 ms 344 KB Correct
23 Correct 81 ms 340 KB Correct
24 Correct 208 ms 344 KB Correct
25 Correct 5 ms 344 KB Correct
26 Correct 5 ms 344 KB Correct
27 Correct 4 ms 344 KB Correct
28 Correct 242 ms 344 KB Correct
29 Correct 17 ms 344 KB Correct
30 Correct 267 ms 344 KB Correct
31 Correct 244 ms 344 KB Correct
32 Correct 9 ms 344 KB Correct
33 Correct 253 ms 440 KB Correct
34 Correct 259 ms 344 KB Correct
35 Correct 248 ms 436 KB Correct
36 Correct 244 ms 344 KB Correct
37 Correct 0 ms 344 KB Correct
38 Correct 254 ms 344 KB Correct
39 Correct 31 ms 596 KB Correct
40 Correct 241 ms 344 KB Correct
41 Correct 251 ms 344 KB Correct
42 Correct 6 ms 344 KB Correct
43 Correct 246 ms 344 KB Correct
44 Correct 20 ms 344 KB Correct
45 Correct 243 ms 344 KB Correct
46 Correct 259 ms 344 KB Correct
47 Correct 59 ms 344 KB Correct
48 Correct 224 ms 344 KB Correct
49 Correct 5 ms 344 KB Correct
50 Correct 4 ms 344 KB Correct
51 Correct 4 ms 344 KB Correct
52 Correct 262 ms 344 KB Correct
53 Correct 16 ms 344 KB Correct
54 Correct 211 ms 344 KB Correct
55 Correct 263 ms 344 KB Correct
56 Correct 10 ms 344 KB Correct
57 Correct 254 ms 344 KB Correct
58 Correct 265 ms 344 KB Correct
59 Correct 222 ms 432 KB Correct
60 Correct 226 ms 344 KB Correct
61 Correct 19 ms 344 KB Correct
62 Correct 32 ms 432 KB Correct
63 Correct 21 ms 340 KB Correct
64 Correct 213 ms 344 KB Correct
65 Correct 220 ms 344 KB Correct
66 Correct 238 ms 344 KB Correct
67 Correct 227 ms 344 KB Correct
68 Correct 235 ms 344 KB Correct
69 Correct 269 ms 344 KB Correct
70 Correct 284 ms 440 KB Correct
71 Correct 276 ms 344 KB Correct
72 Correct 253 ms 344 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Correct
2 Correct 248 ms 344 KB Correct
3 Correct 35 ms 344 KB Correct
4 Correct 240 ms 344 KB Correct
5 Correct 225 ms 344 KB Correct
6 Correct 5 ms 344 KB Correct
7 Correct 232 ms 344 KB Correct
8 Correct 18 ms 344 KB Correct
9 Correct 225 ms 344 KB Correct
10 Correct 232 ms 344 KB Correct
11 Correct 55 ms 344 KB Correct
12 Correct 249 ms 344 KB Correct
13 Correct 0 ms 344 KB Correct
14 Correct 208 ms 504 KB Correct
15 Correct 37 ms 344 KB Correct
16 Correct 243 ms 344 KB Correct
17 Correct 284 ms 344 KB Correct
18 Correct 6 ms 344 KB Correct
19 Correct 241 ms 344 KB Correct
20 Correct 16 ms 344 KB Correct
21 Correct 274 ms 344 KB Correct
22 Correct 260 ms 344 KB Correct
23 Correct 81 ms 340 KB Correct
24 Correct 208 ms 344 KB Correct
25 Correct 5 ms 344 KB Correct
26 Correct 5 ms 344 KB Correct
27 Correct 4 ms 344 KB Correct
28 Correct 242 ms 344 KB Correct
29 Correct 17 ms 344 KB Correct
30 Correct 267 ms 344 KB Correct
31 Correct 244 ms 344 KB Correct
32 Correct 9 ms 344 KB Correct
33 Correct 253 ms 440 KB Correct
34 Correct 259 ms 344 KB Correct
35 Correct 248 ms 436 KB Correct
36 Correct 244 ms 344 KB Correct
37 Correct 0 ms 344 KB Correct
38 Correct 254 ms 344 KB Correct
39 Correct 31 ms 596 KB Correct
40 Correct 241 ms 344 KB Correct
41 Correct 251 ms 344 KB Correct
42 Correct 6 ms 344 KB Correct
43 Correct 246 ms 344 KB Correct
44 Correct 20 ms 344 KB Correct
45 Correct 243 ms 344 KB Correct
46 Correct 259 ms 344 KB Correct
47 Correct 59 ms 344 KB Correct
48 Correct 224 ms 344 KB Correct
49 Correct 5 ms 344 KB Correct
50 Correct 4 ms 344 KB Correct
51 Correct 4 ms 344 KB Correct
52 Correct 262 ms 344 KB Correct
53 Correct 16 ms 344 KB Correct
54 Correct 211 ms 344 KB Correct
55 Correct 263 ms 344 KB Correct
56 Correct 10 ms 344 KB Correct
57 Correct 254 ms 344 KB Correct
58 Correct 265 ms 344 KB Correct
59 Correct 222 ms 432 KB Correct
60 Correct 226 ms 344 KB Correct
61 Correct 19 ms 344 KB Correct
62 Correct 32 ms 432 KB Correct
63 Correct 21 ms 340 KB Correct
64 Correct 213 ms 344 KB Correct
65 Correct 220 ms 344 KB Correct
66 Correct 238 ms 344 KB Correct
67 Correct 227 ms 344 KB Correct
68 Correct 235 ms 344 KB Correct
69 Correct 269 ms 344 KB Correct
70 Correct 284 ms 440 KB Correct
71 Correct 276 ms 344 KB Correct
72 Correct 253 ms 344 KB Correct
73 Correct 0 ms 344 KB Correct
74 Correct 221 ms 344 KB Correct
75 Correct 39 ms 344 KB Correct
76 Correct 239 ms 344 KB Correct
77 Correct 242 ms 344 KB Correct
78 Correct 6 ms 344 KB Correct
79 Correct 249 ms 344 KB Correct
80 Correct 16 ms 344 KB Correct
81 Correct 247 ms 344 KB Correct
82 Correct 223 ms 344 KB Correct
83 Correct 69 ms 344 KB Correct
84 Correct 233 ms 344 KB Correct
85 Correct 4 ms 344 KB Correct
86 Correct 4 ms 344 KB Correct
87 Correct 4 ms 344 KB Correct
88 Correct 222 ms 344 KB Correct
89 Correct 16 ms 344 KB Correct
90 Correct 271 ms 344 KB Correct
91 Correct 213 ms 344 KB Correct
92 Correct 8 ms 344 KB Correct
93 Correct 213 ms 600 KB Correct
94 Correct 226 ms 344 KB Correct
95 Correct 251 ms 344 KB Correct
96 Correct 245 ms 344 KB Correct
97 Correct 19 ms 436 KB Correct
98 Correct 53 ms 440 KB Correct
99 Correct 11 ms 436 KB Correct
100 Correct 224 ms 596 KB Correct
101 Correct 229 ms 344 KB Correct
102 Correct 209 ms 344 KB Correct
103 Correct 247 ms 344 KB Correct
104 Correct 225 ms 344 KB Correct
105 Correct 234 ms 344 KB Correct
106 Correct 244 ms 600 KB Correct
107 Correct 231 ms 344 KB Correct
108 Correct 211 ms 344 KB Correct
109 Correct 231 ms 344 KB Correct
110 Correct 231 ms 504 KB Correct
111 Correct 210 ms 436 KB Correct
112 Correct 204 ms 344 KB Correct
113 Correct 225 ms 344 KB Correct
114 Correct 234 ms 344 KB Correct
115 Correct 232 ms 344 KB Correct
116 Correct 211 ms 344 KB Correct
117 Correct 250 ms 344 KB Correct
118 Correct 220 ms 344 KB Correct
119 Correct 212 ms 344 KB Correct
120 Correct 214 ms 344 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Correct
2 Correct 248 ms 344 KB Correct
3 Correct 35 ms 344 KB Correct
4 Correct 240 ms 344 KB Correct
5 Correct 225 ms 344 KB Correct
6 Correct 5 ms 344 KB Correct
7 Correct 232 ms 344 KB Correct
8 Correct 18 ms 344 KB Correct
9 Correct 225 ms 344 KB Correct
10 Correct 232 ms 344 KB Correct
11 Correct 55 ms 344 KB Correct
12 Correct 249 ms 344 KB Correct
13 Correct 0 ms 344 KB Correct
14 Correct 208 ms 504 KB Correct
15 Correct 37 ms 344 KB Correct
16 Correct 243 ms 344 KB Correct
17 Correct 284 ms 344 KB Correct
18 Correct 6 ms 344 KB Correct
19 Correct 241 ms 344 KB Correct
20 Correct 16 ms 344 KB Correct
21 Correct 274 ms 344 KB Correct
22 Correct 260 ms 344 KB Correct
23 Correct 81 ms 340 KB Correct
24 Correct 208 ms 344 KB Correct
25 Correct 5 ms 344 KB Correct
26 Correct 5 ms 344 KB Correct
27 Correct 4 ms 344 KB Correct
28 Correct 242 ms 344 KB Correct
29 Correct 17 ms 344 KB Correct
30 Correct 267 ms 344 KB Correct
31 Correct 244 ms 344 KB Correct
32 Correct 9 ms 344 KB Correct
33 Correct 253 ms 440 KB Correct
34 Correct 259 ms 344 KB Correct
35 Correct 248 ms 436 KB Correct
36 Correct 244 ms 344 KB Correct
37 Correct 0 ms 344 KB Correct
38 Correct 254 ms 344 KB Correct
39 Correct 31 ms 596 KB Correct
40 Correct 241 ms 344 KB Correct
41 Correct 251 ms 344 KB Correct
42 Correct 6 ms 344 KB Correct
43 Correct 246 ms 344 KB Correct
44 Correct 20 ms 344 KB Correct
45 Correct 243 ms 344 KB Correct
46 Correct 259 ms 344 KB Correct
47 Correct 59 ms 344 KB Correct
48 Correct 224 ms 344 KB Correct
49 Correct 5 ms 344 KB Correct
50 Correct 4 ms 344 KB Correct
51 Correct 4 ms 344 KB Correct
52 Correct 262 ms 344 KB Correct
53 Correct 16 ms 344 KB Correct
54 Correct 211 ms 344 KB Correct
55 Correct 263 ms 344 KB Correct
56 Correct 10 ms 344 KB Correct
57 Correct 254 ms 344 KB Correct
58 Correct 265 ms 344 KB Correct
59 Correct 222 ms 432 KB Correct
60 Correct 226 ms 344 KB Correct
61 Correct 19 ms 344 KB Correct
62 Correct 32 ms 432 KB Correct
63 Correct 21 ms 340 KB Correct
64 Correct 213 ms 344 KB Correct
65 Correct 220 ms 344 KB Correct
66 Correct 238 ms 344 KB Correct
67 Correct 227 ms 344 KB Correct
68 Correct 235 ms 344 KB Correct
69 Correct 269 ms 344 KB Correct
70 Correct 284 ms 440 KB Correct
71 Correct 276 ms 344 KB Correct
72 Correct 253 ms 344 KB Correct
73 Correct 0 ms 344 KB Correct
74 Correct 221 ms 344 KB Correct
75 Correct 39 ms 344 KB Correct
76 Correct 239 ms 344 KB Correct
77 Correct 242 ms 344 KB Correct
78 Correct 6 ms 344 KB Correct
79 Correct 249 ms 344 KB Correct
80 Correct 16 ms 344 KB Correct
81 Correct 247 ms 344 KB Correct
82 Correct 223 ms 344 KB Correct
83 Correct 69 ms 344 KB Correct
84 Correct 233 ms 344 KB Correct
85 Correct 4 ms 344 KB Correct
86 Correct 4 ms 344 KB Correct
87 Correct 4 ms 344 KB Correct
88 Correct 222 ms 344 KB Correct
89 Correct 16 ms 344 KB Correct
90 Correct 271 ms 344 KB Correct
91 Correct 213 ms 344 KB Correct
92 Correct 8 ms 344 KB Correct
93 Correct 213 ms 600 KB Correct
94 Correct 226 ms 344 KB Correct
95 Correct 251 ms 344 KB Correct
96 Correct 245 ms 344 KB Correct
97 Correct 19 ms 436 KB Correct
98 Correct 53 ms 440 KB Correct
99 Correct 11 ms 436 KB Correct
100 Correct 224 ms 596 KB Correct
101 Correct 229 ms 344 KB Correct
102 Correct 209 ms 344 KB Correct
103 Correct 247 ms 344 KB Correct
104 Correct 225 ms 344 KB Correct
105 Correct 234 ms 344 KB Correct
106 Correct 244 ms 600 KB Correct
107 Correct 231 ms 344 KB Correct
108 Correct 211 ms 344 KB Correct
109 Correct 231 ms 344 KB Correct
110 Correct 231 ms 504 KB Correct
111 Correct 210 ms 436 KB Correct
112 Correct 204 ms 344 KB Correct
113 Correct 225 ms 344 KB Correct
114 Correct 234 ms 344 KB Correct
115 Correct 232 ms 344 KB Correct
116 Correct 211 ms 344 KB Correct
117 Correct 250 ms 344 KB Correct
118 Correct 220 ms 344 KB Correct
119 Correct 212 ms 344 KB Correct
120 Correct 214 ms 344 KB Correct
121 Correct 0 ms 344 KB Correct
122 Correct 244 ms 344 KB Correct
123 Correct 38 ms 344 KB Correct
124 Correct 250 ms 344 KB Correct
125 Correct 208 ms 344 KB Correct
126 Correct 4 ms 344 KB Correct
127 Correct 261 ms 344 KB Correct
128 Correct 16 ms 340 KB Correct
129 Correct 241 ms 344 KB Correct
130 Correct 220 ms 344 KB Correct
131 Correct 59 ms 344 KB Correct
132 Correct 243 ms 344 KB Correct
133 Correct 5 ms 344 KB Correct
134 Correct 3 ms 344 KB Correct
135 Correct 3 ms 344 KB Correct
136 Correct 262 ms 344 KB Correct
137 Correct 17 ms 344 KB Correct
138 Correct 215 ms 344 KB Correct
139 Correct 227 ms 344 KB Correct
140 Correct 7 ms 344 KB Correct
141 Correct 256 ms 344 KB Correct
142 Correct 240 ms 344 KB Correct
143 Correct 247 ms 600 KB Correct
144 Correct 237 ms 344 KB Correct
145 Correct 14 ms 344 KB Correct
146 Correct 32 ms 344 KB Correct
147 Correct 15 ms 432 KB Correct
148 Correct 233 ms 344 KB Correct
149 Correct 245 ms 596 KB Correct
150 Correct 247 ms 344 KB Correct
151 Correct 244 ms 344 KB Correct
152 Correct 231 ms 344 KB Correct
153 Correct 248 ms 344 KB Correct
154 Correct 225 ms 344 KB Correct
155 Correct 258 ms 344 KB Correct
156 Correct 287 ms 344 KB Correct
157 Correct 260 ms 344 KB Correct
158 Correct 249 ms 344 KB Correct
159 Correct 228 ms 440 KB Correct
160 Correct 247 ms 344 KB Correct
161 Correct 223 ms 344 KB Correct
162 Correct 244 ms 344 KB Correct
163 Correct 247 ms 344 KB Correct
164 Correct 240 ms 344 KB Correct
165 Correct 250 ms 344 KB Correct
166 Correct 250 ms 344 KB Correct
167 Correct 261 ms 344 KB Correct
168 Correct 204 ms 344 KB Correct
169 Correct 252 ms 344 KB Correct
170 Correct 264 ms 344 KB Correct
171 Correct 237 ms 344 KB Correct
172 Correct 224 ms 344 KB Correct
173 Correct 231 ms 344 KB Correct
174 Correct 225 ms 344 KB Correct
175 Correct 246 ms 344 KB Correct
176 Correct 256 ms 344 KB Correct
177 Correct 216 ms 344 KB Correct
178 Correct 270 ms 344 KB Correct
179 Correct 225 ms 344 KB Correct
180 Correct 208 ms 424 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Correct
2 Correct 237 ms 344 KB Correct
3 Correct 257 ms 340 KB Correct
4 Correct 255 ms 344 KB Correct
5 Correct 238 ms 344 KB Correct
6 Correct 219 ms 420 KB Correct
7 Correct 233 ms 592 KB Correct
8 Correct 204 ms 344 KB Correct
9 Correct 225 ms 436 KB Correct
10 Correct 230 ms 432 KB Correct
11 Correct 245 ms 344 KB Correct
12 Correct 199 ms 344 KB Correct
13 Correct 33 ms 344 KB Correct
14 Correct 216 ms 344 KB Correct
15 Correct 200 ms 340 KB Correct
16 Correct 5 ms 344 KB Correct
17 Correct 258 ms 344 KB Correct
18 Correct 10 ms 344 KB Correct
19 Correct 227 ms 344 KB Correct
20 Correct 254 ms 344 KB Correct
21 Correct 49 ms 344 KB Correct
22 Correct 240 ms 344 KB Correct
23 Correct 3 ms 344 KB Correct
24 Correct 3 ms 344 KB Correct
25 Correct 3 ms 420 KB Correct
26 Correct 229 ms 344 KB Correct
27 Correct 18 ms 344 KB Correct
28 Correct 232 ms 344 KB Correct
29 Correct 236 ms 344 KB Correct
30 Correct 6 ms 344 KB Correct
31 Correct 217 ms 344 KB Correct
32 Correct 241 ms 344 KB Correct
33 Correct 235 ms 344 KB Correct
34 Correct 236 ms 344 KB Correct
35 Correct 14 ms 344 KB Correct
36 Correct 33 ms 344 KB Correct
37 Correct 14 ms 344 KB Correct
38 Correct 251 ms 344 KB Correct
39 Correct 202 ms 344 KB Correct
40 Correct 238 ms 344 KB Correct
41 Correct 239 ms 344 KB Correct
42 Correct 229 ms 344 KB Correct
43 Correct 239 ms 344 KB Correct
44 Correct 245 ms 344 KB Correct
45 Correct 237 ms 340 KB Correct
46 Correct 216 ms 344 KB Correct
47 Correct 244 ms 344 KB Correct
48 Correct 253 ms 344 KB Correct
49 Correct 269 ms 344 KB Correct
50 Correct 225 ms 344 KB Correct
51 Correct 230 ms 344 KB Correct
52 Correct 256 ms 344 KB Correct
53 Correct 220 ms 344 KB Correct
54 Correct 217 ms 344 KB Correct
55 Correct 222 ms 344 KB Correct
56 Correct 255 ms 344 KB Correct
57 Correct 237 ms 344 KB Correct
58 Correct 225 ms 344 KB Correct
59 Correct 258 ms 344 KB Correct
60 Correct 283 ms 344 KB Correct
61 Correct 246 ms 344 KB Correct
62 Correct 227 ms 344 KB Correct
63 Correct 215 ms 344 KB Correct
64 Correct 263 ms 344 KB Correct
65 Correct 229 ms 344 KB Correct
66 Correct 235 ms 344 KB Correct
67 Correct 246 ms 344 KB Correct
68 Correct 246 ms 344 KB Correct
69 Correct 250 ms 344 KB Correct
70 Correct 236 ms 344 KB Correct
71 Correct 252 ms 592 KB Correct
72 Correct 263 ms 424 KB Correct
73 Correct 276 ms 436 KB Correct
74 Correct 269 ms 424 KB Correct
75 Correct 284 ms 424 KB Correct
76 Correct 264 ms 420 KB Correct
77 Correct 241 ms 344 KB Correct
78 Correct 242 ms 424 KB Correct
79 Correct 288 ms 440 KB Correct
80 Correct 289 ms 600 KB Correct
81 Correct 278 ms 344 KB Correct
82 Correct 292 ms 344 KB Correct
83 Correct 314 ms 344 KB Correct
84 Correct 231 ms 344 KB Correct
85 Correct 201 ms 344 KB Correct
86 Correct 210 ms 420 KB Correct
87 Correct 246 ms 456 KB Correct
88 Correct 252 ms 444 KB Correct
89 Correct 252 ms 344 KB Correct
90 Correct 267 ms 596 KB Correct
91 Correct 261 ms 416 KB Correct
92 Correct 237 ms 440 KB Correct
93 Correct 260 ms 424 KB Correct
94 Correct 283 ms 424 KB Correct
95 Correct 277 ms 344 KB Correct
96 Correct 275 ms 600 KB Correct
97 Correct 290 ms 344 KB Correct
98 Correct 284 ms 440 KB Correct
99 Correct 245 ms 344 KB Correct
100 Correct 240 ms 344 KB Correct
101 Correct 247 ms 416 KB Correct
102 Correct 239 ms 428 KB Correct
103 Correct 264 ms 428 KB Correct
104 Correct 252 ms 344 KB Correct
105 Correct 281 ms 340 KB Correct
106 Correct 261 ms 424 KB Correct
107 Correct 241 ms 344 KB Correct
108 Correct 178 ms 344 KB Correct
109 Correct 262 ms 592 KB Correct
110 Correct 285 ms 344 KB Correct
111 Correct 257 ms 592 KB Correct
112 Correct 276 ms 420 KB Correct
113 Correct 279 ms 344 KB Correct
114 Correct 267 ms 344 KB Correct
115 Correct 244 ms 344 KB Correct
116 Correct 270 ms 420 KB Correct
117 Correct 281 ms 344 KB Correct
118 Correct 287 ms 436 KB Correct
119 Correct 265 ms 428 KB Correct
120 Correct 278 ms 420 KB Correct
121 Correct 252 ms 416 KB Correct
122 Correct 260 ms 416 KB Correct
123 Correct 249 ms 440 KB Correct
124 Correct 221 ms 436 KB Correct
125 Correct 276 ms 344 KB Correct
126 Correct 274 ms 344 KB Correct
127 Correct 269 ms 344 KB Correct
128 Correct 281 ms 440 KB Correct
129 Correct 260 ms 344 KB Correct
130 Correct 214 ms 344 KB Correct