結果
| 問題 | 
                            No.191 供託金
                             | 
                    
| コンテスト | |
| ユーザー | 
                             hamray
                         | 
                    
| 提出日時 | 2017-11-17 17:28:36 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 442 bytes | 
| コンパイル時間 | 460 ms | 
| コンパイル使用メモリ | 63,212 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-11-25 08:51:04 | 
| 合計ジャッジ時間 | 1,316 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 WA * 1 | 
| other | WA * 23 | 
ソースコード
#include <iostream>
#include <cstdlib>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
    int N, C; cin >> N;
    int sum = 0;
    int ans = 150;
    vector<int> v;
    for(int i = 0; i < N; i++){
        cin >> C;
        v.push_back(C);
        sum += C;
    }
    int ave = sum / N;
    for(int i = 0; i < N; i++){
        if(v[i] <= ave) ans -= 30;
    }
    cout << ans << endl;
    return 0;
}
            
            
            
        
            
hamray