use proconio::input; fn main() { input! { t: usize, } for _ in 0..t { input! { d: usize, a: f64, x: [f64; d], }; for (i, &v) in x.iter().enumerate() { print!("{}", (v / a).round()); if i + 1 == x.len() { println!(); } else { print!(" "); } } } }