# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1165419 | Trumling | Counting Mushrooms (IOI20_mushrooms) | C++20 | 0 ms | 420 KiB |
#include "mushrooms.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
#define F first
#define S second
#define enter cout<<'\n';
#define INF 99999999999999999
#define MOD 1000000007
#define all(x) x.begin(),x.end()
int count_mushrooms(int n) {
if(n<=452)
{
bool tf=0;
ll o=use_machine({0,1});
if(n==2)
return 2 - o;
int p1=0,p2=1;
ll count=1;
if(!o)
count++;
if(o)
{
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |