Result

WA

Duration

699ms

Code [DL]

use std::io::Read;

fn main() {
    let mut z = String::new();
    std::io::stdin().read_to_string(&mut z).unwrap();
    let a:i32 = z[0..2].parse().unwrap();
    let b:i32 = z[3..5].parse().unwrap();
    let c:i32 = z[6..8].parse().unwrap();
    let m:i32 = z[9..11].parse().unwrap()-a;
    let n:i32 = z[12..14].parse().unwrap()-b;
    let o:i32 = z[15..17].parse().unwrap()-c;
    let p:i32 = z[18..20].parse().unwrap()-a;
    let q:i32 = z[21..23].parse().unwrap()-b;
    let r:i32 = z[24..26].parse().unwrap()-c;
    let s:i32 = z[27..29].parse().unwrap()-a;
    let t:i32 = z[30..32].parse().unwrap()-b;
    let u:i32 = z[33..35].parse().unwrap()-c;
    print!("{}", (m*q*u+n*r*s+o*p*t-m*r*t-n*p*u-o*q*s)/6);
}

stdin

02 39 89
50 90 32
96 72 32
25 08 91

stdout

stderr

error[E0284]: type annotations required: cannot resolve `<_ as std::str::FromStr>::Err == _`
 --> /tmp/code.rs:9:26
  |
9 |     let m:i32 = z[9..11].parse().unwrap()-a;
  |                          ^^^^^

error: aborting due to previous error

/bin/script: line 16: /tmp/code: not found
rm: can't remove '/tmp/code': No such file or directory

strace