竞赛
考级
各位快去学学三目运算符吧真的好用()
C+Mouger+xhx
Minecraft爱好者
programmerGYM
代码献上 如果不对可能输出的是中英文的问题,可以参考一下题目中的和代码中的。
纳西妲
136****4819
#include<bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; if(a1){ if(b1){ cout<<"ZhuFan"<<endl; } else if(b2){ cout<<"HeZhou"<<endl; } } else if(a2){ if(b1){ cout<<"XiaoPingGuo"<<endl; } else if(b2){ cout<<"DongFengPo"<<endl; } else { cout<<"GiliGliAi"<<endl; } } return 0; }
余晖
#include <bits/stdc++.h> using namespace std; int main(){ int a,b; cin >> a >> b; if(a1){ if(b1){ cout << "ZhuFan"; }else if(b2){ cout << "HeZhou"; } }else if(a2){ if(b1){ cout << "XiaoPingGuo"; }else if(b2){ cout << "DongFengPo"; }else if(b==3){ cout << "GiliGliAi"; } } }
吴洋宇
#include <iostream> using namespace std; int main(){ int a,b,c; cin >> a; if(a == 1){ cin >> b; if (b == 1){ cout << "ZhuFan"; }else{ cout << "HeZhou"; } }else{ cin >> c; if (c == 1){ cout << "XiaoPingGuo"; }else if(c == 2){ cout << "DongFengPo"; }else{ cout << "GiliGliAi"; } } return 0; } 简简单单
新人
#include<iostream> using namespace std; int main() { int x,n; cin>>x>>n; if(x1 && n1){ cout<<"ZhuFan"; }else if(x1 && n2){ cout<<"HeZhou"; }else if(x2 && n1){ cout<<"XiaoPingGuo"; }else if(x2 && n2){ cout<<"DongFengPo"; }else if(x2 && n3){ cout<<"GiliGliAi"; } }
精神小伙
#include<iostream> using namespace std; int main() { int a,b; cin >> a; cin >> b; }
138****3765
金杰錱
#include <iostream> #include <bits/stdc++.h> using namespace std; int main(){ int N,X; cin>>N>>X; while(true){ if(N1){ if(X1){ cout<<"ZhuFan"; return 0; } else{ cout<<"HeZhou"; return 0; } } else if(N2){ if(X1){ cout<<"XiaoPingGuo"; return 0; } else if(X==2){ cout<<"DongFengPo"; return 0; } else{ cout<<"GiliGliAi"; return 0; } } } return 0; }
1*5
#include <iostream> using namespace std; int main() { int a,b; cin >> a >> b; if (a == 1){ if (b == 1){ cout << "ZhuFan"; }else if (b == 2){ cout << "HeZhou"; } }else if (a == 2){ if (b == 1){ cout << "XiaoPingGuo"; }else if (b == 2){ cout << "DongFengPo"; }else if (b == 3){ cout << "GiliGliAi"; } } return 0; }
199****3725
枫岚
python题解如下(不会再看) n = int(input()) m = int(input()) if n1 : if m1: print("ZhuFan") if n2 : if m1: print("XiaoPingGuo")
蕾丝妖艳小蟑螂
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a; if(a1)cin>>b; if(b1)cout<<"ZhuFan"; if(b2)cout<<"HeZhou"; if(a2)cin>>c; if(c1)cout<<"XiaoPingGuo"; if(c2)cout<<"DongFengPo"; if(c==3)cout<<"GiliGliAi"; return 0; }
魔鬼蛋
#include<bits/stdc++.h> using namespace std; int main(){ int num,n1,n2; cin >>num; if(num1){ cin >>n1; if(n11){ cout <<"ZhuFan"; }else if(n12){ cout <<"HeZhou"; } }else if(num2){ cin >>n2; if(n21){ cout <<"XiaoPingGuo"; }else if(n22){ cout <<"DongFengPo"; }else if(n2==3){ cout <<"GiliGliAi"; } } return 0; }
139****5700
#include<iostream> using namespace std; int main(){ int a,b,c,d,e; cin>>a; if(a1) cin>>b; else if(a2) cin>>c; if(b1) cout<<"ZhuFan"; else if(b2) cout<<"HeZhou"; if(c1) cout<<"XiaoPingGuo"; else if(c2) cout<<"DongFengPo"; else if(c==3) cout<<"GiliGliAi"; }
00
共38条