結果

問題 No.1249 小学校1年生の夢
ユーザー penqenpenqen
提出日時 2020-12-14 17:03:39
言語 Elixir
(1.16.2)
結果
AC  
実行時間 569 ms / 2,000 ms
コード長 413 bytes
コンパイル時間 1,146 ms
コンパイル使用メモリ 55,464 KB
実行使用メモリ 50,976 KB
最終ジャッジ日時 2023-08-30 00:58:34
合計ジャッジ時間 21,429 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 560 ms
50,040 KB
testcase_01 AC 553 ms
49,136 KB
testcase_02 AC 561 ms
49,168 KB
testcase_03 AC 564 ms
49,264 KB
testcase_04 AC 569 ms
49,692 KB
testcase_05 AC 564 ms
49,716 KB
testcase_06 AC 562 ms
49,864 KB
testcase_07 AC 564 ms
49,944 KB
testcase_08 AC 569 ms
50,240 KB
testcase_09 AC 565 ms
49,416 KB
testcase_10 AC 562 ms
49,476 KB
testcase_11 AC 557 ms
48,964 KB
testcase_12 AC 563 ms
50,016 KB
testcase_13 AC 561 ms
49,500 KB
testcase_14 AC 556 ms
49,180 KB
testcase_15 AC 556 ms
50,976 KB
testcase_16 AC 552 ms
49,452 KB
testcase_17 AC 555 ms
49,604 KB
testcase_18 AC 561 ms
49,136 KB
testcase_19 AC 561 ms
49,184 KB
testcase_20 AC 557 ms
49,828 KB
testcase_21 AC 557 ms
49,236 KB
testcase_22 AC 560 ms
50,172 KB
testcase_23 AC 558 ms
49,868 KB
testcase_24 AC 555 ms
49,096 KB
testcase_25 AC 556 ms
49,388 KB
testcase_26 AC 555 ms
49,248 KB
testcase_27 AC 555 ms
49,824 KB
testcase_28 AC 566 ms
49,812 KB
testcase_29 AC 557 ms
49,292 KB
testcase_30 AC 561 ms
49,260 KB
testcase_31 AC 559 ms
49,816 KB
testcase_32 AC 560 ms
49,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
    def main do
        [a, b, c] = IO.read(:line) |> String.trim() |> String.split(" ") |> Enum.map(&String.to_integer/1)
        solve(a, b, c) |> IO.puts()
    end
    
     def solve(a, b, c) when 0 <= a and b <= 100 and 0 <= c and c <= 200 do
        if a + b == c do
          "Correct"
        else
          "Incorrect"
        end
    end

    def solve(_a, _b, _c), do: "Incorrect"
end
0