結果

問題 No.516 赤と青の風船
ユーザー T AT A
提出日時 2020-07-11 15:35:21
言語 TypeScript
(5.7.2)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 423 bytes
コンパイル時間 7,909 ms
コンパイル使用メモリ 229,112 KB
実行使用メモリ 42,344 KB
最終ジャッジ日時 2024-12-31 16:15:13
合計ジャッジ時間 9,079 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

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