Submission #1292438

#TimeUsernameProblemLanguageResultExecution timeMemory
1292438lucaskojimaCounting Mushrooms (IOI20_mushrooms)C++17
10 / 100
55 ms400 KiB
#include "bits/stdc++.h" #include "mushrooms.h" #define sz(x) (int)size(x) #define all(x) begin(x), end(x) #define rall(x) rbegin(x), rend(x) using namespace std; using ll = long long; using pii = pair<int, int>; const char nl = '\n'; const int INF = 0x3f3f3f3f; const ll LINF = 0x3f3f3f3f3f3f3f3f; int count_mushrooms(int n) { int ans = 0; for (int i = 1; i < n; i++) { vector<int> v; v.push_back(0); v.push_back(i); if (use_machine(v) == 0) ans++; } return ans + 1; }
#Verdict Execution timeMemoryGrader output
Fetching results...