結果

問題 No.1249 小学校1年生の夢
ユーザー hum_ophum_op
提出日時 2020-10-16 19:28:32
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 586 bytes
コンパイル時間 203 ms
コンパイル使用メモリ 5,328 KB
実行使用メモリ 42,284 KB
最終ジャッジ日時 2023-09-28 02:27:04
合計ジャッジ時間 5,762 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
42,188 KB
testcase_01 AC 76 ms
42,240 KB
testcase_02 AC 75 ms
42,244 KB
testcase_03 AC 75 ms
42,268 KB
testcase_04 AC 77 ms
42,168 KB
testcase_05 AC 75 ms
42,124 KB
testcase_06 AC 75 ms
42,128 KB
testcase_07 AC 76 ms
42,128 KB
testcase_08 AC 76 ms
42,076 KB
testcase_09 AC 77 ms
42,140 KB
testcase_10 AC 75 ms
42,120 KB
testcase_11 AC 76 ms
42,140 KB
testcase_12 AC 80 ms
42,132 KB
testcase_13 AC 76 ms
42,212 KB
testcase_14 AC 76 ms
42,072 KB
testcase_15 AC 76 ms
42,124 KB
testcase_16 AC 77 ms
42,136 KB
testcase_17 AC 75 ms
42,192 KB
testcase_18 AC 76 ms
42,160 KB
testcase_19 AC 77 ms
42,168 KB
testcase_20 AC 75 ms
42,168 KB
testcase_21 AC 75 ms
42,132 KB
testcase_22 AC 75 ms
42,148 KB
testcase_23 AC 77 ms
42,084 KB
testcase_24 AC 76 ms
42,164 KB
testcase_25 AC 76 ms
42,068 KB
testcase_26 AC 75 ms
42,124 KB
testcase_27 AC 75 ms
42,128 KB
testcase_28 AC 75 ms
42,180 KB
testcase_29 AC 77 ms
42,284 KB
testcase_30 AC 75 ms
42,120 KB
testcase_31 AC 75 ms
42,120 KB
testcase_32 AC 76 ms
42,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
    // inputにはすべての入力の文字列が与えられるので必要に応じて input.split("\n") などで分割する。

    var data = input.split(" ")

                const A = parseInt(data[0]);
                const B = parseInt(data[1]);
                const C = parseInt(data[2]);


                if (A + B == C) {
                        console.log("Correct");
                }else {
                        console.log("Incorrect");
                }
}

// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0