B1046

#include<cstdio>
#include<iostream>
#include<cmath>
#include<cstring>
#include<string>
#include<ctime>
using namespace std;

int main()
{
    int N;
    scanf("%d",&N);
    int Jh=0,Yh=0;
    while(N--){
        int a,b,c,d;
        scanf("%d%d%d%d",&a,&b,&c,&d);
        if(d==b) continue;
        else if(b==a+c) Yh++;
        else if(d==a+c) Jh++;
    }
    printf("%d %d\n",Jh,Yh);
    return 0;
}
 

划拳就完事了

猜你喜欢

转载自blog.csdn.net/fengwuyaQAQ/article/details/85612435