1 2 3 4 5 6 7 8 9 10 11 12
mod common; use common::*; fn main() { const MAX_TURNS: usize = 1000; let (mut elves, mut lookup) = read_from_stdin(); if let Some(n) = play(&mut elves, &mut lookup, MAX_TURNS) { println!("{}", n+1); } else { panic!("Not enough turns ({}), try increasing MAX_TURNS", MAX_TURNS); } }
Generated with cgit - Back to sebastiano.tronto.net