結果
問題 | No.677 10^Nの約数 |
ユーザー | wagasa2 |
提出日時 | 2018-04-28 00:16:47 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 587 bytes |
コンパイル時間 | 377 ms |
コンパイル使用メモリ | 10,896 KB |
実行使用メモリ | 8,060 KB |
最終ジャッジ日時 | 2023-09-10 07:31:48 |
合計ジャッジ時間 | 8,139 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
7,860 KB |
testcase_01 | AC | 16 ms
8,036 KB |
testcase_02 | WA | - |
testcase_03 | AC | 16 ms
8,048 KB |
testcase_04 | WA | - |
testcase_05 | AC | 17 ms
8,060 KB |
testcase_06 | WA | - |
testcase_07 | AC | 16 ms
7,952 KB |
testcase_08 | WA | - |
testcase_09 | AC | 19 ms
8,044 KB |
testcase_10 | WA | - |
testcase_11 | AC | 43 ms
7,996 KB |
testcase_12 | WA | - |
testcase_13 | AC | 273 ms
8,044 KB |
testcase_14 | WA | - |
testcase_15 | TLE | - |
testcase_16 | TLE | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
ソースコード
#coding:utf8 import math def makeDivisorList(n): if n < 1: return [] elif n == 1: return [1] else: divisorList = [] divisorList.append(1) for i in range(2, math.ceil(math.sqrt(n))): if n % i == 0: divisorList.append(i) if i != 1 and i*i != n: divisorList.append(n//i) divisorList.append(n) return divisorList N = int(input()) N = pow(10,N) divisorList = makeDivisorList(N) divisorList.sort() for i in range(0, len(divisorList)): print(divisorList[i])