結果
問題 |
No.1463 Hungry Kanten
|
ユーザー |
![]() |
提出日時 | 2021-04-02 21:29:55 |
言語 | PyPy3 (7.3.15) |
結果 |
MLE
|
実行時間 | - |
コード長 | 315 bytes |
コンパイル時間 | 555 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 998,940 KB |
最終ジャッジ日時 | 2024-12-23 23:19:29 |
合計ジャッジ時間 | 42,777 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 MLE * 1 |
other | AC * 3 TLE * 4 MLE * 13 |
ソースコード
import itertools N,K = map(int,input().split()) A = list(map(int,input().split())) ans = set([]) for num in range(K,N+1): L = list(itertools.permutations(A,num)) for X in L: ans.add(sum(X)) temp = 1 for x in X: temp *= x ans.add(temp) #print(ans) print(len(ans))