Advertisement
juanjo12x

IOI_2010_Cluedo

Jun 15th, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include "grader.h"
  2. #include "cluedo.h"
  3. void Solve() {
  4.    int T[] = {0, 6, 10, 6}; // candidate theory, ignore T[0]
  5.    int i; // result of Theory
  6.    do {
  7.      i = Theory(T[1], T[2], T[3]);
  8.      if (i != 0) --T[i];
  9.    } while (i != 0);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement