結果
問題 | No.191 供託金 |
ユーザー | chacoder1 |
提出日時 | 2021-02-02 22:56:26 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 303 bytes |
コンパイル時間 | 1,944 ms |
コンパイル使用メモリ | 193,224 KB |
最終ジャッジ日時 | 2025-01-18 10:56:52 |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;#define rep(i,n) for(ll i=0;i<n;i++)int main(){int n;cin>>n;int a[n];int sum=0;rep(i,n){cin>>a[i];sum+=a[i];}int cnt=0;rep(i,n){if(a[i]<=(sum/10))cnt++;}cout<<30*cnt<<endl;return 0;}