結果

問題 No.1644 Eight Digits
ユーザー taiga0629kyoprotaiga0629kyopro
提出日時 2021-08-13 21:25:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 58 ms / 1,000 ms
コード長 195 bytes
コンパイル時間 333 ms
コンパイル使用メモリ 82,456 KB
実行使用メモリ 65,408 KB
最終ジャッジ日時 2024-10-03 17:00:55
合計ジャッジ時間 2,667 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

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