fn read_vec() -> Vec { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); s.trim() .split_whitespace() .map(|e| e.parse().ok().unwrap()) .collect() } fn main() { let lrn:Vec = read_vec(); let l = lrn[0]; let r = lrn[1] + 1; let n = lrn[2]; for i in 0..n { println!( "{}", r/n + if i < r%n { 1 } else { 0 } - l/n - if i < l%n { 1 } else { 0 } ); } }