Submission #717740

#TimeUsernameProblemLanguageResultExecution timeMemory
717740nikosCluedo (IOI10_cluedo)C++17
100 / 100
16 ms256 KiB
#include "grader.h" #include "cluedo.h" void Solve(){ int r; int i = 1, j = 1, l = 1; while(r = Theory(i, j, l)){ if(r == 0) return; if(r == 1) i++; if(r == 2) j++; if(r == 3) l++; } }

Compilation message (stderr)

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