結果
| 問題 |
No.1644 Eight Digits
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-09-20 00:45:45 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 331 bytes |
| コンパイル時間 | 160 ms |
| コンパイル使用メモリ | 82,708 KB |
| 実行使用メモリ | 83,820 KB |
| 最終ジャッジ日時 | 2024-07-02 05:18:00 |
| 合計ジャッジ時間 | 2,979 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 TLE * 1 -- * 1 |
| other | -- * 25 |
ソースコード
#!/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()