Submission #304174

# Submission time Handle Problem Language Result Execution time Memory
304174 2020-09-21T03:59:23 Z juggernaut Counting Mushrooms (IOI20_mushrooms) C++14
0 / 100
0 ms 256 KB
#include"mushrooms.h"
#include<bits/stdc++.h>
using namespace std;
int count_mushrooms(int n){
    int res=0,i;
    for(i=1;i+1<n;i+=2)
        res+=2-use_machine({i,0,i+1});
    if(i<n)res+=1-use_machine({0,i});
    return res;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 256 KB Answer is not correct.
2 Halted 0 ms 0 KB -