#include "light.h"
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define inf (ll)2e18
#define nl '\n'
ll n = 1;
void prepare(){
return;
}
pair<ll, vector<ll>> join(ll x){
n += x;
vector<ll> v;
for(ll i = 1; i < n; i++) if(i % 5 == 1) v.push_back(i);
v.push_back(n);
return {5 * x, v};
}
pair<ll, vector<ll>> leave(ll x){
n -= x;
vector<ll> v;
for(ll i = 1; i < n; i++) if(i % 5 == 1) v.push_back(i);
v.push_back(n);
return {5 * x, 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... |