1046

作者: 峡迩 | 来源:发表于2017-09-03 15:25 被阅读0次
// 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;
}


相关文章

  • PAT总结(A1042,A1046,A1065)

    PAT总结(A1042,A1046,A1065) A1046 Shortest Distance 题目 The t...

  • 1046

  • 1046

    禅师讲:“人生不要被过去控制,决定你前行的,是当下;人生不要被别人控制,决定你命运的,是自己;人生不要被金钱控制,...

  • 1046

    2022.11.07 星期一 晴 早晨爸爸煮的玉米稀饭,云灿泡了点儿馒头吃,吃完准备送她去站点儿,我换鞋的...

  • 各个朝代多少年

    商朝 【前1600-前1046】=555年 周朝 【前1046-前256 】=791年 秦朝 【前1221-前20...

  • 番外篇2:周朝时期划分

    周王朝(前1046年 - 前249年),分西周(前1046年 - 前771年)、东周(前771年 - 前249年)...

  • MC 1046

    "目录号: HY-15264 Vitamin D Related- MC 1046(Impurity A of C...

  • 1046 划拳

    划拳是古老中国酒文化的一个有趣的组成部分。酒桌上两人划拳的方法为:每人口中喊出一个数字,同时用手比划出一个数字。如...

  • 亲子(1046)

    2020.2.11星期二 多云间晴 (12号补写)昨晚突然馋贝壳类海鲜了,无奈市场没开门,只好去超市买了点...

  • 1046:散步

    今天晚上,我们一家一起在小区里散步。 那时天还没完全黑。我们便准备出去走走。俗话说的好:“饭后百步走,...

网友评论

      本文标题:1046

      本文链接:https://www.haomeiwen.com/subject/xwhjjxtx.html