結果
問題 | No.1463 Hungry Kanten |
ユーザー |
|
提出日時 | 2021-04-02 22:40:28 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 260 ms / 2,000 ms |
コード長 | 299 bytes |
コンパイル時間 | 655 ms |
コンパイル使用メモリ | 82,372 KB |
実行使用メモリ | 126,308 KB |
最終ジャッジ日時 | 2024-12-23 23:39:35 |
合計ジャッジ時間 | 2,918 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
import itertoolsdef product(a):ans = 1for i in a:ans *= ireturn ansn, k = list(map(int, input().split(" ")))a = list(map(int, input().split(" ")))s = set()for i in range(k, n + 1):for j in itertools.combinations(a, i):s.add(sum(j))s.add(product(j))print(len(s))