use proconio::{fastout, input}; #[fastout] fn main() { input! { n: usize, h: i8, t: [i8; n], } println!("{}", output(solve(h, t))) } fn solve(h: i8, t: Vec) -> Vec { t.into_iter().map(|t| t as i16 + h as i16).collect() } fn output(ans: Vec) -> String { ans.into_iter() .map(|x| x.to_string()) .collect::>() .join(" ") }