結果

問題 No.516 赤と青の風船
ユーザー T AT A
提出日時 2020-07-11 15:35:21
言語 TypeScript
(5.4.3)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 423 bytes
コンパイル時間 8,287 ms
コンパイル使用メモリ 254,512 KB
実行使用メモリ 42,684 KB
最終ジャッジ日時 2023-08-03 05:25:35
合計ジャッジ時間 9,665 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
42,396 KB
testcase_01 AC 82 ms
42,528 KB
testcase_02 AC 83 ms
42,684 KB
testcase_03 AC 78 ms
42,128 KB
testcase_04 AC 78 ms
42,148 KB
testcase_05 AC 79 ms
42,200 KB
testcase_06 AC 79 ms
42,208 KB
testcase_07 AC 77 ms
42,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

const lines = [];
const reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});

reader.on('line', (line) => {
  lines.push(line);
});
reader.on('close', () => {
  const arr: string[] = lines
  const redArr = arr.filter((value: string): boolean => {
    return value.length == 3
  })
  if (redArr.length >= 2) {
    console.log('RED');
  } else {
    console.log('BLUE');
  }
});
0