Result

WA

Duration

934ms

Code [DL]

use std::io::*;fn main(){let mut b=String::new();stdin().read_to_string(&mut b);let a:Vec<i32>=b.split(|c|c<'!').map(|e|e.parse().unwrap()).collect();print!("{}",(0..24).fold(0,|s,i|s-(a[i/2]*a[8-i/12*6-i%3]*a[(i/6+1&2)*3+(i+3)/2%3+3]^-(i as i32%2)))/6-2);}

stdin

95 70 57
56 23 20
31 14 41
09 53 02

stdout

stderr

warning: unused `std::result::Result` which must be used
 --> /tmp/code.rs:1:50
  |
1 | use std::io::*;fn main(){let mut b=String::new();stdin().read_to_string(&mut b);let a:Vec<i32>=b.split(|c|c<'!').map(|e|e.parse().unwrap()).collect();print!("{}",(0..24).fold(0,|s,i|s-(a[i/2]*a[8-i/12*6-i%3]*a[(i/6+1&2)*3+(i+3)/2%3+3]^-(i as i32%2)))/6-2);}
  |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: #[warn(unused_must_use)] on by default

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ParseIntError { kind: Empty }', src/libcore/result.rs:906:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.

strace