Submission #232675

#TimeUsernameProblemLanguageResultExecution timeMemory
232675anubhavdharCluedo (IOI10_cluedo)C++14
100 / 100
18 ms384 KiB
#include<bits/stdc++.h> #include "cluedo.h" #include "grader.h" void Solve(){int x=1,y=1,z=1,i,tmp;while(true){tmp=Theory(x,y,z);if(tmp<2){if(tmp==0)return;else++x;}else{if(tmp==2)++y;else++z;}}}

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:4:30: warning: unused variable 'i' [-Wunused-variable]
 void Solve(){int x=1,y=1,z=1,i,tmp;while(true){tmp=Theory(x,y,z);if(tmp<2){if(tmp==0)return;else++x;}else{if(tmp==2)++y;else++z;}}}
                              ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...