Submission #253333

#TimeUsernameProblemLanguageResultExecution timeMemory
253333imeimi2000Cluedo (IOI10_cluedo)C++17
100 / 100
14 ms384 KiB
int Theory(int, int, int); void Solve() { int x, a[] = { 0, 6, 10, 6 }; while (x = Theory(a[1], a[2], a[3])) --a[x]; }

Compilation message (stderr)

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