Submission #435339

#TimeUsernameProblemLanguageResultExecution timeMemory
435339CollypsoCounting Mushrooms (IOI20_mushrooms)C++17
10 / 100
340 ms200 KiB
#include <bits/stdc++.h> #define ll long long #define ld long double #define pii pair<int, int> #define pll pair<ll, ll> #define vt vector #define pb push_back #define all(x) (x).begin(), (x).end() #define sz(x) (int) (x).size() #pragma GCC optimize ("O3") #pragma GCC optimize ("O2") #define F first #define S second //#define endl '\n' //#define int long long using namespace std; int use_machine(vt<int> x); int count_mushrooms(int n) { int ans = 1; for(int i = 1; i < n; i++) if (use_machine({0, i}) == 0) ans++; return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...