#include <iostream>
using namespace std;
int main()
{
int n;
cin>>n;
int c1=0;
int c2 = 0;
while (n--)
{
int x,y,a,b;
cin>>x>>y>>a>>b;
int sum = x+a;
if(y==sum&&b==sum||y!=sum&&b!=sum)continue;
else if(y==sum&&b!=sum)c2++;
else if(b==sum&&y!=sum)c1++;
}
cout<<c1<<" "<<c2;
return 0;
}
PAT乙级1046 划拳
最新推荐文章于 2022-11-17 16:24:49 发布