Submission #836093

#TimeUsernameProblemLanguageResultExecution timeMemory
836093finn__Cluedo (IOI10_cluedo)C++17
100 / 100
11 ms256 KiB
#include "grader.h" #include "cluedo.h" void Solve() { int ans[4], wrong; for (int i = 1; i <= 3; ++i) ans[i] = 1; while (wrong = Theory(ans[1], ans[2], ans[3])) ans[wrong]++; }

Compilation message (stderr)

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