竞赛
考级
法兰西玫瑰
蒟蒻一只🉑🉑🉑
半边莲,莲半边,半边莲长在莲山边
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,x,y; cin >> a >> b >> x >> y; switch(a+b+x+y){ case 0: cout << "0"; break; case 1: cout << "1"; break; case 2: cout << "2"; break; case 3: cout << "1"; break; case 4: cout << "0"; break; } }
shell
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; cin >> a >> b >> c >> d; switch(a+b+c+d){ case 0: cout << "0"; break; case 1: cout << "1"; break; case 2: cout << "2"; break; case 3: cout << "1"; break; case 4: cout << "0"; break; } return 0; }
134 3697 5676(8)
#include <bits/stdc++.h> using namespace std; int main(){ int a[4],sum=0; for(int i=0;i<4;i++){ cin>>a[i]; sum+=a[i]; } if(sum0 || sum4){ cout<<0; }else if(sum1 || sum3){ cout<<1; }else if(sum==2){ cout<<2; } return 0; }
倒车请故意
6.
~Lyney~
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d,e=0;cin>>a>>b>>c>>d; if(a+b+c+d3){ e=1; }else if(a+b+c+d2){ e=2; }else if(a+b+c+d4){ e=0; }else if(a+b+c+d1){ e=1; }cout<<e; return 0; }
Null