This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "light.h"
#include <bits/stdc++.h>
#define pb push_back
#define int long long
using namespace std;
const int N=5005;
bool a[N];
int n;
void prepare(){
a[1]=1;
n=1;
}
std::pair<long long, std::vector<long long>> join(long long p){
n+=p;
vector<int> v;
for (int i=1;i<n;i+=35) v.pb(i);
v.pb(n);
return {35,v};
}
std::pair<long long, std::vector<long long>> leave(long long p){
n-=p;
vector<int> v;
for (int i=1;i<n;i+=35) v.pb(i);
v.pb(n);
return {35,v};
}
# | 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... |