結果

問題 No.817 Coin donation
ユーザー letrangerjpletrangerjp
提出日時 2019-04-20 21:37:03
言語 Ruby
(3.2.2)
結果
AC  
実行時間 740 ms / 2,000 ms
コード長 103 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 11,348 KB
実行使用メモリ 46,132 KB
最終ジャッジ日時 2023-07-25 10:26:03
合計ジャッジ時間 5,576 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,108 KB
testcase_01 AC 82 ms
15,148 KB
testcase_02 AC 83 ms
15,224 KB
testcase_03 AC 84 ms
15,264 KB
testcase_04 AC 88 ms
15,028 KB
testcase_05 AC 103 ms
15,912 KB
testcase_06 AC 163 ms
18,868 KB
testcase_07 AC 184 ms
20,004 KB
testcase_08 AC 526 ms
36,780 KB
testcase_09 AC 205 ms
20,964 KB
testcase_10 AC 740 ms
46,076 KB
testcase_11 AC 737 ms
46,132 KB
testcase_12 AC 731 ms
46,104 KB
testcase_13 AC 82 ms
15,304 KB
testcase_14 AC 82 ms
15,224 KB
testcase_15 AC 82 ms
15,084 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

K,*A=$<.map{|e|e.split.map &:to_i}
p (1..10**9).bsearch{|i|A.map{|a,b|[0,[b,i].min-~-a].max}.sum>=K[1]}
0