結果
| 問題 |
No.1644 Eight Digits
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-29 12:27:17 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 66 ms / 1,000 ms |
| コード長 | 156 bytes |
| コンパイル時間 | 326 ms |
| コンパイル使用メモリ | 82,852 KB |
| 実行使用メモリ | 76,216 KB |
| 最終ジャッジ日時 | 2024-10-03 16:02:27 |
| 合計ジャッジ時間 | 2,923 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
import itertools
k = int(input())
ans = 0
for p in itertools.permutations(range(1, 9)):
i = "".join(map(str, p))
ans += int(i) % k == 0
print(ans)