# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1079952 | 2024-08-29T04:53:21 Z | Jawad_Akbar_JJ | Counting Mushrooms (IOI20_mushrooms) | C++17 | 1 ms | 344 KB |
#include <iostream> #include <vector> #include "mushrooms.h" using namespace std; int count_mushrooms(int n){ int A = 1; for (int i=1;i<n;i+=2){ if (i + 1 < n){ int ans = use_machine({i, 0, i+1, 0}); if (ans == 0) A += 2; else if (ans != 3) A++; } else{ A += use_machine({i, 0}) == 0; } } return A; }
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 344 KB | Too large array for query. |
2 | Halted | 0 ms | 0 KB | - |