結果
| 問題 | No.516 赤と青の風船 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-11 11:42:55 |
| 言語 | TypeScript (6.0.2) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 309 bytes |
| 記録 | |
| コンパイル時間 | 5,356 ms |
| コンパイル使用メモリ | 350,064 KB |
| 最終ジャッジ日時 | 2026-06-05 05:44:08 |
| 合計ジャッジ時間 | 7,612 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.ts(6,5): error TS7034: Variable 'lines' implicitly has type 'any[]' in some locations where its type cannot be determined. main.ts(7,20): error TS7006: Parameter 'line' implicitly has an 'any' type. main.ts(12,7): error TS7005: Variable 'lines' implicitly has an 'any[]' type. main.ts(12,20): error TS7005: Variable 'lines' implicitly has an 'any[]' type. main.ts(13,17): error TS7005: Variable 'lines' implicitly has an 'any[]' type. main.ts(15,17): error TS7005: Variable 'lines' implicitly has an 'any[]' type.
ソースコード
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]);
}
});