結果
| 問題 |
No.677 10^Nの約数
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-30 20:51:30 |
| 言語 | Go (1.23.4) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 337 bytes |
| コンパイル時間 | 10,765 ms |
| コンパイル使用メモリ | 226,660 KB |
| 実行使用メモリ | 13,752 KB |
| 最終ジャッジ日時 | 2024-06-27 23:58:08 |
| 合計ジャッジ時間 | 15,541 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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
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 {
fmt.Println(i)
}
}
}