結果

問題 No.467 隠されていたゲーム
ユーザー suppy193suppy193
提出日時 2017-01-11 12:46:09
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 267 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 11,224 KB
実行使用メモリ 15,424 KB
最終ジャッジ日時 2023-08-23 07:36:58
合計ジャッジ時間 4,088 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
15,132 KB
testcase_01 AC 83 ms
15,072 KB
testcase_02 AC 82 ms
15,120 KB
testcase_03 AC 81 ms
15,100 KB
testcase_04 WA -
testcase_05 AC 82 ms
15,120 KB
testcase_06 WA -
testcase_07 AC 83 ms
15,104 KB
testcase_08 AC 81 ms
15,024 KB
testcase_09 WA -
testcase_10 AC 81 ms
15,028 KB
testcase_11 AC 82 ms
15,136 KB
testcase_12 AC 84 ms
15,132 KB
testcase_13 AC 83 ms
15,252 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 84 ms
15,080 KB
testcase_18 AC 81 ms
15,080 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 82 ms
15,388 KB
testcase_23 AC 82 ms
15,328 KB
testcase_24 AC 82 ms
15,108 KB
testcase_25 AC 83 ms
15,148 KB
testcase_26 AC 83 ms
15,080 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n = gets.to_i
cheby = gets.strip.split(' ').map(&:to_i)
#p @cheby
goal = gets.strip.split(' ').map(&:to_i)
#p @goal

goal_max = goal.max
cheby_max = cheby.max
if goal_max < cheby_max
	p (goal.max.to_f / cheby.max).ceil + 1
else
	p (goal.max.to_f / cheby.max).ceil
end
0