Submission #369492

#TimeUsernameProblemLanguageResultExecution timeMemory
369492NachoLibreCluedo (IOI10_cluedo)C++17
100 / 100
14 ms256 KiB
#include"grader.h" #include"cluedo.h" void Solve(){ int x,y,z,a; x =y=z=1; while(a=Theory(x, y, z)){ ++(a==1?x:a==2?y:z); } }

Compilation message (stderr)

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