1
0
Fork 0
This repository has been archived on 2023-05-11. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
lesson-codeforces-rust/339A.rs
2023-03-27 07:33:31 +04:00

11 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("+"));
}