제출 #1292739

#제출 시각아이디문제언어결과실행 시간메모리
1292739SofiatpcCounting Mushrooms (IOI20_mushrooms)C++20
10 / 100
67 ms400 KiB
#include "mushrooms.h" #include <bits/stdc++.h> using namespace std; int count_mushrooms(int n) { vector<int> m = {0}; int ans = 1; for (int i = 1; i < n; i++){ m.push_back(i); if(!use_machine(m))ans++; m.pop_back(); } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...