use proconio::*; fn main() { input! { _n: usize, w: usize, h: usize, s: String, } let mut kazu = s.split('l').map(|s| s.chars().count()).collect::>(); while w - kazu.len() != 0 { kazu.push(0); } for x in (0..h).rev() { for y in kazu.iter() { let ni = if *y < x + 1 { "x" } else { "o" }; print!("{ni}"); } println!(); } }