結果

問題 No.516 赤と青の風船
ユーザー mlpj56dmlpj56d
提出日時 2017-11-27 09:39:25
言語 JavaScript
(node v20.8.0)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 267 bytes
コンパイル時間 462 ms
コンパイル使用メモリ 5,356 KB
実行使用メモリ 42,364 KB
最終ジャッジ日時 2023-08-03 02:23:13
合計ジャッジ時間 1,868 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
42,120 KB
testcase_01 AC 75 ms
42,228 KB
testcase_02 AC 75 ms
42,296 KB
testcase_03 AC 75 ms
42,236 KB
testcase_04 AC 71 ms
42,224 KB
testcase_05 AC 72 ms
42,144 KB
testcase_06 AC 72 ms
42,364 KB
testcase_07 AC 73 ms
42,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main (input) {
    var line = input.split("\n");
    var color = line[0] == line[1] ? line[1] :
                line[1] == line[2] ? line[1] :
                line[2];

        console.log(color);
    }

Main(require("fs").readFileSync("/dev/stdin","utf8"));
0