Skip to content

Instantly share code, notes, and snippets.

@ik11235
Created February 21, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ik11235/3cb5399563862bf57a07 to your computer and use it in GitHub Desktop.
Save ik11235/3cb5399563862bf57a07 to your computer and use it in GitHub Desktop.
#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[])
{
int n;
cin>>n;
double ans=0;
for (int i=0; i < n; i++) {
int a,b,c,d,e;
cin>>a>>b>>c>>d>>e;
ans=max(ans,a+b+c+d+(e*(110.0/900.0)));
}
// cout<<ans<<endl;
printf("%.6lf\n",ans);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment