[HDU 1976] Software Version

时间:2021-12-26 07:51:45

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1976

 #include<iostream>
#include<cstdio>
#include<cmath>
#include<algorithm>
using namespace std; int main()
{
int a[],b[];
int t;
for(scanf("%d",&t);t;t--)
{
scanf("%d%d%d",&a[],&a[],&a[]);
scanf("%d%d%d",&b[],&b[],&b[]);
if(a[]>b[])
printf("First\n");
else if(a[]<b[])
printf("Second\n");
else
{
if(a[]>b[])
printf("First\n");
else if(a[]<b[])
printf("Second\n");
else
{
if(a[]>b[])
printf("First\n");
else if(a[]<b[])
printf("Second\n");
else
printf("Same\n");
}
}
}
return ;
}