Submission #937896

#TimeUsernameProblemLanguageResultExecution timeMemory
937896Muaath_5Cluedo (IOI10_cluedo)C++17
100 / 100
8 ms344 KiB
#include "grader.h" #include "cluedo.h" void Solve(){ int m = 1, l = 1, w = 1, r; while (r = Theory(m, l, w)) { if (r == 1) m++; if (r == 2) l++; if (r == 3) w++; } }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:6:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    6 |  while (r = Theory(m, l, w)) {
      |         ~~^~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...