Result

AC

Duration

876ms

Code [DL]

use std::io::*;fn main(){let mut b=[0;36];stdin().read(&mut b);let mut m=[0;12];print!("{}",(0..12).fold(0,|x,i|{m[i]=b[i*3]as i32*10+b[i*3+1]as i32-m[i%3];x+i as i32/9*m[i]*(m[(i+1)%3+3]*m[(i+2)%3+6]-m[(i+1)%3+6]*m[(i+2)%3+3])})/6)}

stdin

08 31 64
03 82 23
28 13 84
13 07 43

stdout

6370

stderr

warning: unused `std::result::Result` which must be used
 --> /tmp/code.rs:1:43
  |
1 | use std::io::*;fn main(){let mut b=[0;36];stdin().read(&mut b);let mut m=[0;12];print!("{}",(0..12).fold(0,|x,i|{m[i]=b[i*3]as i32*10+b[i*3+1]as i32-m[i%3];x+i as i32/9*m[i]*(m[(i+1)%3+3]*m[(i+2)%3+6]-m[(i+1)%3+6]*m[(i+2)%3+3])})/6)}
  |                                           ^^^^^^^^^^^^^^^^^^^^^
  |
  = note: #[warn(unused_must_use)] on by default

strace