結果
| 問題 | No.2424 Josouzai |
| コンテスト | |
| ユーザー |
taro2023
|
| 提出日時 | 2023-08-18 21:15:41 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 197 bytes |
| 記録 | |
| コンパイル時間 | 534 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 36,112 KB |
| 最終ジャッジ日時 | 2026-05-22 08:31:34 |
| 合計ジャッジ時間 | 6,257 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 32 WA * 1 |
ソースコード
a,b= map(int, input().split())
c = list(map(int, input().split()))
c=sorted(c)
e=0
if c[0]>b:
exit()
for i in range(len(c)):
e+=c[i]
if e>=b:
e-=c[i]
break
print(i,b-e)
taro2023