From 07c9725d076e1d62fa07141e2ba3ae3933605ab7 Mon Sep 17 00:00:00 2001 From: yenru0 Date: Sat, 11 Apr 2026 17:49:52 +0900 Subject: [PATCH] complete 18411.rs --- storage/zeta/rs/completed/18411.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 storage/zeta/rs/completed/18411.rs 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