結果

問題 No.516 赤と青の風船
ユーザー T A
提出日時 2021-06-11 11:42:55
言語 TypeScript
(5.7.2)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 309 bytes
コンパイル時間 9,019 ms
コンパイル使用メモリ 230,144 KB
実行使用メモリ 42,416 KB
最終ジャッジ日時 2024-12-31 16:37:34
合計ジャッジ時間 9,308 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

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