結果
| 問題 | No.1644 Eight Digits |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-07 01:27:59 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 40 ms / 1,000 ms |
| + 28µs | |
| コード長 | 153 bytes |
| 記録 | |
| コンパイル時間 | 65 ms |
| コンパイル使用メモリ | 82,680 KB |
| 実行使用メモリ | 83,520 KB |
| 最終ジャッジ日時 | 2026-09-29 00:24:49 |
| 合計ジャッジ時間 | 3,043 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
import itertools
K = int(input())
cnt = 0
for i in itertools.permutations('12345678'):
n = int("".join(i))
if n%K==0:
cnt += 1
print(cnt)