結果

問題 No.632 穴埋め門松列
ユーザー jiro8719jiro8719
提出日時 2018-06-18 17:59:30
言語 Ruby
(3.3.0)
結果
AC  
実行時間 84 ms / 1,000 ms
コード長 408 bytes
コンパイル時間 246 ms
コンパイル使用メモリ 11,460 KB
実行使用メモリ 15,260 KB
最終ジャッジ日時 2023-09-13 06:50:23
合計ジャッジ時間 1,126 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,144 KB
testcase_01 AC 83 ms
15,260 KB
testcase_02 AC 80 ms
15,044 KB
testcase_03 AC 80 ms
15,100 KB
testcase_04 AC 80 ms
15,144 KB
testcase_05 AC 81 ms
15,132 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:4: warning: assigned but unused variable - c
Syntax OK

ソースコード

diff #

input = gets.split(" ")
a = input[0]
b = input[1]
c = input[2]


    case a
    when "?"
        if b == "2"
            puts 4
        elsif b == "3"
            puts 1
        end
    when "2"
        if b == "3"
            puts 1
        elsif b == "?"
            puts 14
        end
    when "3"
        if b == "2"
            puts 4
        elsif b == "?"
            puts 14
        end
    end
    
0