| 记录编号 | 
        584526 | 
        评测结果 | 
        AAAAAAAAAA | 
    
    
        | 题目名称 | 
        2901.打扑克 | 
        最终得分 | 
        100 | 
            
    
    
        | 用户昵称 | 
         Murasame | 
        是否通过 | 
        通过 | 
    
    
        | 代码语言 | 
        C++ | 
        运行时间 | 
        0.000 s  | 
    
    
        | 提交时间 | 
        2023-11-13 15:27:53 | 
        内存使用 | 
        0.00 MiB  | 
        
    
    
    
    		显示代码纯文本
		
		#include<bits/stdc++.h>
using namespace std;
int m,n,c,flag=0;
int a[30];
bool chk(){
	for(int i=1;i<=13;i++){
		if(a[i]>4){
			return 1;
		}
	}
	return 0;
}
void fi(){
	for(int i=3;i<=13;i++){
		if(a[i]==4){
			cout<<i<<endl;
			return;
		}
	}
	for(int i=2;i>=1;i--){
		if(a[i]==4){
			cout<<i<<endl;
			return;
		}
	}
	flag=1;
}
void work(){
	memset(a,0,sizeof(a));
	cin>>n;
	for(int i=1;i<=n;i++){
		cin>>c;
		a[c]++;
	}
	if(chk()){
		cout<<"cheat"<<endl;
		return;
	}
	flag=0;
	fi();
	if(flag==1){
		cout<<"no bomb"<<endl;
	}
}
int main(){
	freopen("poker1.in","r",stdin);
	freopen("poker1.out","w",stdout);
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	cin>>m;
	for(int z=1;z<=m;z++){
		work();
	}
	return 0;
}