結果

問題 No.1644 Eight Digits
ユーザー 👑 H20H20
提出日時 2021-08-13 22:08:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 65 ms / 1,000 ms
コード長 155 bytes
コンパイル時間 336 ms
コンパイル使用メモリ 82,352 KB
実行使用メモリ 76,276 KB
最終ジャッジ日時 2024-04-14 18:09:26
合計ジャッジ時間 3,624 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
76,060 KB
testcase_01 AC 60 ms
75,920 KB
testcase_02 AC 59 ms
76,124 KB
testcase_03 AC 61 ms
76,060 KB
testcase_04 AC 65 ms
76,172 KB
testcase_05 AC 65 ms
76,104 KB
testcase_06 AC 65 ms
76,056 KB
testcase_07 AC 62 ms
75,936 KB
testcase_08 AC 62 ms
76,000 KB
testcase_09 AC 63 ms
75,864 KB
testcase_10 AC 63 ms
75,816 KB
testcase_11 AC 64 ms
75,980 KB
testcase_12 AC 63 ms
76,144 KB
testcase_13 AC 64 ms
75,920 KB
testcase_14 AC 64 ms
75,860 KB
testcase_15 AC 64 ms
76,036 KB
testcase_16 AC 64 ms
76,080 KB
testcase_17 AC 63 ms
76,276 KB
testcase_18 AC 63 ms
75,784 KB
testcase_19 AC 60 ms
75,776 KB
testcase_20 AC 63 ms
75,876 KB
testcase_21 AC 63 ms
76,228 KB
testcase_22 AC 65 ms
75,828 KB
testcase_23 AC 61 ms
75,776 KB
testcase_24 AC 62 ms
76,016 KB
testcase_25 AC 62 ms
76,092 KB
testcase_26 AC 60 ms
75,816 KB
testcase_27 AC 60 ms
75,664 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools
K = int(input())
S = '12345678'
ans=0
for s in itertools.permutations(S):
    if int(''.join(map(str, s)))%K==0:
        ans+=1
print(ans)
0