제출 #232675

#제출 시각아이디문제언어결과실행 시간메모리
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;}}}

컴파일 시 표준 에러 (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...