20 lines
431 B
Rust
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);
|
|
} |