|
- #include<iostream>
- #include<set>
- using namespace std;
- int x,a[100001],mx;
- long long ans;
- set<int>kk;
- int main()
- {
- cin>>x;
- const int n=x;
- while(x--)
- {
- cin>>a[n-x];
- mx=max(mx,a[n-x]);
- if(a[n-x])kk.insert(a[n-x]);
- }
- int l=kk.size();
- ans+=10*mx+n+l*5;
- cout<<ans;
- return 0;
- }
复制代码 |
|