#include<bits/stdc++.h> using namespace std;
int main(){ int n; cin >> n; string res; int ma = -1, mi; while(n --){ string s, t; cin >> s >> t; s += " " + t; int x, y; cin >> x >> y; if(x > ma || x == ma && y < mi) ma = x, mi = y, res = s; } cout << res << endl; }
注册一个 NanXiao OpenAtom Club Online Judge 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。
使用您的 NanXiao OpenAtom Club Online Judge 通用账户