Submission #989951

#TimeUsernameProblemLanguageResultExecution timeMemory
989951the_coding_poohCluedo (IOI10_cluedo)C++14
100 / 100
7 ms344 KiB
#include <bits/stdc++.h> #include "cluedo.h" #include "grader.h" #define uwu return 0; using namespace std; void Solve(){ queue <int> q[4]; for (int i = 1; i <= 6; i++){ q[1].push(i); } for (int i = 1; i <= 10; i++){ q[2].push(i); } for (int i = 1; i <= 6; i++){ q[3].push(i); } int ret; while (ret = Theory(q[1].front(), q[2].front(), q[3].front())){ q[ret].pop(); } return; }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:20:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   20 |     while (ret = Theory(q[1].front(), q[2].front(), q[3].front())){
      |            ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...