結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-28 21:47:42 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 383 bytes |
| コンパイル時間 | 68 ms |
| コンパイル使用メモリ | 6,692 KB |
| 実行使用メモリ | 42,552 KB |
| 最終ジャッジ日時 | 2024-10-13 01:37:23 |
| 合計ジャッジ時間 | 2,952 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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 <= votes / 10)
console.log(30 * check.length)
});