結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-07-01 00:44:27 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 133 ms / 2,000 ms |
| + 166µs | |
| コード長 | 414 bytes |
| 記録 | |
| コンパイル時間 | 57 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 12,160 KB |
| 最終ジャッジ日時 | 2026-09-10 09:25:49 |
| 合計ジャッジ時間 | 4,066 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
def main():
N = int(input())
if N == 1:
print(1)
return
n = factor(N)
x = set()
for i in n:
j = N // i
x.add(str(i) + str(j))
x.add(str(j) + str(i))
print(len(x))
def factor(n):
i = 2
ret = []
while i ** 2 <= n:
if not n % i:
ret.append(i)
i += 1
if n > 1:
ret.append(n)
return ret
main()