Submission #715484

# Submission time Handle Problem Language Result Execution time Memory
715484 2023-03-27T04:28:16 Z vjudge1 Cluedo (IOI10_cluedo) C++17
0 / 100
1000 ms 216 KB
#include "grader.h"
#include "cluedo.h"

void Solve()
{
   int r;
   int a=1, b=1, c=1, v;
   while ((v = Theory(a, b, c)) != 0)
   {
      if (v == 1)
      {
         a++;
      }
      else if (v == 2)
      {
         b++;
      }
      else if (c == 2)
      {
         c++;
      }
   }
}

Compilation message

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:6:8: warning: unused variable 'r' [-Wunused-variable]
    6 |    int r;
      |        ^
# Verdict Execution time Memory Grader output
1 Execution timed out 2776 ms 208 KB Time limit exceeded (wall clock)
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 2734 ms 216 KB Time limit exceeded (wall clock)
2 Halted 0 ms 0 KB -