#include<bits/stdc++.h>
using namespace std;
void Solve()
{
bool found = false;
int murd = 1, loca = 1, weap = 1;
while(found == false)
{
cout << "Theory(" << murd << "," << loca << "," << weap << ")" << endl;
cout.flush();
int type;
cin >> type;
if(type == 0)
{
found = true;
}
else if(type == 1)
{
if(murd < 6) ++murd;
}
else if(type == 2)
{
if(loca < 10) ++loca;
}
else
{
if(weap < 6) ++weap;
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |