Submission #542108

#TimeUsernameProblemLanguageResultExecution timeMemory
542108inventiontimeCluedo (IOI10_cluedo)C++17
100 / 100
11 ms256 KiB
#include "grader.h"
#include "cluedo.h"

const int M = 6, L = 10, W = 6;

void Solve(){
   
   int m = 1, l = 1, w = 1;
   int r;
   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:10:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   10 |    while(r = Theory(m, l, w)) {
      |          ~~^~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...