Submission #720659

#TimeUsernameProblemLanguageResultExecution timeMemory
720659jairRSCounting Mushrooms (IOI20_mushrooms)C++17
0 / 100
0 ms208 KiB
#include "mushrooms.h"
#include <bits/stdc++.h>
using namespace std;

int count_mushrooms(int n)
{
	int count = 1;

	for (int i = 1; i < n; i += 2)
	{
		int query = 2 - use_machine({i, 0, i + 1});
	}

	return count;
}

Compilation message (stderr)

mushrooms.cpp: In function 'int count_mushrooms(int)':
mushrooms.cpp:11:7: warning: unused variable 'query' [-Wunused-variable]
   11 |   int query = 2 - use_machine({i, 0, i + 1});
      |       ^~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...