https://pintia.cn/problem-sets/994805260223102976/problems/994805277847568384
简单题。
#include<iostream>
using namespace std;
int main() {
int n, c1=0, c2=0, a, b, c, d;
cin >> n;
for(int i=0; i<n; i++){
cin >> a >> b >> c >> d;
if(b==a+c && d!=a+c)
c2 ++;
else if(b!=a+c && d==a+c)
c1 ++;
}
cout << c1 << " " << c2;
return 0;
}