結果
| 問題 | No.1644 Eight Digits |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-14 01:03:49 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 1,000 ms |
| コード長 | 191 bytes |
| 記録 | |
| コンパイル時間 | 251 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 67,200 KB |
| 最終ジャッジ日時 | 2026-04-20 01:17:17 |
| 合計ジャッジ時間 | 2,169 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
from itertools import permutations
K = int(input())
ans = 0
for l in permutations(range(1,9)):
num = 0
for i in range(8):
num += 10**i*l[i]
if num%K == 0:
ans += 1
print(ans)