結果
問題 |
No.2424 Josouzai
|
ユーザー |
|
提出日時 | 2023-08-18 23:04:10 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 203 bytes |
コンパイル時間 | 309 ms |
コンパイル使用メモリ | 81,760 KB |
実行使用メモリ | 108,672 KB |
最終ジャッジ日時 | 2024-11-28 09:40:22 |
合計ジャッジ時間 | 5,486 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 33 |
ソースコード
N,K = map(int,input().split()) A = list(map(int,input().split())) A.sort() ans = 0 import sys for i in range(N): a = A[i] if now + a > K: print(i,K - now) exit() else: now += a print(N,K - now)