solutions: 61A

This commit is contained in:
Muhammad Nauman Raza 2025-02-08 16:28:41 +00:00
parent 08efdec05f
commit 5b99663d99
Signed by: devraza
GPG key ID: 91EAD6081011574B

View file

@ -0,0 +1,25 @@
use std::io;
fn main() {
let mut s = String::new();
io::stdin().read_line(&mut s).unwrap();
let a: Vec<u8> = s.trim().chars().map(|d| d as u8).collect();
let mut s = String::new();
io::stdin().read_line(&mut s).unwrap();
let b: Vec<u8> = s.trim().chars().map(|d| d as u8).collect();
let mut s = String::new();
for i in 0..a.len() {
if a[i] != b[i] {
s.push_str("1");
} else {
s.push_str("0");
}
}
println!("{}", s);
}