結果

問題 No.1644 Eight Digits
ユーザー vwxyz
提出日時 2022-09-06 15:47:40
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 237 bytes
コンパイル時間 209 ms
コンパイル使用メモリ 82,044 KB
実行使用メモリ 90,200 KB
最終ジャッジ日時 2024-11-21 16:58:11
合計ジャッジ時間 59,330 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample TLE * 3
other TLE * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
import sys
readline=sys.stdin.readline
write=sys.stdout.write

K=int(readline())
ans=0
for num in range(12345678,87654322):
    if set(str(num))==set("12345678") and num%K==0:
        ans+=1
print(ans)
0