Submission #685054

#TimeUsernameProblemLanguageResultExecution timeMemory
685054acceptifyCluedo (IOI10_cluedo)C++17
100 / 100
14 ms292 KiB
#include "grader.h"
#include "cluedo.h"
#include <bits/stdc++.h>
using namespace std;

void Solve() {
    int a = 1, b = 1, c = 1, x;
    while (x = Theory(a, b, c)) x == 1 ? a++ : x == 2 ? b++ : c++;
}

Compilation message (stderr)

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