結果

問題 No.537 ユーザーID
ユーザー liny_tailliny_tail
提出日時 2020-09-15 23:28:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 723 bytes
コンパイル時間 257 ms
コンパイル使用メモリ 10,912 KB
実行使用メモリ 75,896 KB
最終ジャッジ日時 2023-09-04 03:08:58
合計ジャッジ時間 4,941 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
12,736 KB
testcase_01 AC 16 ms
8,524 KB
testcase_02 AC 16 ms
8,532 KB
testcase_03 AC 16 ms
8,468 KB
testcase_04 AC 16 ms
8,444 KB
testcase_05 AC 71 ms
9,476 KB
testcase_06 AC 19 ms
8,332 KB
testcase_07 AC 16 ms
8,364 KB
testcase_08 AC 16 ms
8,444 KB
testcase_09 AC 16 ms
8,276 KB
testcase_10 AC 16 ms
8,144 KB
testcase_11 AC 16 ms
8,236 KB
testcase_12 AC 16 ms
8,440 KB
testcase_13 AC 17 ms
8,468 KB
testcase_14 AC 19 ms
8,512 KB
testcase_15 AC 17 ms
8,460 KB
testcase_16 AC 16 ms
8,456 KB
testcase_17 AC 17 ms
8,464 KB
testcase_18 AC 20 ms
8,524 KB
testcase_19 AC 19 ms
8,528 KB
testcase_20 AC 125 ms
8,500 KB
testcase_21 AC 18 ms
8,432 KB
testcase_22 AC 18 ms
8,564 KB
testcase_23 AC 30 ms
8,864 KB
testcase_24 AC 16 ms
8,420 KB
testcase_25 AC 23 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
      
      if number == 1:
        break
    else:
      num += 2
  
  return lst

a = int(input().strip())

lst = fint(a)

lst2 = []
for i in range(2, len(lst) + 1):
  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