1
0
Fork 0
This repository has been archived on 2023-05-11. You can view files and clone it, but cannot push or open issues or pull requests.
lesson-codeforces-rust/339A.rs

12 lines
269 B
Rust

use std::io;
fn main() {
let mut buf = String::new();
io::stdin().read_line(&mut buf).unwrap();
let mut numbers: Vec<String> = buf.trim_end().split('+').map(|item| item.to_string()).collect();
numbers.sort();
println!("{}", numbers.join("+"));
}