結果
| 問題 | No.128 お年玉(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-13 16:40:37 |
| 言語 | TypeScript (6.0.2) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 375 bytes |
| 記録 | |
| コンパイル時間 | 4,668 ms |
| コンパイル使用メモリ | 345,628 KB |
| 最終ジャッジ日時 | 2026-06-05 05:46:43 |
| 合計ジャッジ時間 | 5,517 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.ts(2,5): error TS7034: Variable 'lines' implicitly has type 'any[]' in some locations where its type cannot be determined. main.ts(7,29): error TS7006: Parameter 'line' implicitly has an 'any' type. main.ts(12,25): error TS7005: Variable 'lines' implicitly has an 'any[]' type. main.ts(13,26): error TS7005: Variable 'lines' implicitly has an 'any[]' type.
ソースコード
export { }
let lines = [];
const reader = require('readline').createInterface({
input: process.stdin,
output: process.stdout
});
reader.on('line', function (line) {
lines.push(line);
});
reader.on('close', function () {
const money: number = lines[0]
const people: number = lines[1]
const result = Math.floor(money/(people*1000))*1000
console.log(result)
});