15 条题解

  • 1
    @ 2025-12-20 22:16:34
    #include<iostream>
    #include<cstdio>
    #include<cctype>
    #include<string.h>
    #include<math.h>
    #include<cmath>
    #include<algorithm>
    #include<iomanip>
    using namespace std;
    double a,b;
    int main()
    {
    	double n;
    	cin>>n;
    	a=n/3.0+50;
    	b=n/1.2;
    	if(a>b)
    	{
    		cout<<"Walk";
    	}
    	else if(a<b)
    	{
    		cout<<"Bike";
    	}
    	else
    	{
    		cout<<"All";
    	}
    	return 0;
    }
    
    
    
    • 1
      @ 2025-12-6 19:36:10
      #include<iostream>
      using namespace std;
      int main(){
      	double a;
      	cin>>a;
      	if( 50+a/3 < a/1.2 ){
      		cout<<"Bike";
      	
      	}else if(50+a/3 > a/1.2){
      		cout<<"Walk";
      	}
      	else if(50+a/3 == a/1.2){
      		cout<<"All";
      	};
      }
      
      
      • 1
        @ 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;
        }
        
        • 1
          @ 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";
          	}
          }
          
          • 0
            @ 2025-11-7 22:03:05

            包AC

            #include<bits/stdc++.h>/*pe*/
            using namespace std;
            double a,a1,a2;
            int main(){
            	cin >> a;
            	a1=a/3.0/*ng*/+50;
            	a2=a/1.2;
            	if(a1>a2) cout << "Walk";
            	else if(a1<a2) cout << "Bike";
            	else cout << "All";
            	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;
              }
              
              • -1
                @ 2025-7-8 16:46:17

                #include using namespace std; int main() {

                float s;
                cin >> s;
                float a,b;
                a = 50 + s / 3.0;
                b = s / 1.2;
                if (b==a)
                {
                	cout <<"All";
                }
                else if (a> b)
                {
                	cout <<"Walk" ;
                }
                else if(a < b)
                {
                	cout <<"Bike";
                }
                return 0;
                

                }

                • -1
                  @ 2025-4-19 21:59:08

                  #include <bits/stdc++.h> #include #include #include #include <math.h> #include #include 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; }

                  • -1
                    @ 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; }

                    • -1
                      @ 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";
                      }
                      
                    • -1
                      @ 2022-3-30 20:45:58

                      #include

                      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";
                      
                      	}
                      
                      }
                      

                      }

                      • -2
                        @ 2024-5-29 20:26:18

                        #include #include #include #include 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; }

                        • -2
                          @ 2024-5-29 20:12:13

                          #include

                          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"; }
                          • -2
                            @ 2023-4-10 21:07:43
                            #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";
                            }
                            
                            
                            • -3
                              @ 2022-7-2 18:46:41

                              #include<stdio.h> #include 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
                              标签
                              递交数
                              2379
                              已通过
                              545
                              上传者