#include "light.h"
#include <bits/stdc++.h>
using namespace std;
long long cnt;
vector<long long> v[701];
void prepare(){
cnt = 1;
for(int i=1;i<=700;i++) {
for(int j=1;j<=i;j+=5){
v[i].push_back(j);
}
if (i%5!=1) v[i].push_back(i);
}
}
typedef pair<long long, std::vector<long long>> iv;
iv join(long long p){
cnt+=p;
return iv(p,v[cnt]);
}
iv leave(long long p){
cnt-=p;
return iv(5,v[cnt]);
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
856 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
856 KB |
Output is correct |
2 |
Runtime error |
2 ms |
1524 KB |
Execution killed with signal 11 |
3 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
856 KB |
Output is correct |
2 |
Correct |
235 ms |
892 KB |
Output is correct |
3 |
Correct |
32 ms |
856 KB |
Output is correct |
4 |
Correct |
221 ms |
856 KB |
Output is correct |
5 |
Correct |
210 ms |
1044 KB |
Output is correct |
6 |
Correct |
5 ms |
856 KB |
Correct |
7 |
Correct |
244 ms |
856 KB |
Output is correct |
8 |
Correct |
13 ms |
856 KB |
Output is correct |
9 |
Correct |
232 ms |
1112 KB |
Output is correct |
10 |
Correct |
252 ms |
856 KB |
Output is correct |
11 |
Correct |
88 ms |
856 KB |
Correct |
12 |
Correct |
251 ms |
856 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
856 KB |
Output is correct |
2 |
Correct |
235 ms |
892 KB |
Output is correct |
3 |
Correct |
32 ms |
856 KB |
Output is correct |
4 |
Correct |
221 ms |
856 KB |
Output is correct |
5 |
Correct |
210 ms |
1044 KB |
Output is correct |
6 |
Correct |
5 ms |
856 KB |
Correct |
7 |
Correct |
244 ms |
856 KB |
Output is correct |
8 |
Correct |
13 ms |
856 KB |
Output is correct |
9 |
Correct |
232 ms |
1112 KB |
Output is correct |
10 |
Correct |
252 ms |
856 KB |
Output is correct |
11 |
Correct |
88 ms |
856 KB |
Correct |
12 |
Correct |
251 ms |
856 KB |
Output is correct |
13 |
Correct |
1 ms |
856 KB |
Output is correct |
14 |
Correct |
238 ms |
796 KB |
Output is correct |
15 |
Correct |
56 ms |
856 KB |
Output is correct |
16 |
Correct |
214 ms |
856 KB |
Output is correct |
17 |
Correct |
247 ms |
856 KB |
Output is correct |
18 |
Correct |
6 ms |
856 KB |
Correct |
19 |
Correct |
198 ms |
856 KB |
Output is correct |
20 |
Correct |
17 ms |
856 KB |
Output is correct |
21 |
Correct |
219 ms |
1040 KB |
Output is correct |
22 |
Correct |
269 ms |
856 KB |
Output is correct |
23 |
Correct |
61 ms |
856 KB |
Correct |
24 |
Correct |
214 ms |
1048 KB |
Output is correct |
25 |
Runtime error |
2 ms |
1624 KB |
Execution killed with signal 11 |
26 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
856 KB |
Output is correct |
2 |
Correct |
235 ms |
892 KB |
Output is correct |
3 |
Correct |
32 ms |
856 KB |
Output is correct |
4 |
Correct |
221 ms |
856 KB |
Output is correct |
5 |
Correct |
210 ms |
1044 KB |
Output is correct |
6 |
Correct |
5 ms |
856 KB |
Correct |
7 |
Correct |
244 ms |
856 KB |
Output is correct |
8 |
Correct |
13 ms |
856 KB |
Output is correct |
9 |
Correct |
232 ms |
1112 KB |
Output is correct |
10 |
Correct |
252 ms |
856 KB |
Output is correct |
11 |
Correct |
88 ms |
856 KB |
Correct |
12 |
Correct |
251 ms |
856 KB |
Output is correct |
13 |
Correct |
1 ms |
856 KB |
Output is correct |
14 |
Correct |
238 ms |
796 KB |
Output is correct |
15 |
Correct |
56 ms |
856 KB |
Output is correct |
16 |
Correct |
214 ms |
856 KB |
Output is correct |
17 |
Correct |
247 ms |
856 KB |
Output is correct |
18 |
Correct |
6 ms |
856 KB |
Correct |
19 |
Correct |
198 ms |
856 KB |
Output is correct |
20 |
Correct |
17 ms |
856 KB |
Output is correct |
21 |
Correct |
219 ms |
1040 KB |
Output is correct |
22 |
Correct |
269 ms |
856 KB |
Output is correct |
23 |
Correct |
61 ms |
856 KB |
Correct |
24 |
Correct |
214 ms |
1048 KB |
Output is correct |
25 |
Runtime error |
2 ms |
1624 KB |
Execution killed with signal 11 |
26 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
856 KB |
Output is correct |
2 |
Correct |
235 ms |
892 KB |
Output is correct |
3 |
Correct |
32 ms |
856 KB |
Output is correct |
4 |
Correct |
221 ms |
856 KB |
Output is correct |
5 |
Correct |
210 ms |
1044 KB |
Output is correct |
6 |
Correct |
5 ms |
856 KB |
Correct |
7 |
Correct |
244 ms |
856 KB |
Output is correct |
8 |
Correct |
13 ms |
856 KB |
Output is correct |
9 |
Correct |
232 ms |
1112 KB |
Output is correct |
10 |
Correct |
252 ms |
856 KB |
Output is correct |
11 |
Correct |
88 ms |
856 KB |
Correct |
12 |
Correct |
251 ms |
856 KB |
Output is correct |
13 |
Correct |
1 ms |
856 KB |
Output is correct |
14 |
Correct |
238 ms |
796 KB |
Output is correct |
15 |
Correct |
56 ms |
856 KB |
Output is correct |
16 |
Correct |
214 ms |
856 KB |
Output is correct |
17 |
Correct |
247 ms |
856 KB |
Output is correct |
18 |
Correct |
6 ms |
856 KB |
Correct |
19 |
Correct |
198 ms |
856 KB |
Output is correct |
20 |
Correct |
17 ms |
856 KB |
Output is correct |
21 |
Correct |
219 ms |
1040 KB |
Output is correct |
22 |
Correct |
269 ms |
856 KB |
Output is correct |
23 |
Correct |
61 ms |
856 KB |
Correct |
24 |
Correct |
214 ms |
1048 KB |
Output is correct |
25 |
Runtime error |
2 ms |
1624 KB |
Execution killed with signal 11 |
26 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
856 KB |
Output is correct |
2 |
Correct |
235 ms |
892 KB |
Output is correct |
3 |
Correct |
32 ms |
856 KB |
Output is correct |
4 |
Correct |
221 ms |
856 KB |
Output is correct |
5 |
Correct |
210 ms |
1044 KB |
Output is correct |
6 |
Correct |
5 ms |
856 KB |
Correct |
7 |
Correct |
244 ms |
856 KB |
Output is correct |
8 |
Correct |
13 ms |
856 KB |
Output is correct |
9 |
Correct |
232 ms |
1112 KB |
Output is correct |
10 |
Correct |
252 ms |
856 KB |
Output is correct |
11 |
Correct |
88 ms |
856 KB |
Correct |
12 |
Correct |
251 ms |
856 KB |
Output is correct |
13 |
Correct |
1 ms |
856 KB |
Output is correct |
14 |
Correct |
238 ms |
796 KB |
Output is correct |
15 |
Correct |
56 ms |
856 KB |
Output is correct |
16 |
Correct |
214 ms |
856 KB |
Output is correct |
17 |
Correct |
247 ms |
856 KB |
Output is correct |
18 |
Correct |
6 ms |
856 KB |
Correct |
19 |
Correct |
198 ms |
856 KB |
Output is correct |
20 |
Correct |
17 ms |
856 KB |
Output is correct |
21 |
Correct |
219 ms |
1040 KB |
Output is correct |
22 |
Correct |
269 ms |
856 KB |
Output is correct |
23 |
Correct |
61 ms |
856 KB |
Correct |
24 |
Correct |
214 ms |
1048 KB |
Output is correct |
25 |
Runtime error |
2 ms |
1624 KB |
Execution killed with signal 11 |
26 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Partially correct |
1 ms |
856 KB |
Partially correct |
2 |
Runtime error |
1 ms |
1624 KB |
Execution killed with signal 11 |
3 |
Halted |
0 ms |
0 KB |
- |