제출 #232897

#제출 시각아이디문제언어결과실행 시간메모리
232897ZexCluedo (IOI10_cluedo)C++11
100 / 100
17 ms384 KiB
#include "grader.h" #include "cluedo.h" void Solve(){ int M, L, W, R; M = L = W = 1; while( R = Theory( M, L, W ) ){ if( R == 1 ) M++; if( R == 2 ) L++; if( R == 3 ) W++; } }

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:9:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  while( R = Theory( M, L, W ) ){
         ~~^~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...