結果
問題 | No.1644 Eight Digits |
ユーザー |
|
提出日時 | 2021-08-13 21:26:35 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 64 ms / 1,000 ms |
コード長 | 225 bytes |
コンパイル時間 | 209 ms |
コンパイル使用メモリ | 82,356 KB |
実行使用メモリ | 76,288 KB |
最終ジャッジ日時 | 2024-10-03 17:04:20 |
合計ジャッジ時間 | 2,849 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
ソースコード
k = int(input())from itertools import permutationsans = 0l = list(map(str, range(1, 9)))for p in permutations(l, 8):s = ""for i in range(8):s += p[i]if int(s) % k == 0:ans += 1print(ans)