竞赛
考级
#include <bits/stdc++.h> using namespace std; int main(){ int a,b; cin >> a; cin >> b; if(a == 1){ if(b == 1){ cout << "ZhuFan"; }else{ cout << "HeZhou"; } }else{ if(b == 1){ cout << "XiaoPingGuo"; }else if(b == 2){ cout << "DongFengPo"; }else{ cout << "GiliGliAi"; } }
no
#include <iostream> using namespace std; int main() { int n, x; cin >> n; if (n == 1) { cin >> x; if (x == 1) { cout << "ZhuFan"; } else if (x == 2) { cout << "HeZhou"; } } else if (n == 2) { cin >> x; if (x == 1) { cout << "XiaoPingGuo"; } else if (x == 2) { cout << "DongFengPo"; } else if (x == 3) { cout << "GiliGliAi"; } } return 0; }
葬仪_亡蝶舞
#include <iostream> using namespace std; int main(){ int a,b; cin>>a; cin>>b; if(a1){ if(b1){ cout<<"ZhuFan"; } else{ cout<<"HeZhou"; } } else{ if(b1){ cout<<"XiaoPingGuo"; } else if(b2){ cout<<"DongFengPo"; } else{ cout<<"GiliGliAi"; } } return 0; }
༺ཌༀ薛博文ༀད༻
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a1){if(b1){cout<<"ZhuFan";}else{cout<<"HeZhou";}} if(a2){if(b1){cout<<"XiaoPingGuo";}else if(b==2){cout<<"DongFengPo";}else{cout<<"GiliGliAi";}} return 0; }
shen.Zephyrial
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"; } }
精神小伙
打表,一个if都不用。时间0ms。
郭玄贺
#include <iostream> using namespace std; int main(){ int n; int x; cin>>n>>x; if(n1){ switch(x){ case 1:cout<<"ZhuFan";break; case 2:cout<<"HeZhou";break; } }else if(n2){ switch(x){ case 1:cout<<"XiaoPingGuo";break; case 2:cout<<"DongFengPo";break; case 3:cout<<"GiliGliAi";break; } } return 0; }
Herrick——喧嚣
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
共50条