結果

問題 No.1644 Eight Digits
ユーザー 👑 rin204rin204
提出日時 2021-08-23 05:18:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 85 ms / 1,000 ms
コード長 176 bytes
コンパイル時間 435 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 76,160 KB
最終ジャッジ日時 2024-11-07 04:54:20
合計ジャッジ時間 3,922 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools

k = int(input())
ans = 0
for lst in itertools.permutations(range(1, 9), 8):
    n = int("".join(map(str, lst)))
    if n % k == 0:
        ans += 1
print(ans)
0