結果

問題 No.1644 Eight Digits
ユーザー harapecoharapeco
提出日時 2022-03-22 17:23:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 59 ms / 1,000 ms
コード長 189 bytes
コンパイル時間 181 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 74,368 KB
最終ジャッジ日時 2024-04-18 16:11:54
合計ジャッジ時間 2,873 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
74,000 KB
testcase_01 AC 54 ms
73,184 KB
testcase_02 AC 54 ms
72,288 KB
testcase_03 AC 56 ms
72,464 KB
testcase_04 AC 54 ms
73,788 KB
testcase_05 AC 56 ms
73,408 KB
testcase_06 AC 56 ms
73,400 KB
testcase_07 AC 52 ms
72,804 KB
testcase_08 AC 52 ms
73,088 KB
testcase_09 AC 50 ms
73,728 KB
testcase_10 AC 54 ms
73,728 KB
testcase_11 AC 53 ms
74,368 KB
testcase_12 AC 53 ms
74,112 KB
testcase_13 AC 55 ms
73,468 KB
testcase_14 AC 57 ms
73,388 KB
testcase_15 AC 54 ms
73,800 KB
testcase_16 AC 57 ms
73,984 KB
testcase_17 AC 56 ms
73,856 KB
testcase_18 AC 51 ms
73,728 KB
testcase_19 AC 55 ms
73,340 KB
testcase_20 AC 59 ms
74,112 KB
testcase_21 AC 54 ms
74,112 KB
testcase_22 AC 54 ms
74,368 KB
testcase_23 AC 52 ms
73,600 KB
testcase_24 AC 50 ms
72,960 KB
testcase_25 AC 54 ms
73,192 KB
testcase_26 AC 54 ms
72,960 KB
testcase_27 AC 51 ms
72,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import permutations

K = int(input())
cnt = 0
ans = permutations('12345678',8)
a = []
cnt = 0
for i in ans:
    if int(''.join(list(i))) % K == 0:
        cnt += 1
print(cnt)
0