結果

問題 No.1249 小学校1年生の夢
ユーザー pink_bangbipink_bangbi
提出日時 2020-11-06 20:05:22
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 158 bytes
コンパイル時間 51 ms
コンパイル使用メモリ 11,364 KB
実行使用メモリ 15,372 KB
最終ジャッジ日時 2023-09-29 17:52:52
合計ジャッジ時間 4,205 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 82 ms
15,176 KB
testcase_02 WA -
testcase_03 AC 80 ms
15,044 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 80 ms
15,372 KB
testcase_08 WA -
testcase_09 AC 81 ms
15,272 KB
testcase_10 WA -
testcase_11 AC 81 ms
15,152 KB
testcase_12 AC 79 ms
15,156 KB
testcase_13 AC 80 ms
15,124 KB
testcase_14 WA -
testcase_15 AC 80 ms
15,280 KB
testcase_16 AC 80 ms
15,248 KB
testcase_17 AC 81 ms
15,052 KB
testcase_18 AC 82 ms
15,196 KB
testcase_19 WA -
testcase_20 AC 80 ms
15,244 KB
testcase_21 WA -
testcase_22 AC 83 ms
15,044 KB
testcase_23 AC 81 ms
15,044 KB
testcase_24 WA -
testcase_25 AC 80 ms
15,044 KB
testcase_26 AC 81 ms
15,272 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 81 ms
15,128 KB
testcase_32 AC 80 ms
15,300 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

# input = "4 1 5"
input = gets

# 数値に分割する
a, b, c = input.split(" ").map(&:to_i)

if a + b == c - 1
  puts "Correct"
else
  puts "Incorrect"
end
0