Beta Round #68-A: Room Leader

解法

問題文とか全然読んでないけど書くだけというのはすぐ分かる。

#include <cstdio>
#include <vector>
#include <string>
#include <algorithm>
#include <iostream>
using namespace std;

int main(){
	vector<pair<int, string> > ws;
	int N;
	cin >> N;
	for(int i=0; i<N; i++){
		string name;
		int s, u, a, b, c, d, e;
		cin.ignore();
		cin >> name >> s >> u >> a >> b >> c >> d >> e;
		int point = 100*s - 50*u + a + b + c + d + e;
		ws.push_back( make_pair(-point, name));
	}
	sort(ws.begin(), ws.end());
	cout << ws[0].second << endl;
	return 0;
}