Submission #548517

#TimeUsernameProblemLanguageResultExecution timeMemory
548517krit3379Cluedo (IOI10_cluedo)C++17
100 / 100
12 ms208 KiB
#include<bits/stdc++.h>
using namespace std;
#include"cluedo.h"
#include"grader.h"
#define N 100005

void Solve(){
    int a[3]={1,1,1},x;
    while(x=Theory(a[0],a[1],a[2]))a[x-1]++;
    return ;
}

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:9:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    9 |     while(x=Theory(a[0],a[1],a[2]))a[x-1]++;
      |           ~^~~~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...