結果
| 問題 |
No.537 ユーザーID
|
| コンテスト | |
| ユーザー |
yurara
|
| 提出日時 | 2019-06-09 15:36:22 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 130 ms / 2,000 ms |
| コード長 | 326 bytes |
| コンパイル時間 | 399 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 12,160 KB |
| 最終ジャッジ日時 | 2024-10-06 00:07:37 |
| 合計ジャッジ時間 | 3,161 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
import math
def divisors(n):
lst = []
for i in range(1, int(math.sqrt(n)) + 1):
if n % i == 0:
lst.append(i)
if i != n // i:
lst.append(n // i)
lst.sort()
return lst
N = int(input())
s = set()
for n in divisors(N):
s.add(str(n) + str(N // n))
print(len(s))
yurara