solutions: 339A

This commit is contained in:
Muhammad Nauman Raza 2025-01-18 20:03:03 +00:00
parent 94699362f2
commit aa2729e377
Signed by: devraza
GPG key ID: 91EAD6081011574B

12
solutions/rust/339A.rs Normal file
View 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("+"));
}