solutions: 236A
This commit is contained in:
parent
4b59bcc717
commit
dace217df8
1 changed files with 16 additions and 0 deletions
16
solutions/rust/236A.rs
Normal file
16
solutions/rust/236A.rs
Normal file
|
@ -0,0 +1,16 @@
|
|||
use std::io;
|
||||
use std::collections::HashSet;
|
||||
|
||||
fn main() {
|
||||
let mut s = String::new();
|
||||
io::stdin().read_line(&mut s).unwrap();
|
||||
|
||||
let mut seen = HashSet::new();
|
||||
s.retain(|c| seen.insert(c));
|
||||
|
||||
if s.trim().len() % 2 != 0 {
|
||||
println!("IGNORE HIM!");
|
||||
} else {
|
||||
println!("CHAT WITH HER!");
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue