# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
314673 | neizod | Counting Mushrooms (IOI20_mushrooms) | C++17 | 9 ms | 392 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.
// WIP: REFACTORING
#include "mushrooms.h"
#include <bits/stdc++.h>
using namespace std;
//int use_machine(vector<int> x);
const int M = 100;
void partV1(int &i, vector<int> &A, vector<int> &B, int &count_A, int &count_B){
while(count_A < 2 && count_B < 2){
vector<int> x = { 0, i };
//x.push_back(0);
//x.push_back(i);
int result = use_machine(x);
if(result == 0){
A.push_back(i);
count_A++;
}
else{
B.push_back(i);
count_B++;
}
i++;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |