結果

問題 No.677 10^Nの約数
コンテスト
ユーザー cra77756176
提出日時 2022-12-16 00:20:24
言語 Rust
(1.97.1 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 0 ms / 2,000 ms
+ 958µs
コード長 427 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 856 ms
コンパイル使用メモリ 195,824 KB
実行使用メモリ 9,848 KB
最終ジャッジ日時 2026-09-22 13:35:26
合計ジャッジ時間 3,052 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

fn main() {
    let mut n = String::new();
    std::io::stdin().read_line(&mut n).ok();
    let n: u32 = n.trim().parse().unwrap();

    let mut factors: Vec<u64> = (0..=n)
        .flat_map(|i| {
            (0..=n)
                .map(|j| 2u64.pow(i) * 5u64.pow(j))
                .collect::<Vec<u64>>()
        })
        .collect();
    factors.sort_unstable();

    for f in factors {
        println!("{}", f);
    }
}
0