結果

問題 No.1453 手助け
ユーザー 👑 horiesinitihoriesiniti
提出日時 2022-12-27 22:41:15
言語 Ruby
(3.3.0)
結果
AC  
実行時間 81 ms / 2,000 ms
コード長 140 bytes
コンパイル時間 273 ms
コンパイル使用メモリ 11,284 KB
実行使用メモリ 15,300 KB
最終ジャッジ日時 2023-08-14 12:38:47
合計ジャッジ時間 3,768 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,260 KB
testcase_01 AC 79 ms
15,096 KB
testcase_02 AC 80 ms
15,256 KB
testcase_03 AC 80 ms
15,232 KB
testcase_04 AC 79 ms
15,120 KB
testcase_05 AC 81 ms
15,136 KB
testcase_06 AC 80 ms
15,252 KB
testcase_07 AC 80 ms
15,208 KB
testcase_08 AC 80 ms
15,184 KB
testcase_09 AC 80 ms
15,124 KB
testcase_10 AC 81 ms
15,256 KB
testcase_11 AC 81 ms
15,056 KB
testcase_12 AC 81 ms
15,260 KB
testcase_13 AC 80 ms
15,116 KB
testcase_14 AC 80 ms
15,100 KB
testcase_15 AC 80 ms
15,300 KB
testcase_16 AC 80 ms
15,076 KB
testcase_17 AC 79 ms
15,260 KB
testcase_18 AC 79 ms
15,232 KB
testcase_19 AC 81 ms
15,120 KB
testcase_20 AC 79 ms
15,040 KB
testcase_21 AC 80 ms
15,100 KB
testcase_22 AC 80 ms
15,260 KB
testcase_23 AC 79 ms
15,224 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a,b,c,d,e=gets.split(" ").map{|e| e.to_i}
b-=c
ans=(b==0)?0:(d)
2.upto(b*a){|i|
	if i%10==0 then
		d=(d>=e)?d-e:(d)
	end
	ans+=d	
}
puts ans
0