Submission #346070

#TimeUsernameProblemLanguageResultExecution timeMemory
346070tamaritoCounting Mushrooms (IOI20_mushrooms)C++14
10 / 100
209 ms492 KiB
#include "mushrooms.h"
 
int count_mushrooms(int n) {
    int answer = 1;
    for (int i = 1; i < n; i++) {
        if (use_machine({0, i}) == 0) {
            answer++;
        }
    }
    return answer;
}
#Verdict Execution timeMemoryGrader output
Fetching results...