結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,004 KB
testcase_01 AC 81 ms
15,348 KB
testcase_02 AC 81 ms
15,300 KB
testcase_03 AC 82 ms
15,008 KB
testcase_04 AC 84 ms
15,136 KB
testcase_05 AC 82 ms
15,140 KB
testcase_06 AC 82 ms
15,240 KB
testcase_07 AC 451 ms
36,452 KB
testcase_08 AC 428 ms
36,952 KB
testcase_09 AC 418 ms
36,044 KB
testcase_10 AC 444 ms
36,840 KB
testcase_11 AC 438 ms
36,704 KB
testcase_12 AC 438 ms
36,732 KB
testcase_13 AC 481 ms
37,060 KB
testcase_14 AC 454 ms
35,976 KB
testcase_15 AC 473 ms
36,792 KB
testcase_16 AC 480 ms
36,784 KB
testcase_17 AC 82 ms
15,236 KB
testcase_18 AC 82 ms
15,340 KB
testcase_19 AC 80 ms
15,064 KB
testcase_20 AC 83 ms
15,072 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]
i<_1&&i+=1}<M}||-1
0