結果

問題 No.207 世界のなんとか
ユーザー bubo
提出日時 2018-02-20 15:16:48
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 397 bytes
コンパイル時間 22,217 ms
コンパイル使用メモリ 385,316 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-19 08:16:55
合計ジャッジ時間 16,337 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io::stdin;
pub fn main() {
    let (a, b): (usize, usize) = {
        let mut b = String::new();
        let _ = stdin().read_line(&mut b);
        let mut v = b.split_whitespace().flat_map(|x| x.parse());
        (v.next().unwrap(), v.next().unwrap())
    };
    for i in a..b + 1 {
        if i % 3 == 0 || i.to_string().contains("3") {
            println!("{}", i);
        }
    }
}
0