Submission #836458

#TimeUsernameProblemLanguageResultExecution timeMemory
836458NeroZeinCounting Mushrooms (IOI20_mushrooms)C++17
10 / 100
158 ms208 KiB
#include "mushrooms.h"
using namespace std; 

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...