1046 划拳

#include <bits/stdc++.h>
const int inf = 0x3f3f3f3f;
#define ll long long
using namespace std;
int res1,res2;
int main(){
	int n;
	cin>>n;
	for(int i=0;i<n;i++){
		int a1,a2,b1,b2;
		cin>>a1>>a2>>b1>>b2;
		if(a2==a1+b1 && b2==a1+b1) continue;
		if(a2==a1+b1) {//乙喝酒 
			res2++;
		}else if(b2==a1+b1){//甲喝酒 
			res1++;
		}
	}
	cout << res1 << " " << res2;
	return 0;
}
posted @ 2024-04-18 11:01  YuKiCheng  阅读(6)  评论(0编辑  收藏  举报