by@pizzacat83a
AC
1132ms
use std::io::*; fn main(){let mut b=String::new();let mut c=String::new();stdin().read_line(&mut b);while!c.contains('K'){c=String::new();stdin().read_line(&mut c);print!("{}",b);}let t=c.trim_end();print!("{}{}",t,"=".repeat(b.trim_end().len()-t.len()));}
T K
T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T K=============
warning: unused `std::result::Result` that must be used --> /tmp/code.rs:2:59 | 2 | fn main(){let mut b=String::new();let mut c=String::new();stdin().read_line(&mut b);while!c.contains('K'){c=String::new();stdin().read_line(&mut c);print!("{}",b);}let t=c.trim_end();print!("{}{}",t,"=".repeat(b.trim_end().len()-t.len()));} | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: #[warn(unused_must_use)] on by default = note: this `Result` may be an `Err` variant, which should be handled warning: unused `std::result::Result` that must be used --> /tmp/code.rs:2:123 | 2 | fn main(){let mut b=String::new();let mut c=String::new();stdin().read_line(&mut b);while!c.contains('K'){c=String::new();stdin().read_line(&mut c);print!("{}",b);}let t=c.trim_end();print!("{}{}",t,"=".repeat(b.trim_end().len()-t.len()));} | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this `Result` may be an `Err` variant, which should be handled