結果

問題 No.537 ユーザーID
ユーザー liny_tailliny_tail
提出日時 2020-09-15 23:21:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 721 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 10,904 KB
実行使用メモリ 74,968 KB
最終ジャッジ日時 2023-09-04 03:08:20
合計ジャッジ時間 5,045 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
12,908 KB
testcase_01 AC 17 ms
8,452 KB
testcase_02 AC 17 ms
8,504 KB
testcase_03 AC 17 ms
8,448 KB
testcase_04 AC 17 ms
8,352 KB
testcase_05 AC 72 ms
9,508 KB
testcase_06 AC 20 ms
8,200 KB
testcase_07 AC 17 ms
8,500 KB
testcase_08 AC 16 ms
8,424 KB
testcase_09 AC 16 ms
8,188 KB
testcase_10 AC 17 ms
8,260 KB
testcase_11 AC 17 ms
8,200 KB
testcase_12 WA -
testcase_13 AC 17 ms
8,444 KB
testcase_14 AC 20 ms
8,560 KB
testcase_15 AC 17 ms
8,428 KB
testcase_16 AC 17 ms
8,456 KB
testcase_17 AC 17 ms
8,524 KB
testcase_18 AC 21 ms
8,460 KB
testcase_19 AC 20 ms
8,360 KB
testcase_20 WA -
testcase_21 AC 19 ms
8,492 KB
testcase_22 AC 19 ms
8,548 KB
testcase_23 AC 31 ms
8,880 KB
testcase_24 AC 17 ms
8,448 KB
testcase_25 AC 25 ms
8,648 KB
testcase_26 TLE -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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)) == 1:
  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])))
0