結果
| 問題 | No.1644 Eight Digits |
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2021-08-17 22:41:29 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 35 ms / 1,000 ms |
| + 951µs | |
| コード長 | 202 bytes |
| 記録 | |
| コンパイル時間 | 71 ms |
| コンパイル使用メモリ | 80,384 KB |
| 実行使用メモリ | 67,072 KB |
| 最終ジャッジ日時 | 2026-09-13 13:22:28 |
| 合計ジャッジ時間 | 2,820 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
import itertools
K = int(input())
cnt = 0
for s in itertools.permutations(range(1,9)):
temp = 0
for i in s:
temp *= 10
temp += i
if temp % K == 0:
cnt += 1
print(cnt)
ntuda