Submission #1041461

# Submission time Handle Problem Language Result Execution time Memory
1041461 2024-08-02T04:15:28 Z EaglesV7(#11051) A Light Inconvenience (CEOI23_light) C++17
0 / 100
0 ms 344 KB
#include "light.h"
#include <bits/stdc++.h>
using namespace std;

int cnt;

void prepare(){
	cnt = 1;
}

typedef pair<long long, std::vector<long long>> iv;

iv join(long long p){
    cnt+=p;
    vector<long long> v;
    for(int i=1;i<=cnt;i+=5) {
        v.push_back(i);
    }
	return {p,v};
}

iv leave(long long p){
	cnt-=p;
    vector<long long> v;
    for(int i=1;i<=cnt;i+=5) {
        v.push_back(i);
    }
	return {0, v};
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Not correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Not correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Not correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Not correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Not correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Not correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Not correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Not correct
2 Halted 0 ms 0 KB -