結果

問題 No.5 数字のブロック
ユーザー 夕日夕日
提出日時 2021-06-24 16:37:49
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 162 bytes
コンパイル時間 324 ms
コンパイル使用メモリ 87,140 KB
実行使用メモリ 75,648 KB
最終ジャッジ日時 2023-09-07 13:24:51
合計ジャッジ時間 3,918 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,308 KB
testcase_01 AC 65 ms
71,316 KB
testcase_02 WA -
testcase_03 AC 72 ms
75,432 KB
testcase_04 AC 74 ms
75,492 KB
testcase_05 WA -
testcase_06 AC 71 ms
75,424 KB
testcase_07 AC 72 ms
75,484 KB
testcase_08 AC 73 ms
75,320 KB
testcase_09 AC 69 ms
75,648 KB
testcase_10 AC 72 ms
75,224 KB
testcase_11 AC 71 ms
75,220 KB
testcase_12 AC 73 ms
75,480 KB
testcase_13 AC 74 ms
75,552 KB
testcase_14 AC 67 ms
71,040 KB
testcase_15 WA -
testcase_16 AC 73 ms
75,492 KB
testcase_17 AC 75 ms
75,596 KB
testcase_18 AC 75 ms
75,500 KB
testcase_19 AC 76 ms
75,500 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 68 ms
71,300 KB
testcase_24 AC 69 ms
71,496 KB
testcase_25 AC 72 ms
71,352 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

L=int(input())
N=int(input())
W = input().split()
W.sort(key=int)
for i in range(N):
    if L > int(W[i]):
        L -= int(W[i])
    else:
        break
print(i)
0