#include "light.h"
#include <bits/stdc++.h>
using namespace std;
long long cnt=1;
void prepare(){
}
std::pair<long long, std::vector<long long>> join(long long p){
cnt+=p;
vector<long long> res;
for (int i=1; i<cnt; i+=5) res.push_back(i);
res.push_back(cnt);
return make_pair(p, res);
}
std::pair<long long, std::vector<long long>> leave(long long p){
cnt-=p;
vector<long long> res;
for (int i=1; i<cnt; i+=5) res.push_back(i);
res.push_back(cnt);
return make_pair((long long) 4, res);
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |