제출 #1084404

#제출 시각아이디문제언어결과실행 시간메모리
1084404acoatoitgsCluedo (IOI10_cluedo)C++17
100 / 100
7 ms504 KiB
#include "grader.h" #include "cluedo.h" void Solve() { int a = 1, b = 1, c = 1; int r; while (r = Theory(a, b, c)) { if (r == 1) a++; else if (r == 2) b++; else c++; } }

컴파일 시 표준 에러 (stderr) 메시지

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