Submission #436439

#TimeUsernameProblemLanguageResultExecution timeMemory
436439infinite_iqCounting Mushrooms (IOI20_mushrooms)C++14
10 / 100
353 ms240 KiB
#include <bits/stdc++.h>
using namespace std;

#include "mushrooms.h"

int count_mushrooms(int n) {
	int num = 1 ;
	for ( int i = 1 ; i < n ; i ++ ) {
        if ( use_machine({0,i}) == 0 ) {
            num ++ ;
        }
	}
	return num ;
}
#Verdict Execution timeMemoryGrader output
Fetching results...