比赛 NOIP水题争霸赛 评测结果 AWWWWWWWWW
题目名称 打扑克 最终得分 10
用户昵称 qwerqw 运行时间 0.005 s
代码语言 C++ 内存使用 0.25 MiB
提交时间 2018-02-11 21:27:33
显示代码纯文本
#include<iostream>
#include<cstdio>
int a[14];
using namespace std;
char str[6]="cheat";char st2[10]="no bomb";

int main()
{
	int m,n,k,a;
	freopen("poker1.in","r",stdin);
	freopen("poker1.out","w",stdout);
	scanf("%d",&m);
	for(int p=1;p<=m;p++)
	{
	 int R=0;
	  scanf("%d",&n);
	   for(int i=1;i<=n;i++)
	      {a=0;
		    scanf("%d",&k);
		    a++;
		   
		    if(a>4)printf("%s",&str);break;
		     while(a==4){R++;}
		  }
	if(R>0) printf("%d",&R);
	if(R==0) printf("%s",&st2);
	
	}

	return 0;
}