結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
12,888 KB
testcase_01 AC 16 ms
8,416 KB
testcase_02 AC 16 ms
8,420 KB
testcase_03 AC 16 ms
8,576 KB
testcase_04 AC 16 ms
8,448 KB
testcase_05 AC 72 ms
9,484 KB
testcase_06 AC 19 ms
8,312 KB
testcase_07 AC 17 ms
8,452 KB
testcase_08 AC 16 ms
8,588 KB
testcase_09 AC 15 ms
8,296 KB
testcase_10 AC 16 ms
8,172 KB
testcase_11 AC 16 ms
8,268 KB
testcase_12 AC 16 ms
8,556 KB
testcase_13 AC 16 ms
8,460 KB
testcase_14 AC 19 ms
8,476 KB
testcase_15 AC 17 ms
8,524 KB
testcase_16 AC 16 ms
8,432 KB
testcase_17 AC 16 ms
8,504 KB
testcase_18 AC 20 ms
8,644 KB
testcase_19 AC 19 ms
8,432 KB
testcase_20 WA -
testcase_21 AC 17 ms
8,564 KB
testcase_22 AC 18 ms
8,472 KB
testcase_23 AC 29 ms
9,000 KB
testcase_24 AC 16 ms
8,444 KB
testcase_25 AC 22 ms
8,612 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)

if len(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])))
0