結果
問題 | No.1644 Eight Digits |
ユーザー | HAGI_TARO |
提出日時 | 2021-08-15 22:07:26 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 63 ms / 1,000 ms |
コード長 | 232 bytes |
コンパイル時間 | 173 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 65,280 KB |
最終ジャッジ日時 | 2024-10-08 08:28:48 |
合計ジャッジ時間 | 2,738 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
ソースコード
import itertools k = int(input()) ans = 0 num = [i for i in range(1,9)] for j in itertools.permutations(num,8): count = 0 for l in j: count *= 10 count += l if count % k == 0: ans += 1 print(ans)