Submission #386754

#TimeUsernameProblemLanguageResultExecution timeMemory
386754IloveNCounting Mushrooms (IOI20_mushrooms)C++14
10 / 100
270 ms364 KiB
#include<bits/stdc++.h> #include "mushrooms.h" using namespace std; #define ll long long #define pii pair<int,int> #define pll pair<ll,ll> #define fi first #define se second #define mp make_pair #define pb push_back #define eb emplace_back #define all(vr) vr.begin(),vr.end() #define vi vector<int> #define vll vector<ll> const int N=1e5+10; int count_mushrooms(int n) { int cnt=1; for (int i=1;i<n;i++) { vi vt={0,i}; cnt+=use_machine(vt)^1; } return cnt; }
#Verdict Execution timeMemoryGrader output
Fetching results...