結果
| 問題 |
No.677 10^Nの約数
|
| コンテスト | |
| ユーザー |
cra77756176
|
| 提出日時 | 2022-12-16 00:20:24 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 427 bytes |
| コンパイル時間 | 13,215 ms |
| コンパイル使用メモリ | 401,832 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-14 16:23:20 |
| 合計ジャッジ時間 | 14,393 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 17 |
ソースコード
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);
}
}
cra77756176