結果

問題 No.1644 Eight Digits
コンテスト
ユーザー kept1994
提出日時 2021-09-20 00:45:45
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
TLE  
実行時間 -
コード長 331 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 387 ms
コンパイル使用メモリ 85,248 KB
実行使用メモリ 135,552 KB
最終ジャッジ日時 2026-03-23 09:17:01
合計ジャッジ時間 10,958 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 TLE * 1
other AC * 22 TLE * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#!/usr/bin/env python3
import sys
import collections

def main():
    K = int(input())
    l = set([str(i) for i in range(1, 9)])
    ans = 0
    for i in range(K, 87654321 + 1, K):
        if set(collections.Counter(str(i))) == l:
            ans += 1
    print(ans)
    return 
    
        
if __name__ == '__main__':
    main()
0