# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1105730 | azberjibiou | Counting Mushrooms (IOI20_mushrooms) | C++17 | 7 ms | 964 KiB |
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 "mushrooms.h"
#include <bits/stdc++.h>
#define all(v) v.begin(), v.end()
#define pb push_back
#define lb lower_bound
#define gibon ios::sync_with_stdio(false); cin.tie(0);
#define fi first
#define se second
#define pii pair<int, int>
#define pll pair<ll, ll>
typedef long long ll;
using namespace std;
const int mxN=505;
const int mxM=2200005;
const int mxK=61;
const int MOD=1e9+7;
const ll INF=1e18;
const int C=80;
vector <int> A, B;
int cntA;
int idx=1;
void check_one(){
int val=use_machine(vector <int>{0, idx});
if(val==0) A.push_back(idx);
else B.push_back(idx);
idx++;
}
void check_two(){
assert(A.size()>=2 || B.size()>=2);
bool swp=false;
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |