結果
| 問題 |
No.1644 Eight Digits
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-22 17:23:02 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 58 ms / 1,000 ms |
| コード長 | 189 bytes |
| コンパイル時間 | 217 ms |
| コンパイル使用メモリ | 82,352 KB |
| 実行使用メモリ | 74,528 KB |
| 最終ジャッジ日時 | 2024-10-10 09:27:26 |
| 合計ジャッジ時間 | 2,960 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
from itertools import permutations
K = int(input())
cnt = 0
ans = permutations('12345678',8)
a = []
cnt = 0
for i in ans:
if int(''.join(list(i))) % K == 0:
cnt += 1
print(cnt)