結果

問題 No.516 赤と青の風船
ユーザー T AT A
提出日時 2021-06-11 11:42:55
言語 TypeScript
(5.4.3)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 309 bytes
コンパイル時間 9,119 ms
コンパイル使用メモリ 252,964 KB
実行使用メモリ 44,564 KB
最終ジャッジ日時 2023-08-20 23:27:17
合計ジャッジ時間 9,973 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
42,624 KB
testcase_01 AC 81 ms
42,588 KB
testcase_02 AC 82 ms
42,520 KB
testcase_03 AC 82 ms
44,564 KB
testcase_04 AC 82 ms
42,644 KB
testcase_05 AC 81 ms
42,684 KB
testcase_06 AC 82 ms
42,772 KB
testcase_07 AC 81 ms
42,512 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

const reader = require("readline").createInterface({
  input: process.stdin,
  output: process.stdout,
});

let lines = [];
reader.on("line", (line) => {
  lines.push(line);
});

reader.on("close", () => {
  if (lines[0] === lines[1]) {
    console.log(lines[0]);
  } else {
    console.log(lines[2]);
  }
});
0