結果

問題 No.507 ゲーム大会(チーム決め)
ユーザー kotatsugamekotatsugame
提出日時 2021-02-01 20:30:17
言語 Ruby
(3.3.0)
結果
AC  
実行時間 447 ms / 3,000 ms
コード長 146 bytes
コンパイル時間 394 ms
コンパイル使用メモリ 11,244 KB
実行使用メモリ 36,852 KB
最終ジャッジ日時 2023-09-12 10:46:06
合計ジャッジ時間 6,524 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
外部呼び出し有り
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,100 KB
testcase_01 AC 82 ms
15,092 KB
testcase_02 AC 83 ms
15,080 KB
testcase_03 AC 82 ms
15,200 KB
testcase_04 AC 87 ms
15,108 KB
testcase_05 AC 84 ms
15,108 KB
testcase_06 AC 80 ms
15,272 KB
testcase_07 AC 441 ms
36,232 KB
testcase_08 AC 423 ms
36,852 KB
testcase_09 AC 425 ms
36,040 KB
testcase_10 AC 421 ms
36,836 KB
testcase_11 AC 404 ms
36,760 KB
testcase_12 AC 447 ms
36,816 KB
testcase_13 AC 435 ms
36,852 KB
testcase_14 AC 418 ms
36,248 KB
testcase_15 AC 424 ms
36,644 KB
testcase_16 AC 422 ms
36,696 KB
testcase_17 AC 86 ms
15,148 KB
testcase_18 AC 86 ms
15,012 KB
testcase_19 AC 86 ms
15,272 KB
testcase_20 AC 82 ms
15,104 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{i+=1while b[i]&.<=X+y-b[_1]
_1>=i+=1}<M}||-1
0