solutions: 339A
This commit is contained in:
parent
94699362f2
commit
aa2729e377
1 changed files with 12 additions and 0 deletions
12
solutions/rust/339A.rs
Normal file
12
solutions/rust/339A.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
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("+"));
|
||||
}
|
Loading…
Reference in a new issue