Submission #199531

#TimeUsernameProblemLanguageResultExecution timeMemory
199531Markomafko972Cluedo (IOI10_cluedo)C++14
100 / 100
23 ms380 KiB
#include "grader.h" #include "cluedo.h" #include<bits/stdc++.h> using namespace std; set<int> s[5]; void Solve (){ for (int i = 1; i <= 10; i++) { s[2].insert(i); if (i <= 6) { s[1].insert(i); s[3].insert(i); } } while (s[1].size() > 1 || s[2].size() > 1 || s[3].size() > 1) { int t = Theory(*s[1].begin(), *s[2].begin(), *s[3].begin()); if (t == 0) return; s[t].erase(s[t].begin()); } int t = Theory(*s[1].begin(), *s[2].begin(), *s[3].begin()); return; }

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:23:6: warning: unused variable 't' [-Wunused-variable]
  int t = Theory(*s[1].begin(), *s[2].begin(), *s[3].begin());
      ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...