제출 #312666

#제출 시각아이디문제언어결과실행 시간메모리
312666pere_gil버섯 세기 (IOI20_mushrooms)C++14
10 / 100
245 ms360 KiB
#include "mushrooms.h" int count_mushrooms(int n) { std::vector<int> m; int res=1; for (int i = 1; i < n; i++){ m.push_back(i); m.push_back(0); if(use_machine(m)==0) res++; m.clear(); } return res; }
#Verdict Execution timeMemoryGrader output
Fetching results...