結果

問題 No.5 数字のブロック
ユーザー gemmarogemmaro
提出日時 2019-08-12 13:10:29
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 129 bytes
コンパイル時間 58 ms
コンパイル使用メモリ 11,436 KB
実行使用メモリ 15,836 KB
最終ジャッジ日時 2023-10-13 16:31:00
合計ジャッジ時間 4,453 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,228 KB
testcase_01 AC 81 ms
15,268 KB
testcase_02 WA -
testcase_03 AC 85 ms
15,480 KB
testcase_04 AC 84 ms
15,352 KB
testcase_05 WA -
testcase_06 AC 83 ms
15,284 KB
testcase_07 AC 82 ms
15,416 KB
testcase_08 AC 85 ms
15,520 KB
testcase_09 AC 84 ms
15,092 KB
testcase_10 AC 87 ms
15,512 KB
testcase_11 AC 86 ms
15,504 KB
testcase_12 AC 86 ms
15,568 KB
testcase_13 AC 86 ms
15,568 KB
testcase_14 AC 81 ms
15,152 KB
testcase_15 WA -
testcase_16 AC 85 ms
15,448 KB
testcase_17 AC 88 ms
15,396 KB
testcase_18 AC 85 ms
15,460 KB
testcase_19 AC 88 ms
15,836 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 80 ms
15,128 KB
testcase_24 AC 83 ms
15,024 KB
testcase_25 AC 81 ms
15,228 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 -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

l={};2.times{|i|l[i]=gets.chomp.to_i};s=gets.chomp.split.map &:to_i;c=0;s.sort.each{|w|l[0]-=w;if l[0]<=0then p c;break end;c+=1}
0