結果

問題 No.1010 折って重ねて
ユーザー 👑 horiesinitihoriesiniti
提出日時 2023-02-11 01:13:00
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 220 bytes
コンパイル時間 344 ms
コンパイル使用メモリ 11,524 KB
実行使用メモリ 15,372 KB
最終ジャッジ日時 2023-09-22 01:37:26
合計ジャッジ時間 7,079 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
15,276 KB
testcase_01 AC 87 ms
15,036 KB
testcase_02 AC 87 ms
15,292 KB
testcase_03 AC 87 ms
15,304 KB
testcase_04 AC 87 ms
15,344 KB
testcase_05 AC 87 ms
15,284 KB
testcase_06 AC 86 ms
15,132 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 88 ms
15,168 KB
testcase_11 AC 86 ms
15,284 KB
testcase_12 WA -
testcase_13 AC 86 ms
15,048 KB
testcase_14 AC 85 ms
15,084 KB
testcase_15 AC 84 ms
15,248 KB
testcase_16 AC 84 ms
15,340 KB
testcase_17 AC 85 ms
15,304 KB
testcase_18 AC 87 ms
15,156 KB
testcase_19 WA -
testcase_20 AC 87 ms
15,228 KB
testcase_21 AC 84 ms
15,076 KB
testcase_22 WA -
testcase_23 AC 85 ms
15,124 KB
testcase_24 AC 85 ms
15,296 KB
testcase_25 AC 86 ms
15,184 KB
testcase_26 WA -
testcase_27 AC 84 ms
15,096 KB
testcase_28 AC 86 ms
15,156 KB
testcase_29 AC 86 ms
15,088 KB
testcase_30 AC 87 ms
15,164 KB
testcase_31 AC 85 ms
15,048 KB
testcase_32 WA -
testcase_33 AC 86 ms
15,176 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 86 ms
15,316 KB
testcase_37 AC 88 ms
15,040 KB
testcase_38 WA -
testcase_39 AC 87 ms
15,280 KB
testcase_40 WA -
testcase_41 AC 95 ms
15,152 KB
testcase_42 AC 87 ms
15,144 KB
testcase_43 AC 87 ms
15,372 KB
testcase_44 AC 86 ms
15,100 KB
testcase_45 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

x,y,h=gets.split.map{|e| e.to_i}
x*=1000
y*=1000
ans=0
ansx=0
h2=h
h4=h
200.times{|i|
	
	h2a=h2
	ansy=0
	while h2a<y do
		h2a*=4
		ansy+=1
	end
	
	ans=[ans,ansx+ansy].max
	break if x<=h4
	ansx+=1
	h2*=2
	h4*=4
}
puts ans
0