結果
問題 |
No.677 10^Nの約数
|
ユーザー |
|
提出日時 | 2018-04-30 20:50:55 |
言語 | Go (1.23.4) |
結果 |
TLE
|
実行時間 | - |
コード長 | 419 bytes |
コンパイル時間 | 14,004 ms |
コンパイル使用メモリ | 222,424 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-06-27 23:57:42 |
合計ジャッジ時間 | 18,926 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 TLE * 1 -- * 9 |
ソースコード
package main import ( "bufio" "fmt" "math" "os" "strconv" ) func main() { var pow float64 var convertInt int var divisor []int input := bufio.NewScanner(os.Stdin) if input.Scan() { convertInt, _ = strconv.Atoi(input.Text()) pow = math.Pow10(convertInt) } for i := 1; i <= int(pow); i++ { if int(pow)%i == 0 { divisor = append(divisor, i) } } for _, v := range divisor { fmt.Println(v) } }