結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
15,096 KB
testcase_01 AC 84 ms
15,140 KB
testcase_02 AC 85 ms
15,220 KB
testcase_03 AC 84 ms
15,248 KB
testcase_04 AC 91 ms
15,116 KB
testcase_05 AC 82 ms
15,268 KB
testcase_06 AC 82 ms
15,312 KB
testcase_07 AC 84 ms
15,252 KB
testcase_08 AC 82 ms
15,232 KB
testcase_09 AC 82 ms
15,068 KB
testcase_10 AC 346 ms
25,188 KB
testcase_11 AC 422 ms
24,984 KB
testcase_12 AC 415 ms
25,604 KB
testcase_13 AC 298 ms
20,628 KB
testcase_14 AC 544 ms
30,656 KB
testcase_15 AC 182 ms
18,808 KB
testcase_16 AC 272 ms
22,508 KB
testcase_17 AC 292 ms
20,720 KB
testcase_18 AC 142 ms
19,928 KB
testcase_19 AC 431 ms
24,968 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a=$<.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