結果

問題 No.489 株に挑戦
ユーザー miraxialmiraxial
提出日時 2017-02-24 23:51:45
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 187 bytes
コンパイル時間 311 ms
コンパイル使用メモリ 11,444 KB
実行使用メモリ 47,624 KB
最終ジャッジ日時 2023-08-31 00:16:51
合計ジャッジ時間 5,710 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 78 ms
15,032 KB
testcase_03 AC 78 ms
15,252 KB
testcase_04 AC 78 ms
15,040 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 79 ms
15,364 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 TLE -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

x,y,z,*a=$<.read.split.map &:to_i
b=[]
(x-1).times do |i|
  b<< a[i+1..[i+y,x-1].min].max-a[i]
end
g=b.max
if g<1
  p 0
else
  p g*z
  puts [t=b.index(g),a[t..t+y].index(a[t]+g)].*" "
end
0