10 条题解

  • 3
    @ 2023-10-18 21:01:56
    #include <bits/stdc++.h>
    #include <iostream>
    #include <iomanip>
    #include <cmath>
    #include <math.h>
    #include <algorithm>
    #include <cstring>
    using namespace std;
    const int N = 1e5 + 10;
    const int INF = 0x3f3f3f3f;
    int main()
    {
    	float b , r = 3.0 , w , f = 1.2 , m;
    	cin >> m;
    	b = m / r + 50;
    	w = m / f;
    	if( b > w )
    	{
    		cout << "Walk" << endl;
    	}
    	else if( b < w )
    	{
    		cout << "Bike" << endl;
    	}
    	else
    	{
    		cout << "All" << endl;
    	}
        return 0;
    }
    
    • 3
      @ 2022-8-12 21:23:44
      #include <queue>
      #include <math.h>
      #include <stack>
      #include <stdio.h>
      #include <iostream>
      #include <vector>
      #include <iomanip>
      #include <string.h>
      #include <algorithm>
      using namespace std;
      #define LL long long
      const int N = 1e5 + 10;
      const int INF = 0x3f3f3f3f;
      int main()
      {
      	float s;
      	cin >> s;
      	float q,z;
      	q = 50 + s / 3.0;
      	z = s / 1.2;
      	if (z==q)
      	{
      		cout <<"All";
      	}
      	else if (q > z)
      	{
      		cout <<"Walk" ;
      	}
      	else if(q < z)
      	{
      		cout <<"Bike";
      	}
      }
      
      • 2
        @ 2022-10-7 19:01:41
        #include<bits/stdc++.h> 
        using namespace std;
        int main(){
        	double a,b,s;
        	cin>>s;
        	a=s/1.2;
        	b=s/3.0+50;
        	if(a>b)cout<<"Bike";
        	else if(b>a)cout<<"Walk";
        	else cout<<"All";
        }
        
      • 0
        @ 2024-5-29 20:26:18

        #include<iostream> #include<cstdio> #include<iomanip> #include<cmath> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a+b>c){if (c+b>a){if(a+c>b){cout<<"yes"; }else{cout<<"no";} }else{cout<<"no";} }else{cout<<"no";} return 0; }

        • 0
          @ 2024-5-29 20:19:25
          #include <iostream>
          using namespace std;
          int main(){
              double a, t1, t2;
              cin >> a;
              t1 =a / 3.0 + 50;
              t2 =a / 1.2;
              if(t1 > t2){
                  cout << "Walk" ;
              }
          	else if(t1<t2){
                  cout << "Bike";
              }else{
                  cout << "All";
              }
              return 0;
          }
          
          • 0
            @ 2024-5-29 20:12:13

            #include<iostream>

            1. using namespace std;
              int main(){ double a,b,s; cin>>s; a=s/1.2; b=s/3.0+50; if(a>b)cout<<"Bike"; else if(b>a)cout<<"Walk"; else cout<<"All"; }
            • 0
              #include<iostream>
              using namespace std;
              int main()
              {
                  float bike,walk,n;
                  cin>>n;
                  bike=n/3.0+27+23;
                  walk=n/1.2;
                  if(bike>walk)
                  cout<<"Walk";
                  else if(bike<walk)
                  cout<<"Bike";
                  else
                  cout<<"All";
              }
              
              
              • 0
                @ 2023-4-4 21:42:48

                #include<bits/stdc++.h> using namespace std; int main() { double q,z,s; cin>>s; q=50+s/3.0; z=s/1.2; if(z==q) cout<<"All"; else if(q>z) cout<<"Walk"; else if(q<z) cout<<"Bike"; return 0; }

                • 0
                  @ 2022-3-30 20:45:58

                  #include<iostream>

                  using namespace std;

                  int main(){

                  int a,bike,bu,d;
                  
                  cin>>a;
                  
                  d=a;
                  
                  bike=50+a/3;
                  
                  bu=d/1.2;
                  
                  
                  if(bike>bu){
                  
                  	cout<<"Walk";
                  
                  }else{
                  
                  	if(bike<bu){
                  
                  		cout<<"Bike";
                  
                  	}else{
                  
                          if(Bike==Walk) cout<<"All";
                  
                  	}
                  
                  }
                  

                  }

                  • -1
                    @ 2022-7-2 18:46:41

                    #include<stdio.h> #include<iostream> using namespace std; int main() { double a; cin>>a; double b=a/3+27+23; double c=a/1.2; if(b>c) { cout<<"Walk"<<endl; } if(c>b) { cout<<"Bike"<<endl; } if(b==c) { cout<<"All"<<endl; } }

                    • 1

                    信息

                    ID
                    874
                    时间
                    1000ms
                    内存
                    128MiB
                    难度
                    7
                    标签
                    递交数
                    1642
                    已通过
                    396
                    上传者