solutions: 236A

This commit is contained in:
Muhammad Nauman Raza 2025-01-18 20:25:54 +00:00
parent 4b59bcc717
commit dace217df8
Signed by: devraza
GPG key ID: 91EAD6081011574B

16
solutions/rust/236A.rs Normal file
View 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!");
}
}