結果

問題 No.207 世界のなんとか
コンテスト
ユーザー Haniwa
提出日時 2025-10-26 20:15:45
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 300 bytes
コンパイル時間 21,392 ms
コンパイル使用メモリ 399,376 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-10-26 20:16:08
合計ジャッジ時間 12,678 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

use proconio::input;

fn main() {
	input! {
		a: usize,
		b: usize,
	}

    let ans: Vec<usize> = (a..=b)
        .filter(|num| {
            let str = num.to_string();

            str.chars().any(|c| c == '3') || num % 3 == 0
        })
        .collect();

	for a in ans {
		println!("{a}");
	}
}
0