結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-12-23 03:35:16 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 52 ms / 5,000 ms |
| コード長 | 392 bytes |
| コンパイル時間 | 715 ms |
| コンパイル使用メモリ | 78,340 KB |
| 最終ジャッジ日時 | 2025-01-08 14:06:45 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
using namespace std;
typedef long long int ll;
int main(){
cin.tie(nullptr);
ios::sync_with_stdio(false);
int n; cin >> n;
vector<int> a(n);
int sum=0;
for(int i=0;i<n;i++){
cin >> a[i];
sum+=a[i];
}
sum/=10;
int ans=0;
for(int i=0;i<n;i++){
if(a[i]<=sum){
ans++;
}
}
cout << ans*30 << endl;
}