結果

問題 No.507 ゲーム大会(チーム決め)
ユーザー kotatsugamekotatsugame
提出日時 2021-02-01 19:46:41
言語 Ruby
(3.3.0)
結果
AC  
実行時間 486 ms / 3,000 ms
コード長 149 bytes
コンパイル時間 354 ms
コンパイル使用メモリ 11,432 KB
実行使用メモリ 37,036 KB
最終ジャッジ日時 2023-09-12 10:39:21
合計ジャッジ時間 7,507 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,236 KB
testcase_01 AC 84 ms
15,280 KB
testcase_02 AC 83 ms
15,184 KB
testcase_03 AC 84 ms
15,356 KB
testcase_04 AC 84 ms
15,128 KB
testcase_05 AC 83 ms
15,092 KB
testcase_06 AC 84 ms
15,324 KB
testcase_07 AC 453 ms
36,212 KB
testcase_08 AC 427 ms
36,884 KB
testcase_09 AC 422 ms
35,860 KB
testcase_10 AC 441 ms
36,712 KB
testcase_11 AC 447 ms
36,608 KB
testcase_12 AC 442 ms
36,712 KB
testcase_13 AC 486 ms
37,036 KB
testcase_14 AC 454 ms
36,088 KB
testcase_15 AC 473 ms
36,644 KB
testcase_16 AC 476 ms
36,852 KB
testcase_17 AC 83 ms
15,176 KB
testcase_18 AC 84 ms
15,052 KB
testcase_19 AC 83 ms
15,232 KB
testcase_20 AC 85 ms
15,260 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval"N,M,X,*A="+`dd`.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