# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
308533 | CaroLinda | Counting Mushrooms (IOI20_mushrooms) | C++14 | 10 ms | 512 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "mushrooms.h"
#include <bits/stdc++.h>
#define sz(x) (int)(x.size())
#define debug //printf
#define lp(i,a,b) for(int i = a ; i < b; i++)
#define pb push_back
#define ff first
#define ss second
#define mk make_pair
#define pii pair<int,int>
#define ll long long
#define all(x) x.begin(),x.end()
const int CTE = 103 ;
using namespace std ;
int count_mushrooms(int n)
{
vector<int> type(n,1) ;
vector<int> known[2] ;
int res ;
if( n <= 226 )
{
for(int i = 1 ; i < n ; i++ )
{
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |