結果
問題 |
No.677 10^Nの約数
|
ユーザー |
|
提出日時 | 2018-06-18 15:06:39 |
言語 | Rust (1.83.0 + proconio) |
結果 |
WA
|
実行時間 | - |
コード長 | 339 bytes |
コンパイル時間 | 17,478 ms |
コンパイル使用メモリ | 405,144 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 16:55:30 |
合計ジャッジ時間 | 31,730 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | AC * 1 WA * 13 TLE * 3 |
ソースコード
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)/2) { if n % i == 0 { println!("{}", i); } } println!("{}", n); } fn getline() -> String{ let mut __ret=String::new(); std::io::stdin().read_line(&mut __ret).ok(); return __ret; }