Submission #369497

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

Compilation message (stderr)

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