結果

問題 No.817 Coin donation
ユーザー yuruhiyayuruhiya
提出日時 2021-01-24 19:35:01
言語 Ruby
(3.3.0)
結果
AC  
実行時間 653 ms / 2,000 ms
コード長 89 bytes
コンパイル時間 295 ms
コンパイル使用メモリ 11,332 KB
実行使用メモリ 22,768 KB
最終ジャッジ日時 2023-09-02 00:13:57
合計ジャッジ時間 6,400 ms
ジャッジサーバーID
(参考情報)
judge15 / judge16
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,260 KB
testcase_01 AC 80 ms
15,148 KB
testcase_02 AC 80 ms
15,304 KB
testcase_03 AC 81 ms
15,320 KB
testcase_04 AC 81 ms
15,092 KB
testcase_05 AC 96 ms
15,516 KB
testcase_06 AC 152 ms
15,720 KB
testcase_07 AC 172 ms
16,028 KB
testcase_08 AC 455 ms
20,556 KB
testcase_09 AC 192 ms
16,200 KB
testcase_10 AC 653 ms
22,768 KB
testcase_11 AC 650 ms
22,612 KB
testcase_12 AC 647 ms
22,632 KB
testcase_13 AC 79 ms
15,176 KB
testcase_14 AC 80 ms
15,148 KB
testcase_15 AC 80 ms
15,368 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

K,*A=$<.map{_1.split.map &:to_i}
p (1..).bsearch{|i|A.sum{[0,[_2,i].min-_1+1].max}>=K[1]}
0