結果

問題 No.632 穴埋め門松列
ユーザー kazuki
提出日時 2018-11-24 21:56:55
言語 Ruby
(3.4.1)
結果
AC  
実行時間 93 ms / 1,000 ms
コード長 172 bytes
コンパイル時間 310 ms
コンパイル使用メモリ 7,296 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-12-24 19:26:33
合計ジャッジ時間 1,445 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

c = gets.split

if c[1] == "?"
  puts 14
elsif c[0] == "?"
  if c[1] == "2"
    puts 4
  else
    puts 1
  end
else
  if c[0] == "2"
    puts 1
  else
    puts 4
  end
end
0