結果
問題 |
No.677 10^Nの約数
|
ユーザー |
|
提出日時 | 2018-06-15 14:22:52 |
言語 | Rust (1.83.0 + proconio) |
結果 |
TLE
|
実行時間 | - |
コード長 | 312 bytes |
コンパイル時間 | 12,309 ms |
コンパイル使用メモリ | 400,184 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-06-30 14:49:03 |
合計ジャッジ時間 | 16,613 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 TLE * 2 -- * 8 |
ソースコード
fn main(){ let s = getline(); let num:i32 = s.trim().parse().unwrap(); let n:i32 = 10_i32.pow(num as u32); for i in 1..(n+1) { if n % i == 0 { println!("{}", i); } } } fn getline() -> String{ let mut __ret=String::new(); std::io::stdin().read_line(&mut __ret).ok(); return __ret; }