結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-28 21:47:06 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 381 bytes |
| コンパイル時間 | 104 ms |
| コンパイル使用メモリ | 6,948 KB |
| 実行使用メモリ | 42,872 KB |
| 最終ジャッジ日時 | 2024-10-13 01:37:20 |
| 合計ジャッジ時間 | 2,742 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 23 |
ソースコード
const reader = require("readline").createInterface({
input: process.stdin,
output: process.stdout
});
let lines = [];
reader.on("line", line => {
lines.push(line);
});
reader.on("close", () => {
let votes = lines[1].split(' ').map(str => parseInt(str, 10)).reduce((a, c) => a + c)
const check = votes.filter(item => item <= sum / 10)
console.log(30 * check.length)
});