Submission #1815790
Source Code Expand
use std::io; fn next_vec() -> Vec<i64> { let mut buf = String::new(); io::stdin().read_line(&mut buf).unwrap(); buf.split_whitespace().map(|n| n.parse().unwrap()).collect() } fn main() { let v = next_vec(); let a = v[0]; let b = v[1]; let c = v[2]; let ans = if a % 2 != 0 && b % 2 != 0 && c % 2 != 0 { a * b * c / v.iter().max().unwrap() } else { 0 }; println!("{:?}", ans); }
Submission Info
Submission Time | |
---|---|
Task | A - Divide a Cuboid |
User | nicklaw296 |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 464 Byte |
Status | CE |
Compile Error
./Main.cpp:1:1: error: ‘use’ does not name a type use std::io; ^ ./Main.cpp:3:1: error: ‘fn’ does not name a type fn next_vec() -> Vec<i64> { ^ ./Main.cpp:9:1: error: ‘fn’ does not name a type fn main() { ^