Submission #1267016

#TimeUsernameProblemLanguageResultExecution timeMemory
1267016ti24dung_ntCluedo (IOI10_cluedo)C++20
0 / 100
0 ms416 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...