Submission #346028

#TimeUsernameProblemLanguageResultExecution timeMemory
346028tamaritoCounting Mushrooms (IOI20_mushrooms)C++14
10 / 100
232 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...