diff --git a/storage/zeta/rs/completed/18411.rs b/storage/zeta/rs/completed/18411.rs new file mode 100644 index 0000000..cd190c2 --- /dev/null +++ b/storage/zeta/rs/completed/18411.rs @@ -0,0 +1,20 @@ +use std::io::{read_to_string, stdin}; + +fn main() { + let temp = read_to_string(stdin()).unwrap(); + let mut iter = temp + .split_ascii_whitespace() + .map(|x| x.parse::().unwrap()); + + let a = iter.next().unwrap(); + let b = iter.next().unwrap(); + let c = iter.next().unwrap(); + + let ab = a + b; + let bc = b + c; + let ca = c + a; + + let abc = ab.max(bc).max(ca); + + println!("{}", abc); +} \ No newline at end of file