use proconio::{fastout, input}; #[fastout] fn main() { input! { n: usize } println!("{}", output(solve(n))); } fn solve(n: usize) -> String { if n == 1 { String::from("1") } else { (0..n) .rev() .map(|x| String::from((x as u8 + b'0') as char).repeat(n)) .collect() } } fn output(ans: String) -> String { ans }