Submission #1084404

#TimeUsernameProblemLanguageResultExecution timeMemory
1084404acoatoitgsCluedo (IOI10_cluedo)C++17
100 / 100
7 ms504 KiB
#include "grader.h" #include "cluedo.h" void Solve() { int a = 1, b = 1, c = 1; int r; while (r = Theory(a, b, c)) { if (r == 1) a++; else if (r == 2) b++; else c++; } }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:10:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   10 |    while (r = Theory(a, b, c))
      |           ~~^~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...