#include<bits/stdc++.h>
using namespace std;
#define int long long
#define endl '\n'
#define inf 1e18
const int mod=1e9+7;
const int N=2e5+5;
int n,m;
int a[N];
void solve(){
cin>>n;
int t=1;
for(int i=1;i<=n;i++){
int x;
cin>>x;
if(x==1){
if(t==1) t=0;
else t=1;
}
}
if(t==1) cout<<"zzy";
else cout<<"miao";
}
signed main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
int tt=1;
// cin>>tt;
while(tt--) solve();
return 0;
}
猫猫大队(模拟)--华中农业大学第十三届程序设计竞赛-C
最新推荐文章于 2024-09-13 14:29:03 发布
这篇文章展示了如何使用C++编写一个解决基本逻辑问题的程序,输入一个整数n,根据输入值x执行相应的输出(zzy或miao)。程序包含一个`solve`函数,用于处理此任务。
摘要由CSDN通过智能技术生成