結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
hiyori
|
| 提出日時 | 2017-08-10 01:04:26 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 429 bytes |
| コンパイル時間 | 624 ms |
| コンパイル使用メモリ | 69,504 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-12 00:33:08 |
| 合計ジャッジ時間 | 1,548 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include<iostream>
#include<vector>
#define REP(i,n) for(i=0; i<n; i++)
using namespace std;
int main()
{
int n;
cin>>n;
vector<int> v;
int i,votes,standard=0;
REP(i,n) {
cin>>votes;
v.push_back(votes);
standard+=votes;
}
standard/=10;
int cnt=0;
REP(i,v.size()) {
if(v[i]<=standard) { cnt++; }
else{}
}
cout << cnt*30 << endl;
return 0;
}
hiyori