newton/solutions/rust/339A.rs

13 lines
249 B
Rust
Raw Normal View History

2025-01-18 20:03:03 +00:00
use std::io;
fn main() {
let mut s = String::new();
io::stdin().read_line(&mut s).unwrap();
let mut nums = s.trim().split('+').map(|d| String::from(d)).collect::<Vec<String>>();
nums.sort();
println!("{}", nums.join("+"));
}