# 石头，剪刀，布

OceanLight和xinge008在玩石头，剪刀，布的游戏，输的一方要罚做100道ACM题。比赛进行n局，获胜次数多的一方最终获胜。现给出n局两个人的手势，请输出输的一方。如果两人获胜次数相同，输出"Jiong!"

``````3
1
rock scissors
2
paper paper
paper scissors
1
rock rock``````

``````xinge008
OceanLight
Jiong!
``````

``````#include "stdio.h"
int main()
{
int n,i,t,a,b;
char x[10]={0},y[10]={0};
scanf("%d",&t);
while(t--)
{
scanf("%d",&n);
a=0;b=0;
for(i=0;i<n;i++)
{
scanf("%s",x);
scanf("%s",y);
if(x[0]==y[0])
continue;
if(x[0]=='r'&&y[0]=='s'||x[0]=='s'&&y[0]=='p'||x[0]=='p'&&y[0]=='r')
a++;
if(x[0]=='r'&&y[0]=='p'||x[0]=='p'&&y[0]=='s'||x[0]=='s'&&y[0]=='r')
b++;
}
if(a>b)
printf("xinge008\n");
if(a<b)
printf("OceanLight\n");
if(a==b)
printf("Jiong!\n");
}
return 0;
}``````

``````#include <iostream>
#include <cstdio>
#include <algorithm>
#include <string.h>
#include <queue>
#include <cmath>
#include <cstdlib>
#include<stdio.h>
using namespace std;

int main()
{
int t;
scanf("%d",&t);
while(t--)
{
int n;
char a[100],b[100],s=0,i;
scanf("%d",&n);
s=0;
for(i=0;i<n;i++)
{
scanf("%s %s",a,b);
if(strcmp(a,b)==0)
continue;
else if(strcmp(a,"rock")==0)
{
if(strcmp(b,"scissors")==0)
s++;
else
s--;
}
else if(strcmp(a,"scissors")==0)
{
if(strcmp(b,"paper")==0)
s++;
else
s--;
}
else if(strcmp(a,"paper")==0)
{
if(strcmp(b,"rock")==0)
s++;
else
s--;
}
}
if(s>0)
printf("xinge008\n");
if(s<0)
printf("OceanLight\n");
if(s==0)
printf("Jiong!\n");
}
return 0;
}
``````