結果

問題 No.537 ユーザーID
ユーザー kept1994kept1994
提出日時 2022-05-04 19:55:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 91 ms / 2,000 ms
コード長 447 bytes
コンパイル時間 341 ms
コンパイル使用メモリ 87,120 KB
実行使用メモリ 76,496 KB
最終ジャッジ日時 2023-09-17 00:38:11
合計ジャッジ時間 4,177 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,564 KB
testcase_01 AC 63 ms
71,164 KB
testcase_02 AC 63 ms
71,284 KB
testcase_03 AC 63 ms
71,484 KB
testcase_04 AC 63 ms
71,608 KB
testcase_05 AC 63 ms
71,312 KB
testcase_06 AC 66 ms
71,352 KB
testcase_07 AC 67 ms
71,268 KB
testcase_08 AC 64 ms
71,168 KB
testcase_09 AC 65 ms
71,480 KB
testcase_10 AC 64 ms
71,608 KB
testcase_11 AC 65 ms
71,512 KB
testcase_12 AC 66 ms
71,420 KB
testcase_13 AC 67 ms
71,420 KB
testcase_14 AC 66 ms
71,312 KB
testcase_15 AC 67 ms
71,504 KB
testcase_16 AC 68 ms
71,156 KB
testcase_17 AC 68 ms
71,608 KB
testcase_18 AC 83 ms
75,580 KB
testcase_19 AC 88 ms
75,412 KB
testcase_20 AC 84 ms
75,556 KB
testcase_21 AC 78 ms
75,460 KB
testcase_22 AC 83 ms
75,424 KB
testcase_23 AC 77 ms
75,500 KB
testcase_24 AC 72 ms
75,496 KB
testcase_25 AC 85 ms
75,496 KB
testcase_26 AC 86 ms
75,496 KB
testcase_27 AC 83 ms
75,588 KB
testcase_28 AC 80 ms
76,240 KB
testcase_29 AC 91 ms
76,396 KB
testcase_30 AC 88 ms
76,280 KB
testcase_31 AC 75 ms
75,552 KB
testcase_32 AC 74 ms
75,556 KB
testcase_33 AC 90 ms
76,496 KB
testcase_34 AC 80 ms
75,320 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys
def getDivisors(n: int):
    res = []
    i = 1
    while i * i <= n:
        if n % i == 0:
            res.append((i, n // i))
        i += 1
    return res
    
def main():
    N = int(input())
    l = getDivisors(N)
    ans = set()
    for ll in l:
        ans.add(str(ll[0]) + str(ll[1]))
        ans.add(str(ll[1]) + str(ll[0]))
    print(len(ans))
    return
        

if __name__ == '__main__':
    main()
0