Submission #1041585

# Submission time Handle Problem Language Result Execution time Memory
1041585 2024-08-02T05:59:41 Z EaglesV7(#11051) A Light Inconvenience (CEOI23_light) C++17
5 / 100
292 ms 1624 KB
#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(max(p,5LL),v[cnt]);
}

iv leave(long long p){
	cnt-=p;
	return iv(max(p,5LL),v[cnt]);
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 856 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 856 KB Output is correct
2 Runtime error 1 ms 1528 KB Execution killed with signal 11
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 856 KB Output is correct
2 Correct 292 ms 856 KB Output is correct
3 Correct 29 ms 856 KB Output is correct
4 Correct 224 ms 856 KB Output is correct
5 Correct 223 ms 856 KB Output is correct
6 Correct 6 ms 856 KB Output is correct
7 Correct 205 ms 856 KB Output is correct
8 Correct 15 ms 856 KB Output is correct
9 Correct 244 ms 1112 KB Output is correct
10 Correct 239 ms 856 KB Output is correct
11 Correct 79 ms 856 KB Output is correct
12 Correct 213 ms 856 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 856 KB Output is correct
2 Correct 292 ms 856 KB Output is correct
3 Correct 29 ms 856 KB Output is correct
4 Correct 224 ms 856 KB Output is correct
5 Correct 223 ms 856 KB Output is correct
6 Correct 6 ms 856 KB Output is correct
7 Correct 205 ms 856 KB Output is correct
8 Correct 15 ms 856 KB Output is correct
9 Correct 244 ms 1112 KB Output is correct
10 Correct 239 ms 856 KB Output is correct
11 Correct 79 ms 856 KB Output is correct
12 Correct 213 ms 856 KB Output is correct
13 Correct 0 ms 856 KB Output is correct
14 Correct 238 ms 1040 KB Output is correct
15 Correct 45 ms 1108 KB Output is correct
16 Correct 254 ms 856 KB Output is correct
17 Correct 215 ms 856 KB Output is correct
18 Correct 7 ms 856 KB Output is correct
19 Correct 240 ms 1020 KB Output is correct
20 Correct 11 ms 856 KB Output is correct
21 Correct 267 ms 856 KB Output is correct
22 Correct 258 ms 856 KB Output is correct
23 Correct 59 ms 856 KB Output is correct
24 Correct 230 ms 1296 KB Output is correct
25 Runtime error 1 ms 1624 KB Execution killed with signal 11
26 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 856 KB Output is correct
2 Correct 292 ms 856 KB Output is correct
3 Correct 29 ms 856 KB Output is correct
4 Correct 224 ms 856 KB Output is correct
5 Correct 223 ms 856 KB Output is correct
6 Correct 6 ms 856 KB Output is correct
7 Correct 205 ms 856 KB Output is correct
8 Correct 15 ms 856 KB Output is correct
9 Correct 244 ms 1112 KB Output is correct
10 Correct 239 ms 856 KB Output is correct
11 Correct 79 ms 856 KB Output is correct
12 Correct 213 ms 856 KB Output is correct
13 Correct 0 ms 856 KB Output is correct
14 Correct 238 ms 1040 KB Output is correct
15 Correct 45 ms 1108 KB Output is correct
16 Correct 254 ms 856 KB Output is correct
17 Correct 215 ms 856 KB Output is correct
18 Correct 7 ms 856 KB Output is correct
19 Correct 240 ms 1020 KB Output is correct
20 Correct 11 ms 856 KB Output is correct
21 Correct 267 ms 856 KB Output is correct
22 Correct 258 ms 856 KB Output is correct
23 Correct 59 ms 856 KB Output is correct
24 Correct 230 ms 1296 KB Output is correct
25 Runtime error 1 ms 1624 KB Execution killed with signal 11
26 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 856 KB Output is correct
2 Correct 292 ms 856 KB Output is correct
3 Correct 29 ms 856 KB Output is correct
4 Correct 224 ms 856 KB Output is correct
5 Correct 223 ms 856 KB Output is correct
6 Correct 6 ms 856 KB Output is correct
7 Correct 205 ms 856 KB Output is correct
8 Correct 15 ms 856 KB Output is correct
9 Correct 244 ms 1112 KB Output is correct
10 Correct 239 ms 856 KB Output is correct
11 Correct 79 ms 856 KB Output is correct
12 Correct 213 ms 856 KB Output is correct
13 Correct 0 ms 856 KB Output is correct
14 Correct 238 ms 1040 KB Output is correct
15 Correct 45 ms 1108 KB Output is correct
16 Correct 254 ms 856 KB Output is correct
17 Correct 215 ms 856 KB Output is correct
18 Correct 7 ms 856 KB Output is correct
19 Correct 240 ms 1020 KB Output is correct
20 Correct 11 ms 856 KB Output is correct
21 Correct 267 ms 856 KB Output is correct
22 Correct 258 ms 856 KB Output is correct
23 Correct 59 ms 856 KB Output is correct
24 Correct 230 ms 1296 KB Output is correct
25 Runtime error 1 ms 1624 KB Execution killed with signal 11
26 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 856 KB Output is correct
2 Correct 292 ms 856 KB Output is correct
3 Correct 29 ms 856 KB Output is correct
4 Correct 224 ms 856 KB Output is correct
5 Correct 223 ms 856 KB Output is correct
6 Correct 6 ms 856 KB Output is correct
7 Correct 205 ms 856 KB Output is correct
8 Correct 15 ms 856 KB Output is correct
9 Correct 244 ms 1112 KB Output is correct
10 Correct 239 ms 856 KB Output is correct
11 Correct 79 ms 856 KB Output is correct
12 Correct 213 ms 856 KB Output is correct
13 Correct 0 ms 856 KB Output is correct
14 Correct 238 ms 1040 KB Output is correct
15 Correct 45 ms 1108 KB Output is correct
16 Correct 254 ms 856 KB Output is correct
17 Correct 215 ms 856 KB Output is correct
18 Correct 7 ms 856 KB Output is correct
19 Correct 240 ms 1020 KB Output is correct
20 Correct 11 ms 856 KB Output is correct
21 Correct 267 ms 856 KB Output is correct
22 Correct 258 ms 856 KB Output is correct
23 Correct 59 ms 856 KB Output is correct
24 Correct 230 ms 1296 KB Output is correct
25 Runtime error 1 ms 1624 KB Execution killed with signal 11
26 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Partially correct 1 ms 856 KB Partially correct
2 Runtime error 2 ms 1536 KB Execution killed with signal 11
3 Halted 0 ms 0 KB -