結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,272 KB
testcase_01 AC 78 ms
15,092 KB
testcase_02 AC 80 ms
15,268 KB
testcase_03 AC 80 ms
15,264 KB
testcase_04 WA -
testcase_05 AC 80 ms
15,132 KB
testcase_06 WA -
testcase_07 AC 79 ms
15,096 KB
testcase_08 AC 78 ms
15,236 KB
testcase_09 WA -
testcase_10 AC 80 ms
15,176 KB
testcase_11 AC 79 ms
15,256 KB
testcase_12 AC 81 ms
15,256 KB
testcase_13 AC 81 ms
15,020 KB
testcase_14 AC 78 ms
15,188 KB
testcase_15 AC 79 ms
15,092 KB
testcase_16 AC 79 ms
15,260 KB
testcase_17 AC 79 ms
15,124 KB
testcase_18 AC 80 ms
15,024 KB
testcase_19 AC 80 ms
15,136 KB
testcase_20 AC 81 ms
15,088 KB
testcase_21 AC 79 ms
15,196 KB
testcase_22 AC 79 ms
15,084 KB
testcase_23 AC 80 ms
15,156 KB
testcase_24 AC 79 ms
15,016 KB
testcase_25 AC 80 ms
15,084 KB
testcase_26 AC 80 ms
15,116 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).map(&:abs)
#p @goal

if goal == [0, 0]
	p "0"
	exit
end

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