結果

問題 No.1249 小学校1年生の夢
ユーザー g_kenkung_kenkun
提出日時 2020-12-06 19:02:35
言語 Elixir
(1.16.2)
結果
AC  
実行時間 630 ms / 2,000 ms
コード長 248 bytes
コンパイル時間 1,021 ms
コンパイル使用メモリ 55,276 KB
実行使用メモリ 50,092 KB
最終ジャッジ日時 2023-08-30 00:59:42
合計ジャッジ時間 23,443 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 609 ms
49,236 KB
testcase_01 AC 596 ms
49,372 KB
testcase_02 AC 612 ms
49,860 KB
testcase_03 AC 609 ms
49,976 KB
testcase_04 AC 613 ms
49,904 KB
testcase_05 AC 605 ms
49,104 KB
testcase_06 AC 611 ms
49,288 KB
testcase_07 AC 624 ms
49,276 KB
testcase_08 AC 628 ms
49,084 KB
testcase_09 AC 621 ms
49,384 KB
testcase_10 AC 627 ms
49,444 KB
testcase_11 AC 609 ms
49,380 KB
testcase_12 AC 615 ms
49,820 KB
testcase_13 AC 617 ms
49,120 KB
testcase_14 AC 627 ms
49,340 KB
testcase_15 AC 626 ms
49,824 KB
testcase_16 AC 621 ms
49,204 KB
testcase_17 AC 626 ms
49,500 KB
testcase_18 AC 630 ms
49,824 KB
testcase_19 AC 625 ms
49,512 KB
testcase_20 AC 623 ms
49,184 KB
testcase_21 AC 619 ms
49,332 KB
testcase_22 AC 619 ms
49,832 KB
testcase_23 AC 620 ms
49,072 KB
testcase_24 AC 614 ms
49,896 KB
testcase_25 AC 607 ms
49,412 KB
testcase_26 AC 599 ms
49,508 KB
testcase_27 AC 612 ms
49,380 KB
testcase_28 AC 600 ms
49,812 KB
testcase_29 AC 599 ms
49,264 KB
testcase_30 AC 625 ms
50,092 KB
testcase_31 AC 616 ms
49,388 KB
testcase_32 AC 621 ms
49,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    [a, b, c] =
      IO.gets("")
      |> String.trim()
      |> String.split(" ", trim: true)
      |> Enum.map(&String.to_integer/1)

    if a + b == c, do: IO.puts("Correct"), else: IO.puts("Incorrect")
  end
end
0