1046 划拳
来源:互联网 发布:淘宝怎么开通海外直邮 编辑:程序博客网 时间:2024/05/01 12:44
#include<stdio.h>
int main()
{
int n,i;
scanf("%d",&n);
int a1,a2,b1,b2;
int ah=0,bh=0;
for(i=0;i<n;i++)
{
scanf("%d%d%d%d",&a1,&a2,&b1,&b2);
if(a2!=a1+b1 && b2==a1+b1)
ah++;
else if(a2==a1+b1 && b2!=a1+b1)
bh++;
}
printf("%d %d",ah,bh);
return 0;
}
int main()
{
int n,i;
scanf("%d",&n);
int a1,a2,b1,b2;
int ah=0,bh=0;
for(i=0;i<n;i++)
{
scanf("%d%d%d%d",&a1,&a2,&b1,&b2);
if(a2!=a1+b1 && b2==a1+b1)
ah++;
else if(a2==a1+b1 && b2!=a1+b1)
bh++;
}
printf("%d %d",ah,bh);
return 0;
}
0 0
- 1046].划拳
- 1046 划拳
- PAT-1046划拳
- 1046,划拳,PAT
- PAT乙级1046 划拳
- PAT 1046划拳
- PAT 1046 划拳
- PAT 1046 划拳
- PAT[1046]划拳
- PAT-1046(划拳)
- 划拳
- 划拳
- PAT(basic level) 1046 划拳(15)
- PAT_划拳
- 1046. 划拳
- pat1046:划拳
- PATB1046:划拳
- 1046. 划拳
- python 网络编程学习 非阻塞socket
- 广播接收者
- poj 2352 Stars
- Atom代码美化,atom-beautify和php-cs-fixer
- 【C】C语言中sin和cos的用法
- 1046 划拳
- 存储段描述符
- 深拷贝 —— String类的实现
- 编程之美读书笔记-不要被阶乘吓倒
- UESTC 491 Tricks in Bits
- 【20160904】NOIP模拟赛T1
- 套接口
- weak_ptr的作用及应用场景——shared_ptr的循环引用问题
- STK Component是什么