by@moratorium08
WA
627ms
use std::*;fn main(){let mut b=String::new();stdin().read_to_string(&mut b);let mut x:Vec<i32>=b.trim().split(|c|c<'!').map(|e|e.parse().unwrap()).collect();for i in 0..9{x[i]-=x[9+i%3]}print!("{}",(x[0]*(x[5]*x[7]-x[4]*x[8])+x[1]*(x[3]*x[8]-x[5]*x[6])+x[2]*(x[4]*x[6]-x[3]*x[7]))/6)}
91 65 41 92 06 11 67 39 45 90 37 05
error[E0425]: cannot find function `stdin` in this scope --> /tmp/code.rs:1:46 | 1 | use std::*;fn main(){let mut b=String::new();stdin().read_to_string(&mut b);let mut x:Vec<i32>=b.trim().split(|c|c<'!').map(|e|e.parse().unwrap()).collect();for i in 0..9{x[i]-=x[9+i%3]}print!("{}",(x[0]*(x[5]*x[7]-x[4]*x[8])+x[1]*(x[3]*x[8]-x[5]*x[6])+x[2]*(x[4]*x[6]-x[3]*x[7]))/6)} | ^^^^^ not found in this scope | help: possible candidate is found in another module, you can import it into scope | 1 | use std::io::stdin; | 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