Submission #232897

#TimeUsernameProblemLanguageResultExecution timeMemory
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++; } }

Compilation message (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...