Submission #232346

#TimeUsernameProblemLanguageResultExecution timeMemory
232346crossing0verCluedo (IOI10_cluedo)C++17
100 / 100
18 ms384 KiB
#include<bits/stdc++.h>
#include "grader.h"
#include "cluedo.h"
using namespace std;

void Solve(){
  int r;
   set<int> s[4];
   for (int i = 1; i <= 6; i++)
   	s[1].insert(i),
   	s[3].insert(i);
	for (int i = 1; i <= 10; i++)
		s[2].insert(i);
	while(true) {
      r = Theory ( *s[1].begin() , *s[2].begin(), *s[3].begin());
      if (!r) return;
      s[r].erase(s[r].begin());
      
	}

}

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:9:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    for (int i = 1; i <= 6; i++)
    ^~~
cluedo.cpp:12:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  for (int i = 1; i <= 10; i++)
  ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...