package com.company;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// write your code here
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int[][] array=new int[n][4];
for (int i=0;i<n;i++){
array[i][0]=sc.nextInt();
array[i][1]=sc.nextInt();
array[i][2]=sc.nextInt();
array[i][3]=sc.nextInt();
}
//输入完成
int c1=0,c2=0;
for (int i=0;i<n;i++){
if (array[i][0]+array[i][2]==array[i][1]&&array[i][0]+array[i][2]!=array[i][3]){
c2++;
}
if (array[i][0]+array[i][2]==array[i][3]&&array[i][0]+array[i][2]!=array[i][1]){
c1++;
}
}
System.out.print(c1+" "+c2);
}
}
1046(15)
最新推荐文章于 2021-11-25 07:49:03 发布