Submission #597650

#TimeUsernameProblemLanguageResultExecution timeMemory
597650ogibogi2004Counting Mushrooms (IOI20_mushrooms)C++14
10 / 100
230 ms724 KiB
#include "mushrooms.h" #include <bits/stdc++.h> using namespace std; int count_mushrooms(int n) { vector<int>A,B; A.push_back(0); for(int i=1;i<n;i++) { if(use_machine({0,i})==0)A.push_back(i); else B.push_back(i); } return A.size(); }
#Verdict Execution timeMemoryGrader output
Fetching results...