by@xuzijian629_key
AC
921ms
use std::io::*;fn main(){let mut b="".into();stdin().read_to_string(&mut b);let a:Vec<i32>=b.split_whitespace().map(|e|e.parse().unwrap()).collect();print!("{}",(0..24).fold(0,|s,i|s+(i as i32%2*2-1)*a[i/2]*a[8-i/12*6-i%3]*a[(i/6+1&2)*3+(i+3)/2%3+3])/6)}
38 92 81 10 47 82 86 12 27 08 47 99
11630
warning: unused `std::result::Result` which must be used --> /tmp/code.rs:1:46 | 1 | use std::io::*;fn main(){let mut b="".into();stdin().read_to_string(&mut b);let a:Vec<i32>=b.split_whitespace().map(|e|e.parse().unwrap()).collect();print!("{}",(0..24).fold(0,|s,i|s+(i as i32%2*2-1)*a[i/2]*a[8-i/12*6-i%3]*a[(i/6+1&2)*3+(i+3)/2%3+3])/6)} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: #[warn(unused_must_use)] on by default