제출 #369502

#제출 시각아이디문제언어결과실행 시간메모리
369502NachoLibreCluedo (IOI10_cluedo)C++17
100 / 100
17 ms384 KiB
#include"grader.h" void Solve(){ int x=1,y=1,z=1,a; while(a=Theory(x,y,z)){ ++(a^1?a^2?z:y:x); } }

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

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