結果

問題 No.507 ゲーム大会(チーム決め)
ユーザー kotatsugamekotatsugame
提出日時 2021-02-01 19:47:02
言語 Ruby
(3.3.0)
結果
AC  
実行時間 469 ms / 3,000 ms
コード長 152 bytes
コンパイル時間 212 ms
コンパイル使用メモリ 11,252 KB
実行使用メモリ 36,960 KB
最終ジャッジ日時 2023-09-12 10:39:39
合計ジャッジ時間 6,438 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,224 KB
testcase_01 AC 81 ms
15,348 KB
testcase_02 AC 80 ms
15,000 KB
testcase_03 AC 80 ms
15,140 KB
testcase_04 AC 80 ms
15,292 KB
testcase_05 AC 80 ms
15,144 KB
testcase_06 AC 78 ms
15,092 KB
testcase_07 AC 444 ms
36,444 KB
testcase_08 AC 409 ms
36,908 KB
testcase_09 AC 406 ms
36,096 KB
testcase_10 AC 424 ms
36,700 KB
testcase_11 AC 430 ms
36,612 KB
testcase_12 AC 425 ms
36,960 KB
testcase_13 AC 469 ms
36,904 KB
testcase_14 AC 439 ms
36,300 KB
testcase_15 AC 463 ms
36,644 KB
testcase_16 AC 460 ms
36,672 KB
testcase_17 AC 80 ms
15,216 KB
testcase_18 AC 79 ms
15,264 KB
testcase_19 AC 79 ms
15,196 KB
testcase_20 AC 80 ms
15,088 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval"N,M,X,*A="+$<.read.split*?,
p A.sort!.bsearch{|y|*b=A
b.delete_at A.index y
(N-3).downto(i=0).count{|j|i+=1while b[i]&.<=X+y-b[j]
i<j&&i+=1}<M}||-1
0