竞赛
考级
Minecraft爱好者
各位快去学学三目运算符吧真的好用()
C+Mouger+xhx
136****4819
programmerGYM
代码献上 如果不对可能输出的是中英文的问题,可以参考一下题目中的和代码中的。
纳西妲
#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 <iostream> using namespace std; int main(){ int n,x; cin >> n >> x ; if(n==1){ if( x == 1 && n == 1){ cout << "ZhuFan"; }else if (x == 2 && n == 1){ cout << "HeZhou"; } } if(n == 2){ if(n == 2 && x == 1){ cout << "XiaoPingGuo"; }else if(n == 2 && x == 2){ cout << "DongFengPo"; }else if(n == 2 && x == 3){ cout << "GiliGliAi"; } } }
AGGO
#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"; } } }
MINECRAFT
金杰錱
#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; } 简简单单
zzh张施陈
#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"; } }
精神小伙
a = int(input()) b = int(input()) if a == 1: if b == 1: print("ZhuFan") elif b == 2: print("HeZhou") else: print("输入不对!") elif a == 2: if b == 1: print("XiaoPingGuo") elif b == 2: print("DongFengPo") elif b == 3: print("GiliGliAi") else: print("输入不对!") else: print("输入不对!")
199****3147
#include<iostream> using namespace std; int main() { int a,b; cin >> a; cin >> b; }
138****3765
枫岚
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> #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(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<bits/stdc++.h> using namespace std; int main(){ int n,m; cin >> n>> m; if(n1) { if(m1) { cout << "ZhuFan"; } else if(m2) { cout << "HeZhou"; } } if(n2) { if(m1) { cout << "XiaoPingGuo"; } else if(m2) { cout << "DongFengPo"; } else if(m==3) { cout << "GiliGliAi"; } } return 0; }
131****0982
共43条