結果

問題 No.191 供託金
コンテスト
ユーザー nao109
提出日時 2021-08-28 02:17:29
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
RE  
実行時間 -
コード長 350 bytes
コンパイル時間 2,063 ms
コンパイル使用メモリ 159,136 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-21 10:02:52
合計ジャッジ時間 2,921 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
    long long n,allc=0; cin >> n; long long c[n];
    for(int i=0; i<n; i++){
        cin >> c[i];
        allc+=c[i];
    }
    long long ans=0;
    for(int i=0; i<n; i++){
        double ch=allc/c[i];
        //cout << ch << endl;
        if(ch>=10) ans+=30;
    }
    cout << ans << endl;
}
0