結果
| 問題 | No.1644 Eight Digits |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-09-20 00:45:45 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 331 bytes |
| 記録 | |
| コンパイル時間 | 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 |
ソースコード
#!/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()