結果
問題 |
No.1046 Fruits Rush
|
ユーザー |
![]() |
提出日時 | 2020-05-08 21:21:12 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 327 bytes |
コンパイル時間 | 281 ms |
コンパイル使用メモリ | 82,172 KB |
実行使用メモリ | 54,284 KB |
最終ジャッジ日時 | 2024-07-03 23:08:38 |
合計ジャッジ時間 | 1,723 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 WA * 3 |
ソースコード
mod = 1000000007 eps = 10**-9 def main(): import sys input = sys.stdin.readline N, K = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) ans = 0 for k in range(K): if A[k] > 0: ans+= A[k] print(ans) if __name__ == '__main__': main()