这道题目是一个结构体,但是其实不需要

struct node 
{
	string s1;
	int num1;
}a;
struct node1
{
	string s2;
	int num2;
	
}b;
char c;

void solve()
{
	ios;
	int t;
	cin>>t;
	while(t--)
	{
		cin>>a.s1>>a.num1>>c>>b.s2>>b.num2;
		if(a.num1>b.num2)
		{
			cout<<a.s1<<"\n";
		}
		else if(a.num1<b.num2)
		{
			cout<<b.s2<<"\n";
		}
		else
		{
			cout<<"None"<<"\n";
		}
	}
}
signed main()
{

	solve();
	return 0;
}