# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
481567 |
2021-10-21T07:55:38 Z |
SlavicG |
Cluedo (IOI10_cluedo) |
C++17 |
|
0 ms |
0 KB |
#include "bits/stdc++.h"
using namespace std;
#define ll long long
#define forn(i,n) for(int i=0;i<n;i++)
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(),v.rend()
#define pb push_back
#define sz(a) (int)a.size()
void Solve(){
set<int> a, b, c;
for(int i = 0;i < 6;++i){
a.insert(i + 1);
}
for(int i = 0;i < 10;++i){
b.insert(i + 1);
}
for(int i = 0;i < 10;++i){
c.insert(i + 1);
}
while(true){
int A = *a.begin(), B = *b.begin(), C = *c.begin();
int val = Theory(A, B, C);
if(!val)return;
if(val == 1)a.erase(a.begin());
if(val == 2)b.erase(b.begin());
if(val == 3)c.erase(c.begin());
}
}
Compilation message
cluedo.cpp: In function 'void Solve()':
cluedo.cpp:28:19: error: 'Theory' was not declared in this scope
28 | int val = Theory(A, B, C);
| ^~~~~~