結果
| 問題 | No.191 供託金 |
| コンテスト | |
| ユーザー |
Eclair1015
|
| 提出日時 | 2018-08-09 00:23:56 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 370 bytes |
| 記録 | |
| コンパイル時間 | 534 ms |
| コンパイル使用メモリ | 78,792 KB |
| 実行使用メモリ | 7,976 KB |
| 最終ジャッジ日時 | 2026-04-11 09:30:21 |
| 合計ジャッジ時間 | 1,496 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 3 WA * 20 |
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
#include<string>
using namespace std;
int main(){
int n;
cin >> n;
vector<int> c(n);
for (int i = 0; i < n; i++) cin >> c[i];
int sum = 0;
for (int i = 0; i < n; i++) sum += c[i];
int ave = sum / n;
int ans=0;
for (int i = 0; i < n; i++) {
if (ave >= c[i]) ans += 30;
}
cout << ans << endl;
}
Eclair1015