제출 #1294435

#제출 시각아이디문제언어결과실행 시간메모리
1294435m_bezrutchka버섯 세기 (IOI20_mushrooms)C++20
10 / 100
62 ms400 KiB
// 10 points, q = n - 1 #include "mushrooms.h" #include <bits/stdc++.h> using namespace std; int count_mushrooms(int n) { vector<int> t(n); t[0] = 0; int ans = 1; for (int i = 1; i < n; i++) { t[i] = use_machine({0, i}); if (t[i] == 0) ans++; } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...