結果
問題 | No.191 供託金 |
ユーザー | saytakaPC |
提出日時 | 2015-04-26 22:08:36 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 361 bytes |
コンパイル時間 | 1,136 ms |
コンパイル使用メモリ | 157,664 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-16 20:24:33 |
合計ジャッジ時間 | 1,857 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0;i<(n);i++) #define MP make_pair #define PB push_back typedef long long ll; const int N_MAX=1300000; bool prime[N_MAX]; int main(){ int n,c; ll cnt[100],sum=0; cin>>n; rep(i,n){ cin>>cnt[i]; sum+=cnt[i]; } int k=sum/10,ans=0; rep(i,n)if(cnt[i]<=k)ans+=30; cout<<ans<<endl; }