結果

問題 No.537 ユーザーID
ユーザー syunsukesyunsuke
提出日時 2018-06-30 22:13:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 586 ms / 2,000 ms
コード長 1,263 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 11,012 KB
実行使用メモリ 8,900 KB
最終ジャッジ日時 2023-09-13 16:24:52
合計ジャッジ時間 4,591 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
8,532 KB
testcase_01 AC 16 ms
8,476 KB
testcase_02 AC 16 ms
8,420 KB
testcase_03 AC 16 ms
8,528 KB
testcase_04 AC 15 ms
8,424 KB
testcase_05 AC 15 ms
8,472 KB
testcase_06 AC 15 ms
8,516 KB
testcase_07 AC 15 ms
8,612 KB
testcase_08 AC 14 ms
8,428 KB
testcase_09 AC 15 ms
8,332 KB
testcase_10 AC 15 ms
8,616 KB
testcase_11 AC 15 ms
8,528 KB
testcase_12 AC 15 ms
8,616 KB
testcase_13 AC 14 ms
8,532 KB
testcase_14 AC 16 ms
8,560 KB
testcase_15 AC 15 ms
8,472 KB
testcase_16 AC 15 ms
8,456 KB
testcase_17 AC 15 ms
8,524 KB
testcase_18 AC 116 ms
8,528 KB
testcase_19 AC 149 ms
8,428 KB
testcase_20 AC 130 ms
8,420 KB
testcase_21 AC 90 ms
8,500 KB
testcase_22 AC 143 ms
8,580 KB
testcase_23 AC 91 ms
8,636 KB
testcase_24 AC 37 ms
8,576 KB
testcase_25 AC 144 ms
8,500 KB
testcase_26 AC 159 ms
8,608 KB
testcase_27 AC 118 ms
8,548 KB
testcase_28 AC 221 ms
8,808 KB
testcase_29 AC 586 ms
8,900 KB
testcase_30 AC 460 ms
8,852 KB
testcase_31 AC 62 ms
8,548 KB
testcase_32 AC 65 ms
8,572 KB
testcase_33 AC 252 ms
8,736 KB
testcase_34 AC 110 ms
8,448 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
list1=[]
if  "1"+str(N) != str(N)+"1":
    list1=["1"+str(N),str(N)+"1"]
    for i in range(2,int(N**0.5)+1):
        if N%i==0:
            if i*i==N:
                if str(i)+str(i) not in list1:
                    list1.append(str(i)+str(i))
                else:
                    pass
            else:
                a=int(N/i)
                if str(i)+str(a) not in list1:
                    list1.append(str(i)+str(a))
                else:
                    pass
                if str(int(N/i))+str(i) not in list1:
                    list1.append(str(int(N/i))+str(i))
                else:
                    pass
else:
    list1=["1"+str(N)]
    for i in range(2,int(N**0.5)+1):
        if N%i==0:
            if i*i==N:
                if str(i)+str(i) not in list1:
                    list1.append(str(i)+str(i))
                else:
                    pass
            else:
                a=int(N/i)
                if str(i)+str(a) not in list1:
                    list1.append(str(i)+str(a))
                else:
                    pass
                if str(int(N/i))+str(i) not in list1:
                    list1.append(str(int(N/i))+str(i))
                else:
                    pass

print(len(list1))
0