結果
| 問題 |
No.516 赤と青の風船
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-13 16:32:27 |
| 言語 | TypeScript (5.7.2) |
| 結果 |
AC
|
| 実行時間 | 77 ms / 2,000 ms |
| コード長 | 404 bytes |
| コンパイル時間 | 8,332 ms |
| コンパイル使用メモリ | 229,276 KB |
| 実行使用メモリ | 42,428 KB |
| 最終ジャッジ日時 | 2024-12-31 16:38:36 |
| 合計ジャッジ時間 | 9,252 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 |
ソースコード
const reader = require("readline").createInterface({
input: process.stdin,
output: process.stdout
});
let lines = [];
reader.on("line", line => {
lines.push(line);
});
reader.on("close", () => {
const sum = lines.map(line => line.trim().length).reduce( (accumulator, currentValue) => {
return accumulator + currentValue
})
if (sum > 10 ) {
console.log('BLUE')
} else {
console.log('RED')
}
});