結果

問題 No.507 ゲーム大会(チーム決め)
ユーザー yuruhiyayuruhiya
提出日時 2021-02-01 19:54:56
言語 Ruby
(3.3.0)
結果
AC  
実行時間 468 ms / 3,000 ms
コード長 151 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 11,556 KB
実行使用メモリ 37,108 KB
最終ジャッジ日時 2023-09-12 10:39:46
合計ジャッジ時間 6,457 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,244 KB
testcase_01 AC 81 ms
15,292 KB
testcase_02 AC 80 ms
15,136 KB
testcase_03 AC 79 ms
15,352 KB
testcase_04 AC 80 ms
15,128 KB
testcase_05 AC 80 ms
15,236 KB
testcase_06 AC 79 ms
15,128 KB
testcase_07 AC 433 ms
36,168 KB
testcase_08 AC 406 ms
36,824 KB
testcase_09 AC 408 ms
36,020 KB
testcase_10 AC 427 ms
36,868 KB
testcase_11 AC 429 ms
36,636 KB
testcase_12 AC 426 ms
36,608 KB
testcase_13 AC 468 ms
37,108 KB
testcase_14 AC 446 ms
35,916 KB
testcase_15 AC 463 ms
36,716 KB
testcase_16 AC 463 ms
36,848 KB
testcase_17 AC 81 ms
15,056 KB
testcase_18 AC 81 ms
15,316 KB
testcase_19 AC 81 ms
15,128 KB
testcase_20 AC 82 ms
15,144 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]
i<_1&&i+=1}<M}||-1
0