結果

問題 No.1644 Eight Digits
ユーザー taiga0629kyoprotaiga0629kyopro
提出日時 2021-08-13 21:25:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 50 ms / 1,000 ms
コード長 195 bytes
コンパイル時間 139 ms
コンパイル使用メモリ 82,208 KB
実行使用メモリ 66,440 KB
最終ジャッジ日時 2024-04-14 16:38:52
合計ジャッジ時間 2,449 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
65,164 KB
testcase_01 AC 48 ms
65,024 KB
testcase_02 AC 47 ms
63,912 KB
testcase_03 AC 47 ms
65,668 KB
testcase_04 AC 48 ms
66,036 KB
testcase_05 AC 48 ms
65,276 KB
testcase_06 AC 49 ms
65,164 KB
testcase_07 AC 48 ms
66,028 KB
testcase_08 AC 48 ms
65,140 KB
testcase_09 AC 48 ms
65,592 KB
testcase_10 AC 47 ms
65,800 KB
testcase_11 AC 48 ms
66,244 KB
testcase_12 AC 48 ms
64,992 KB
testcase_13 AC 47 ms
66,144 KB
testcase_14 AC 49 ms
65,748 KB
testcase_15 AC 48 ms
64,768 KB
testcase_16 AC 47 ms
65,512 KB
testcase_17 AC 48 ms
66,148 KB
testcase_18 AC 49 ms
66,440 KB
testcase_19 AC 48 ms
65,768 KB
testcase_20 AC 48 ms
65,448 KB
testcase_21 AC 47 ms
65,624 KB
testcase_22 AC 50 ms
64,948 KB
testcase_23 AC 49 ms
65,344 KB
testcase_24 AC 49 ms
64,388 KB
testcase_25 AC 48 ms
65,348 KB
testcase_26 AC 48 ms
64,492 KB
testcase_27 AC 48 ms
65,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

k=int(input())
from itertools import permutations as per
ans=0
p=per(list(range(1,9)))
for tup in p:
    num=0
    for x in tup:
        num*=10
        num+=x
    if num%k==0:ans+=1

print(ans)
0