ABC 044, c and d unfinished
This commit is contained in:
22
atcoder/beginner_contests/abc044/src/bin/b.rs
Normal file
22
atcoder/beginner_contests/abc044/src/bin/b.rs
Normal file
@@ -0,0 +1,22 @@
|
||||
use proconio::input;
|
||||
|
||||
fn main() {
|
||||
input!{
|
||||
w: String,
|
||||
};
|
||||
|
||||
let mut counts = [0; 26];
|
||||
for c in w.chars() {
|
||||
let i = c.to_digit(36).unwrap();
|
||||
counts[(i - 10) as usize] += 1;
|
||||
}
|
||||
|
||||
for count in counts.iter() {
|
||||
if count % 2 != 0 {
|
||||
println!("No");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
println!("Yes");
|
||||
}
|
||||
Reference in New Issue
Block a user