1046 划拳
水题。
#include<iostream> using namespace std; int main() { int n,jiahan,jiahua,yihan,yihua,jia = 0,yi = 0; cin>>n; while(n--) { scanf("%d%d%d%d",&jiahan,&jiahua,&yihan,&yihua); if(jiahan + yihan == jiahua && jiahan+yihan != yihua) yi++; else if(jiahan + yihan != jiahua && jiahan+yihan == yihua) jia++; else ; } cout<<jia<<" "<<yi; return 0; }