結果

問題 No.1644 Eight Digits
ユーザー miya145592
提出日時 2023-05-07 01:27:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 58 ms / 1,000 ms
コード長 153 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 82,392 KB
実行使用メモリ 76,144 KB
最終ジャッジ日時 2024-11-24 04:57:28
合計ジャッジ時間 2,697 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools
K = int(input())
cnt = 0
for i in itertools.permutations('12345678'):
    n = int("".join(i))
    if n%K==0:
        cnt += 1
print(cnt)
0