Submission #474025

#TimeUsernameProblemLanguageResultExecution timeMemory
474025ValiAntonieCluedo (IOI10_cluedo)C++14
50 / 100
19 ms200 KiB
#include "grader.h" #include "cluedo.h" void Solve(){ int r, a = 1, b = 1, c= 1, ok = 0; for(int i=1;i<=10;i++){ r = Theory(a,b,c); if (r == 0){ ok = 1; return; } while(r == 1){ a++; r = Theory(a,b,c); } while(r == 2){ b++; r = Theory(a,b,c); } while(r == 3){ c++; r = Theory(a,b,c); } } }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:5:31: warning: variable 'ok' set but not used [-Wunused-but-set-variable]
    5 |    int r, a = 1, b = 1, c= 1, ok = 0;
      |                               ^~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...