Submission #1234033

#TimeUsernameProblemLanguageResultExecution timeMemory
1234033madamadam3버섯 세기 (IOI20_mushrooms)C++20
10 / 100
50 ms420 KiB
#include "mushrooms.h" #include <bits/stdc++.h> using namespace std; #ifdef LOCAL #define dbg(x) (cout << (x)) #else #define dbg(x) #endif using vi =vector<int>; #define pb push_back #define FOR(i, a, b) for (int i = a; i < b; i++) int count_mushrooms(int n) { int tl_a = 1; FOR(i, 1, n) { tl_a += 1 - use_machine(vi({0, i})); } return tl_a; }
#Verdict Execution timeMemoryGrader output
Fetching results...