結果
| 問題 |
No.1644 Eight Digits
|
| コンテスト | |
| ユーザー |
sotanishy
|
| 提出日時 | 2021-08-14 22:29:29 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 58 ms / 1,000 ms |
| コード長 | 197 bytes |
| コンパイル時間 | 235 ms |
| コンパイル使用メモリ | 82,020 KB |
| 実行使用メモリ | 64,896 KB |
| 最終ジャッジ日時 | 2024-10-05 23:45:16 |
| 合計ジャッジ時間 | 2,777 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
from itertools import permutations
K = int(input())
ans = 0
for perm in permutations(range(1, 9)):
n = 0
for p in perm:
n = 10*n + p
if n % K == 0:
ans += 1
print(ans)
sotanishy