Files
CodeObject/storage/zeta/rs/completed/18411.rs
2026-04-11 17:49:52 +09:00

20 lines
431 B
Rust

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::<usize>().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);
}