結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
bj_k28
|
| 提出日時 | 2015-04-26 22:09:45 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 1,055 bytes |
| コンパイル時間 | 630 ms |
| コンパイル使用メモリ | 85,040 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-16 20:28:04 |
| 合計ジャッジ時間 | 1,469 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include<map>
#include<set>
#include<list>
#include<cmath>
#include<queue>
#include<stack>
#include<cstdio>
#include<string>
#include<vector>
#include<complex>
#include<cstdlib>
#include<cstring>
#include<climits>
#include<numeric>
#include<sstream>
#include<iostream>
#include<algorithm>
#include<functional>
#include<cctype>
#define mp make_pair
#define pb push_back
#define REP(i,a,n) for(int i = a;i < (n);i++)
#define rep(i,n) for(int i = 0;i < (n);i++)
#define all(s) s.begin(), s.end()
#define rall(s) s.rbegin(), s.rend()
#define range(x,min,max) ((min) <= (x) && (x) <= (max))
using namespace std;
typedef long long LL;
typedef vector<int> VI;
typedef vector<vector<int> > VII;
typedef pair<int,int> PII;
const int DX[]={1,0,-1,0},DY[]={0,-1,0,1};
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
int N;
int sum = 0;
int ans = 0;
VI cs;
cin >> N;
rep(i, N){
int c;
cin >> c;
sum += c;
cs.pb(c);
}
double judge = sum / 10.0;
rep(i, cs.size()){
if(cs[i] <= judge) ans += 30;
}
cout << ans << endl;
return 0;
}
bj_k28