제출 #1046716

#제출 시각아이디문제언어결과실행 시간메모리
1046716mariaclara버섯 세기 (IOI20_mushrooms)C++17
25 / 100
71 ms432 KiB
#include "mushrooms.h" #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> pii; #define all(x) x.begin(), x.end() #define sz(x) (int)x.size() #define mk make_pair #define pb push_back #define fr first #define sc second int count_mushrooms(int n) { int ans = n; for(int i = 1; i < n; i+=2) { vector<int> q; q.pb(i); q.pb(0); if(i+1 < n) q.pb(i+1); ans -= use_machine(q); } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...