| 记录编号 | 
        584528 | 
        评测结果 | 
        AAAAAAAAAA | 
    
    
        | 题目名称 | 
        2901.打扑克 | 
        最终得分 | 
        100 | 
            
    
    
        | 用户昵称 | 
         元始天尊 | 
        是否通过 | 
        通过 | 
    
    
        | 代码语言 | 
        C++ | 
        运行时间 | 
        0.000 s  | 
    
    
        | 提交时间 | 
        2023-11-13 15:29:08 | 
        内存使用 | 
        0.00 MiB  | 
        
    
    
    
    		显示代码纯文本
		
		#include<bits/stdc++.h>
using namespace std;
int a[20];
int main()
{
    freopen("poker1.in","r",stdin);
    freopen("poker1.out","w",stdout);
    int n,m;
    cin>>m;
    for(int i=1;i<=m;i++)
    {
        cin>>n;
        bool cheat=false,bomb=false;
        for(int j=1;j<=n;j++)
        {
            int x;    
            cin>>x;
            if(x==1) x=15;
            if(x==2) x=14;
            a[x]++;
            if(a[x]>4&&!cheat) 
            {
                cheat=true;
            }
        }
        if(cheat) {
        cout<<"cheat"<<endl;
        memset(a,0,sizeof(a));
        continue;
        }
        for(int j=3;j<=15;j++) 
        {
            if(a[j]==4) 
            {
                if(j==14) cout<<2<<endl;
                if(j==15) cout<<1<<endl;
                if(j!=14&&j!=15) cout<<j<<endl;
                bomb=true;
                break;
            }
        }
        if(!bomb) 
        {
            cout<<"no bomb"<<endl;
        }
        memset(a,0,sizeof(a));
    }
    return 0;
}