結果

問題 No.1644 Eight Digits
コンテスト
ユーザー vwxyz
提出日時 2022-09-06 15:47:40
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
TLE  
実行時間 -
コード長 237 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 192 ms
コンパイル使用メモリ 85,888 KB
実行使用メモリ 93,824 KB
最終ジャッジ日時 2026-05-15 20:32:24
合計ジャッジ時間 5,103 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample TLE * 1 -- * 2
other -- * 25
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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