結果

問題 No.507 ゲーム大会(チーム決め)
ユーザー kotatsugamekotatsugame
提出日時 2021-02-01 20:30:35
言語 Ruby
(3.3.0)
結果
AC  
実行時間 433 ms / 3,000 ms
コード長 149 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 11,416 KB
実行使用メモリ 36,872 KB
最終ジャッジ日時 2023-09-12 10:46:15
合計ジャッジ時間 6,385 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,088 KB
testcase_01 AC 82 ms
15,260 KB
testcase_02 AC 82 ms
15,168 KB
testcase_03 AC 81 ms
15,040 KB
testcase_04 AC 81 ms
15,076 KB
testcase_05 AC 82 ms
15,084 KB
testcase_06 AC 83 ms
15,148 KB
testcase_07 AC 429 ms
36,428 KB
testcase_08 AC 410 ms
36,776 KB
testcase_09 AC 421 ms
36,068 KB
testcase_10 AC 416 ms
36,808 KB
testcase_11 AC 392 ms
36,596 KB
testcase_12 AC 433 ms
36,800 KB
testcase_13 AC 416 ms
36,872 KB
testcase_14 AC 395 ms
36,100 KB
testcase_15 AC 411 ms
36,632 KB
testcase_16 AC 410 ms
36,812 KB
testcase_17 AC 85 ms
15,004 KB
testcase_18 AC 83 ms
15,292 KB
testcase_19 AC 81 ms
15,144 KB
testcase_20 AC 82 ms
15,084 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{i+=1while b[i]&.<=X+y-b[_1]
_1>=i+=1}<M}||-1
0