結果

問題 No.542 1円玉と5円玉
ユーザー zazaboonzazaboon
提出日時 2018-05-14 12:56:50
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 156 bytes
コンパイル時間 63 ms
コンパイル使用メモリ 11,468 KB
実行使用メモリ 15,392 KB
最終ジャッジ日時 2023-09-10 19:46:09
合計ジャッジ時間 2,154 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
15,124 KB
testcase_01 AC 80 ms
15,228 KB
testcase_02 WA -
testcase_03 AC 82 ms
15,088 KB
testcase_04 WA -
testcase_05 AC 79 ms
15,096 KB
testcase_06 AC 82 ms
15,040 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 81 ms
15,076 KB
testcase_12 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - a
Syntax OK

ソースコード

diff #

def inp() a=gets.chomp.split(" ").map(&:to_i)end
a,b=inp
(0..b).each do |ib|
  (0..([a,4].min)).each do |ia|
    puts ib*5 + ia unless(ib+ia == 0)
  end
end
0