// yukicoder Lv.1 No.207 世界のなんとか use proconio::input; fn main() { input! { a: usize, b: usize, } for i in a..b+1 { if (i % 3 == 0) || (i.to_string().contains('3')) { println!("{}", i); } } }