#include iostream#include iomanip#include cmathusing namespace std;int main(){int x,y;cinxy;if(x=-1x=1y=-1y=1){cout"yes";}else{cout"no";}return 0;}
点我呐
#include iostream#include iomanip#include cmathusing namespace std;int main(){int a,b;char c;cinabc;switch(c){case '+':couta+b;break;case '-':couta-b;break;case '*':couta*b;break;case '/':if(b==0) cout"Divided by zero!";else couta/b;break;d
点我呐
#include iostream#include iomanip#include cmathusing namespace std;int main(){coutfixedsetprecision(5);double a,b,c;cinabc;double x=b*b-4*a*c;if(x0) cout"No answer!";else if(x==0){cout"x1=x2="-b/(2*a);}else{double x1=(-b+sqrt(x))/(2*a);doub
点我呐
#include iostream#include iomanip#include cmathusing namespace std;int main(){int a;cina;if(a%2==0){cout"yes";}return 0;}
点我呐
#include iostream#include iomanip#include cmathusing namespace std;int main(){int a;cina;if(a1a100){cout"yes";}return 0;}
点我呐
#include iostream#include iomanip#include cmathusing namespace std;int main(){int a,b,c;cinabc;int t;if(ab){t=a;a=b;b=t;}if(ac){t=a;a=c;c=t;}if(cb){t=c;c=b;b=t;}couta" "b" "c;return 0;}
点我呐
#include iostream#include iomanip#include cmathusing namespace std;int main(){double t;cint;if(t=25t=30){cout"ok!";}else {cout"no!";}return 0;}
点我呐
#include iostream#include iomanip#include cmathusing namespace std;int main(){double g;cing;double money=0;if(g20){money=g*1.98;}else{money=g*1.68;}coutfixedsetprecision(2)money;return 0;}
点我呐
#include iostream#include iomanip#include cmathusing namespace std;int main(){double a,b,c;cinabc;double t;if(ab){t=a;a=b;b=t;}if(ac){t=a;a=c;c=t;}couta;return 0;}
点我呐
#include iostreamusing namespace std;int main(){ int n; cinn; if(n0){ cout"positive"; } else if(n0){ cout"negative"; } else{ cout"zero"; } return 0;}
点我呐