use proconio::*; fn main() { input! { _n: usize, _w: usize, h: usize, s: String, } let ni = s.split('l') .map(|c| c.to_string().len()).collect::>(); for y in (0..h).rev() { for x in ni.iter() { let msg = if *x < y + 1 { "x" } else { "o" }; print!("{msg}"); } println!(); } }