結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,344 KB
testcase_01 AC 70 ms
71,256 KB
testcase_02 WA -
testcase_03 AC 79 ms
75,436 KB
testcase_04 AC 76 ms
75,580 KB
testcase_05 AC 79 ms
75,512 KB
testcase_06 AC 77 ms
75,496 KB
testcase_07 AC 77 ms
75,520 KB
testcase_08 AC 78 ms
75,448 KB
testcase_09 AC 76 ms
75,468 KB
testcase_10 AC 80 ms
75,476 KB
testcase_11 AC 77 ms
75,684 KB
testcase_12 AC 78 ms
75,668 KB
testcase_13 AC 80 ms
75,324 KB
testcase_14 AC 73 ms
71,520 KB
testcase_15 AC 73 ms
71,244 KB
testcase_16 AC 79 ms
75,336 KB
testcase_17 AC 81 ms
75,484 KB
testcase_18 AC 82 ms
75,508 KB
testcase_19 AC 82 ms
75,676 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 72 ms
71,372 KB
testcase_24 AC 73 ms
71,452 KB
testcase_25 AC 73 ms
71,116 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 77 ms
75,488 KB
testcase_30 AC 74 ms
75,324 KB
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:
        print(i)
        break
0