#include iostream#include iomanip#include cmathusing namespace std;int main(){//时间=路程/速度+[50]double t1,t2;int s;cins;t1=s/1.2;t2=s/3.0+50;if(t1t2) cout"Walk";else if(t1==t2) cout"All";else cout"Bike";return 0;}
点我呐
#include iostream#include iomanip#include cmathusing namespace std;int main(){double x;cinx;double y;if(0=xx5){y=-x+2.5;}else if(5=xx10){y=2-1.5*(x-3)*(x-3);}else{y=x/2-1.5;}coutfixedsetprecision(3)y;return 0;}
点我呐
#include iostream#include iomanip#include cmathusing namespace std;int main(){int a=8;int n;char c;cinnc;if(n1000) {int b=(n-1000)/500;if((n-1000)%500!=0) b+=1;a+=4*b;}if(c=='y') a+=5;couta;return 0;}
点我呐
#include iostream#include iomanip#include cmathusing namespace std;int main(){int a,b,c;cinabc;if(ab) a=b;if(ac) a=c;couta;return 0;}
点我呐
#include iostream#include iomanip#include cmathusing namespace std;int main(){int a,b,c;cinabc;if(a+bca+cbb+ca){cout"yes";}else{cout"no";}return 0;}
点我呐
#include iostream#include iomanip#include cmathusing namespace std;int main(){int a;cina;if(a%4==0a%100!=0||a%400==0){cout"Y";}else{cout"N";}return 0;}
点我呐
#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 queueusing namespace std;struct node{char c;node *left,...
#include iostreamusing namespace std;int n,m;long long a[100050];long long l=0,r=...