#include <bits/stdc++.h>
using namespace std;
int n, k;
int hat[105], guess;
int main(){
cin >> n;
for(int i = 0; i < n; i++) cin >> hat[i];
cin >> k;
while(k--){
int f1 = 0, f2 = 0; // 猜错(f1=1) 与 有人猜(f2=1)
for(int i = 0; i < n; i++){
cin >> guess;
if(guess != 0) f2 = 1;
if(guess != 0 && guess != hat[i]) f1 = 1;
}
if(!f1 && f2) cout << "Da Jiang!!!" << endl;
else cout << "Ai Ya" << endl;
}
return 0;
}
L1-093 猜帽子游戏
最新推荐文章于 2025-08-02 10:34:45 发布