제출 #1230467

#제출 시각아이디문제언어결과실행 시간메모리
1230467inesfiCounting Mushrooms (IOI20_mushrooms)C++20
25 / 100
26 ms420 KiB
#include "mushrooms.h" #include<bits/stdc++.h> using namespace std; int count_mushrooms(int n) { int rep=1; for (int i=1;i<n;i+=2){ if (i<n-1){ rep+=2-use_machine({i,0,i+1}); } else { rep+=1-use_machine({0,i}); } } return rep; }
#Verdict Execution timeMemoryGrader output
Fetching results...