結果
問題 |
No.537 ユーザーID
|
ユーザー |
![]() |
提出日時 | 2020-09-15 23:22:32 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 721 bytes |
コンパイル時間 | 129 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 68,384 KB |
最終ジャッジ日時 | 2024-06-22 02:52:02 |
合計ジャッジ時間 | 5,049 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 17 WA * 6 TLE * 1 -- * 8 |
ソースコード
import itertools def fint(number): lst = [1] while True: if number % 2 == 0: lst.append(2) number //= 2 else: break num = 3 while True: #print num if number ** 0.5 < num: lst.append(number) break if number % num == 0: lst.append(num) number //= num else: num += 2 return lst a = int(input().strip()) lst = fint(a) if len(set(lst)) <= 2: print(1) exit(0) lst2 = [] for i in range(2, len(lst)): for j in itertools.combinations(lst, r=i): tmp = eval('*'.join([str(k) for k in j])) lst2.append([tmp, a // tmp]) lst2.append([a // tmp, tmp]) print(len(set([''.join([str(j) for j in i]) for i in lst2])))