結果
| 問題 | No.1644 Eight Digits |
| コンテスト | |
| ユーザー |
sotanishy
|
| 提出日時 | 2021-08-14 22:29:29 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 35 ms / 1,000 ms |
| + 972µs | |
| コード長 | 197 bytes |
| 記録 | |
| コンパイル時間 | 73 ms |
| コンパイル使用メモリ | 80,128 KB |
| 実行使用メモリ | 66,560 KB |
| 最終ジャッジ日時 | 2026-09-10 20:34:00 |
| 合計ジャッジ時間 | 2,786 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
from itertools import permutations
K = int(input())
ans = 0
for perm in permutations(range(1, 9)):
n = 0
for p in perm:
n = 10*n + p
if n % K == 0:
ans += 1
print(ans)
sotanishy