제출 #409253

#제출 시각아이디문제언어결과실행 시간메모리
409253BThero버섯 세기 (IOI20_mushrooms)C++17
10 / 100
261 ms200 KiB
// chrono::system_clock::now().time_since_epoch().count() #include "mushrooms.h" #include <bits/stdc++.h> #define pb push_back #define eb emplace_back #define mp make_pair #define fi first #define se second #define all(x) (x).begin(), (x).end() #define sz(x) (int)(x).size() #define rep(i, a, b) for (int i = (a); i < (b); ++i) #define debug(x) cerr << #x << " = " << x << endl using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef vector<int> vi; int count_mushrooms(int n) { int ans = 1; for (int i = 1; i < n; i++) { vi vec; vec.pb(i); vec.pb(0); if (use_machine(vec) == 0) { ans++; } } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...