結果

問題 No.989 N×Mマス計算(K以上)
ユーザー c-yanc-yan
提出日時 2020-07-30 21:16:07
言語 Ruby
(3.3.0)
結果
AC  
実行時間 537 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 315 ms
コンパイル使用メモリ 11,468 KB
実行使用メモリ 30,696 KB
最終ジャッジ日時 2023-09-18 03:20:30
合計ジャッジ時間 6,278 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,296 KB
testcase_01 AC 81 ms
15,140 KB
testcase_02 AC 80 ms
15,288 KB
testcase_03 AC 80 ms
15,308 KB
testcase_04 AC 80 ms
15,160 KB
testcase_05 AC 79 ms
15,356 KB
testcase_06 AC 80 ms
15,136 KB
testcase_07 AC 80 ms
15,016 KB
testcase_08 AC 80 ms
15,096 KB
testcase_09 AC 80 ms
15,304 KB
testcase_10 AC 344 ms
25,044 KB
testcase_11 AC 413 ms
24,788 KB
testcase_12 AC 409 ms
25,424 KB
testcase_13 AC 295 ms
20,764 KB
testcase_14 AC 537 ms
30,696 KB
testcase_15 AC 179 ms
18,884 KB
testcase_16 AC 275 ms
22,368 KB
testcase_17 AC 295 ms
20,680 KB
testcase_18 AC 140 ms
20,092 KB
testcase_19 AC 426 ms
24,844 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a=ARGF.read.split
_,m,k=a.shift(3).map &:to_i
o=a.shift
b=a.shift(m).map &:to_i
a=a.map(&:to_i).sort
c=a.size
p b.map{|e|c-((0...c).bsearch{|i|e.send(o,a[i])>=k}||c)}.sum
0