結果
| 問題 | 
                            No.191 供託金
                             | 
                    
| コンテスト | |
| ユーザー | 
                            👑  | 
                    
| 提出日時 | 2019-11-22 12:44:56 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 295 bytes | 
| コンパイル時間 | 512 ms | 
| コンパイル使用メモリ | 63,744 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-11 02:32:45 | 
| 合計ジャッジ時間 | 1,254 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 23 | 
ソースコード
#include <iostream>
using namespace std;
int main(){
    int n;cin>>n;
    int a[n];
    int sm = 0;
    for(int i = 0; n > i; i++){
        cin>>a[i];
        sm += a[i];
    }
    int ans = 0;
    for(int i = 0; n > i; i++){
        if(a[i]*10 <= sm)ans += 30;
    }
    cout << ans << endl;
}