Submission #977478

#TimeUsernameProblemLanguageResultExecution timeMemory
977478HappyCapybaraCounting Mushrooms (IOI20_mushrooms)C++17
0 / 100
0 ms344 KiB
#include "mushrooms.h" #include<bits/stdc++.h> using namespace std; int count_mushrooms(int n) { int cur = 0; int res = 0; for (int i=0; i<n-1; i++) res += (cur == use_machine({i, i+1})); return res; }
#Verdict Execution timeMemoryGrader output
Fetching results...