# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1041800 | 2024-08-02T08:25:59 Z | 김은성(#11000) | A Light Inconvenience (CEOI23_light) | C++17 | 514 ms | 1048576 KB |
#include "light.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; bool ch; ll cnt; void prepare(){ ch = 0; cnt = 1; } std::pair<long long, std::vector<long long>> join(long long p){ cnt += p; vector<ll> ret; for(ll i=cnt; i>=1; i-=5) ret.push_back(i); if(ret.back() != 1) ret.push_back(1); for(int i=0; i<ret.size()/2; i++) swap(ret[i], ret[ret.size()-1-i]); return make_pair(5*p, ret); } std::pair<long long, std::vector<long long>> leave(long long p){ ch = 1; cnt -= p; vector<ll> ret; for(ll i=cnt; i>=1; i-=5) ret.push_back(i); if(ret.back() != 1) ret.push_back(1); for(int i=0; i<ret.size()/2; i++) swap(ret[i], ret[ret.size()-1-i]); return make_pair(5*p, ret); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 344 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 344 KB | Output is correct |
2 | Runtime error | 514 ms | 1048576 KB | Execution killed with signal 9 |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 344 KB | Output is correct |
2 | Correct | 242 ms | 344 KB | Output is correct |
3 | Correct | 36 ms | 344 KB | Output is correct |
4 | Correct | 247 ms | 344 KB | Output is correct |
5 | Correct | 246 ms | 344 KB | Output is correct |
6 | Correct | 4 ms | 344 KB | Output is correct |
7 | Correct | 214 ms | 468 KB | Output is correct |
8 | Correct | 11 ms | 344 KB | Output is correct |
9 | Correct | 228 ms | 344 KB | Output is correct |
10 | Correct | 259 ms | 344 KB | Output is correct |
11 | Correct | 60 ms | 344 KB | Output is correct |
12 | Correct | 240 ms | 596 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 344 KB | Output is correct |
2 | Correct | 242 ms | 344 KB | Output is correct |
3 | Correct | 36 ms | 344 KB | Output is correct |
4 | Correct | 247 ms | 344 KB | Output is correct |
5 | Correct | 246 ms | 344 KB | Output is correct |
6 | Correct | 4 ms | 344 KB | Output is correct |
7 | Correct | 214 ms | 468 KB | Output is correct |
8 | Correct | 11 ms | 344 KB | Output is correct |
9 | Correct | 228 ms | 344 KB | Output is correct |
10 | Correct | 259 ms | 344 KB | Output is correct |
11 | Correct | 60 ms | 344 KB | Output is correct |
12 | Correct | 240 ms | 596 KB | Output is correct |
13 | Correct | 0 ms | 592 KB | Output is correct |
14 | Correct | 272 ms | 344 KB | Output is correct |
15 | Correct | 26 ms | 344 KB | Output is correct |
16 | Correct | 241 ms | 344 KB | Output is correct |
17 | Correct | 254 ms | 344 KB | Output is correct |
18 | Correct | 3 ms | 344 KB | Output is correct |
19 | Correct | 268 ms | 476 KB | Output is correct |
20 | Correct | 9 ms | 344 KB | Output is correct |
21 | Correct | 265 ms | 448 KB | Output is correct |
22 | Correct | 255 ms | 344 KB | Output is correct |
23 | Correct | 65 ms | 344 KB | Output is correct |
24 | Correct | 285 ms | 344 KB | Output is correct |
25 | Incorrect | 0 ms | 344 KB | Not correct |
26 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 344 KB | Output is correct |
2 | Correct | 242 ms | 344 KB | Output is correct |
3 | Correct | 36 ms | 344 KB | Output is correct |
4 | Correct | 247 ms | 344 KB | Output is correct |
5 | Correct | 246 ms | 344 KB | Output is correct |
6 | Correct | 4 ms | 344 KB | Output is correct |
7 | Correct | 214 ms | 468 KB | Output is correct |
8 | Correct | 11 ms | 344 KB | Output is correct |
9 | Correct | 228 ms | 344 KB | Output is correct |
10 | Correct | 259 ms | 344 KB | Output is correct |
11 | Correct | 60 ms | 344 KB | Output is correct |
12 | Correct | 240 ms | 596 KB | Output is correct |
13 | Correct | 0 ms | 592 KB | Output is correct |
14 | Correct | 272 ms | 344 KB | Output is correct |
15 | Correct | 26 ms | 344 KB | Output is correct |
16 | Correct | 241 ms | 344 KB | Output is correct |
17 | Correct | 254 ms | 344 KB | Output is correct |
18 | Correct | 3 ms | 344 KB | Output is correct |
19 | Correct | 268 ms | 476 KB | Output is correct |
20 | Correct | 9 ms | 344 KB | Output is correct |
21 | Correct | 265 ms | 448 KB | Output is correct |
22 | Correct | 255 ms | 344 KB | Output is correct |
23 | Correct | 65 ms | 344 KB | Output is correct |
24 | Correct | 285 ms | 344 KB | Output is correct |
25 | Incorrect | 0 ms | 344 KB | Not correct |
26 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 344 KB | Output is correct |
2 | Correct | 242 ms | 344 KB | Output is correct |
3 | Correct | 36 ms | 344 KB | Output is correct |
4 | Correct | 247 ms | 344 KB | Output is correct |
5 | Correct | 246 ms | 344 KB | Output is correct |
6 | Correct | 4 ms | 344 KB | Output is correct |
7 | Correct | 214 ms | 468 KB | Output is correct |
8 | Correct | 11 ms | 344 KB | Output is correct |
9 | Correct | 228 ms | 344 KB | Output is correct |
10 | Correct | 259 ms | 344 KB | Output is correct |
11 | Correct | 60 ms | 344 KB | Output is correct |
12 | Correct | 240 ms | 596 KB | Output is correct |
13 | Correct | 0 ms | 592 KB | Output is correct |
14 | Correct | 272 ms | 344 KB | Output is correct |
15 | Correct | 26 ms | 344 KB | Output is correct |
16 | Correct | 241 ms | 344 KB | Output is correct |
17 | Correct | 254 ms | 344 KB | Output is correct |
18 | Correct | 3 ms | 344 KB | Output is correct |
19 | Correct | 268 ms | 476 KB | Output is correct |
20 | Correct | 9 ms | 344 KB | Output is correct |
21 | Correct | 265 ms | 448 KB | Output is correct |
22 | Correct | 255 ms | 344 KB | Output is correct |
23 | Correct | 65 ms | 344 KB | Output is correct |
24 | Correct | 285 ms | 344 KB | Output is correct |
25 | Incorrect | 0 ms | 344 KB | Not correct |
26 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 344 KB | Output is correct |
2 | Correct | 242 ms | 344 KB | Output is correct |
3 | Correct | 36 ms | 344 KB | Output is correct |
4 | Correct | 247 ms | 344 KB | Output is correct |
5 | Correct | 246 ms | 344 KB | Output is correct |
6 | Correct | 4 ms | 344 KB | Output is correct |
7 | Correct | 214 ms | 468 KB | Output is correct |
8 | Correct | 11 ms | 344 KB | Output is correct |
9 | Correct | 228 ms | 344 KB | Output is correct |
10 | Correct | 259 ms | 344 KB | Output is correct |
11 | Correct | 60 ms | 344 KB | Output is correct |
12 | Correct | 240 ms | 596 KB | Output is correct |
13 | Correct | 0 ms | 592 KB | Output is correct |
14 | Correct | 272 ms | 344 KB | Output is correct |
15 | Correct | 26 ms | 344 KB | Output is correct |
16 | Correct | 241 ms | 344 KB | Output is correct |
17 | Correct | 254 ms | 344 KB | Output is correct |
18 | Correct | 3 ms | 344 KB | Output is correct |
19 | Correct | 268 ms | 476 KB | Output is correct |
20 | Correct | 9 ms | 344 KB | Output is correct |
21 | Correct | 265 ms | 448 KB | Output is correct |
22 | Correct | 255 ms | 344 KB | Output is correct |
23 | Correct | 65 ms | 344 KB | Output is correct |
24 | Correct | 285 ms | 344 KB | Output is correct |
25 | Incorrect | 0 ms | 344 KB | Not correct |
26 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Partially correct | 0 ms | 344 KB | Partially correct |
2 | Runtime error | 479 ms | 1048576 KB | Execution killed with signal 9 |
3 | Halted | 0 ms | 0 KB | - |