제출 #1214371

#제출 시각아이디문제언어결과실행 시간메모리
1214371thangdz2k7버섯 세기 (IOI20_mushrooms)C++20
0 / 100
1 ms424 KiB
#include "mushrooms.h" #include <bits/stdc++.h> using namespace std; mt19937 rd(chrono::steady_clock::now().time_since_epoch().count()); int count_mushrooms(int n){ if (n <= 227){ int cntA = 1; for (int i = 1; i < n; ++ i){ vector <int> ask = {0, i}; if (use_machine(ask) == 0) cntA ++; } return cntA; } return 1; }
#Verdict Execution timeMemoryGrader output
Fetching results...