結果
| 問題 | No.1644 Eight Digits |
| コンテスト | |
| ユーザー |
sotanishy
|
| 提出日時 | 2021-08-14 22:29:29 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 1,000 ms |
| コード長 | 197 bytes |
| 記録 | |
| コンパイル時間 | 486 ms |
| コンパイル使用メモリ | 84,932 KB |
| 実行使用メモリ | 64,796 KB |
| 最終ジャッジ日時 | 2026-04-21 08:10:40 |
| 合計ジャッジ時間 | 2,072 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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