結果

問題 No.32 貯金箱の憂鬱
ユーザー gaxennewsgaxennews
提出日時 2017-01-09 00:06:54
言語 Ruby
(3.2.2)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 179 bytes
コンパイル時間 44 ms
コンパイル使用メモリ 11,236 KB
実行使用メモリ 15,272 KB
最終ジャッジ日時 2023-09-30 07:42:50
合計ジャッジ時間 1,923 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,056 KB
testcase_01 AC 82 ms
15,264 KB
testcase_02 AC 82 ms
15,008 KB
testcase_03 AC 82 ms
15,020 KB
testcase_04 AC 82 ms
15,260 KB
testcase_05 AC 82 ms
15,240 KB
testcase_06 AC 85 ms
15,256 KB
testcase_07 AC 82 ms
15,132 KB
testcase_08 AC 80 ms
15,064 KB
testcase_09 AC 80 ms
15,220 KB
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

l = gets.chomp.to_i
m = gets.chomp.to_i
n = gets.chomp.to_i

if n > 25
	m += n / 25
	n = n % 25
end

if m > 4
	l += m / 4
	m = m % 4
end

if l > 10
	l = l % 10
end

puts l + m + n
0