結果
問題 |
No.677 10^Nの約数
|
ユーザー |
![]() |
提出日時 | 2018-04-28 00:11:14 |
言語 | Rust (1.83.0 + proconio) |
結果 |
RE
|
実行時間 | - |
コード長 | 527 bytes |
コンパイル時間 | 13,511 ms |
コンパイル使用メモリ | 376,924 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 22:55:27 |
合計ジャッジ時間 | 14,603 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 17 |
ソースコード
fn main() { let mut buf = String::new(); let _ = std::io::stdin().read_line(&mut buf); let n: usize = buf.parse().unwrap(); let mut twos = vec![1u64; n+1]; for i in 1..n+1 { twos[i] = twos[i-1] * 2; } let mut fives = vec![1u64; n+1]; for i in 1..n+1 { fives[i] = fives[i-1] * 5; } let mut ans = vec![]; for &t in &twos { for &f in &fives { ans.push(t * f); } } ans.sort(); for &a in &ans { println!("{}", a); } }