結果

問題 No.1249 小学校1年生の夢
ユーザー pink_bangbipink_bangbi
提出日時 2020-10-14 19:39:46
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 276 bytes
コンパイル時間 53 ms
コンパイル使用メモリ 11,512 KB
実行使用メモリ 15,368 KB
最終ジャッジ日時 2023-09-28 00:44:09
合計ジャッジ時間 3,596 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
15,276 KB
testcase_01 WA -
testcase_02 AC 70 ms
15,116 KB
testcase_03 WA -
testcase_04 AC 70 ms
15,116 KB
testcase_05 AC 68 ms
15,100 KB
testcase_06 AC 69 ms
15,264 KB
testcase_07 WA -
testcase_08 AC 70 ms
15,148 KB
testcase_09 WA -
testcase_10 AC 71 ms
15,064 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 71 ms
15,108 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 70 ms
15,084 KB
testcase_20 WA -
testcase_21 AC 67 ms
15,092 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 70 ms
15,256 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 68 ms
15,300 KB
testcase_28 AC 69 ms
15,016 KB
testcase_29 AC 70 ms
15,100 KB
testcase_30 AC 69 ms
15,220 KB
testcase_31 WA -
testcase_32 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

def calc(input)
#   input.split(" ").map(&:to_i).then { |a, b, c|
#     a + b == c ? "Correct" : "Incorrect"
#   }
  case input.split(" ").map(&:to_i)
  in [a, b, c] if a + b == c
    "Correct"
  else
    "Incorrect"
  end
end

input = "4 1 5"
# input = gets
puts calc(input)
0