結果
| 問題 |
No.1644 Eight Digits
|
| コンテスト | |
| ユーザー |
trineutron
|
| 提出日時 | 2021-08-13 21:27:34 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 142 ms / 1,000 ms |
| コード長 | 214 bytes |
| コンパイル時間 | 126 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-10-03 17:09:13 |
| 合計ジャッジ時間 | 4,716 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
import itertools
k = int(input())
count = 0
for x in itertools.permutations([i for i in range(1, 9)]):
a = 0
for i in range(8):
a += x[i] * 10**i
if a % k == 0:
count += 1
print(count)
trineutron