結果
| 問題 |
No.1644 Eight Digits
|
| コンテスト | |
| ユーザー |
tnodino
|
| 提出日時 | 2022-05-31 06:41:34 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 123 ms / 1,000 ms |
| コード長 | 226 bytes |
| コンパイル時間 | 117 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 15,616 KB |
| 最終ジャッジ日時 | 2024-09-21 01:06:21 |
| 合計ジャッジ時間 | 4,527 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
from itertools import permutations
K = int(input())
P = list(permutations([i for i in range(1,9)], 8))
ans = 0
for p in P:
x = 0
for i in p:
x *= 10
x += i
if x % K == 0:
ans += 1
print(ans)
tnodino