// PATn.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
unsigned n;
cin >> n;
unsigned jia = 0;
unsigned yii = 0;
unsigned t1, t2, t3, t4;
for (unsigned i = 0; i < n; ++i)
{
cin >> t1 >> t2 >> t3 >> t4;
bool j = false;
bool y = false;
if ((t1 + t3) == t2)
j = true;
if ((t1 + t3) == t4)
y = true;
if (true == j && false == y)
jia = jia + 1;
if (false == j && true == y)
yii = yii + 1;
}
cout << yii << " " << jia;
system("pause");
return 0;
}
1046
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。