24 条题解

  • 1
    @ 2025-3-2 10:24:49
    
    #include<bits/stdc++.h>
    using namespace std;
    #define LL long long
    const int N = 1e5 + 10;
    const int INF = 0x3f3f3f3f;
    int a , b , c , d;
    int main()
    {
    	cin >> a >> b >> c >> d;
    	if( a + b > 10 )
    	{
    		cout << a * b;
    	}
    	else if( b + c > 5 )
    	{
    		cout << c * d;
    	}
    	else if( d < 10 || a * c > 100 ) 
    	{
    		cout << "Yes";
    	}
    	else
    	{
    		cout << "No";
    	}
    	return 0;
    }
    //菜鸟驿站
    //老六专属
    
    
    • @ 2025-3-2 10:28:44

      包对代码!!! 一定AC 不能抄袭,抄了是狗

  • 0
    @ 2022-1-3 11:30:54
    #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()
    {	
    	int a,b,c,d;
    	cin >>a >>b >>c >>d;
    	if(a+b>10)
    	{
    		cout << a*b;
    	}
    	else if(b+c > 5)
    	{
    		cout <<c*d;
    	}
    	else if(d<10 || a*c>100)
    	{
    		cout<<"Yes";
    	}
    	else
    	{
    		cout<<"No";
    	}
    	return 0;
    }
    
    • -2
      @ 2024-4-25 17:24:11

      #include #include <math.h> #include #include <stdio.h> #include #include #include #include <string.h> #include using namespace std; #define LL long long const int N = 1e5 + 10; const int INF = 0x3f3f3f3f; int main() { int a,b,c,d; cin >>a >>b >>c >>d; if(a+b>10) { cout << ab; } else if(b+c > 5) { cout <<cd; } else if(d<10 || a*c>100) { cout<<"Yes"; } else { cout<<"No"; } return 0; }

      • -2
        @ 2023-8-23 18:41:02
        #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()
        {	
        	int b,c,d;
            char a="你是猪";
        	cin >>b >>c >>d;
        	if(a+b>10)
        	{
        		cout << a*b<<"你是猪";
        	}
        	else if(b+c > 5)
        	{
        		cout <<c*d<<"你是猪";
        	}
        	else if(d<10 || a*c>100)
        	{
        		cout<<"Yes";
        	}
        	else
        	{
        		cout<<"No";
        	}
        	return 0;
        }
        
        • -2
          @ 2023-3-15 20:22:20

          #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d;

          cin>>a>>b>>c>>d;
          
          if(a+b>10){
          	cout<<a*b;
          }
          else if(b+c>5){
          	cout<<c*d;
          }
          else if(d<10 || a*c>100){
          	cout<<"Yes";
          }
          else
          {
          	cout<<"No";
          }
          
          
          return 0;
          

          }

          • -2
            @ 2023-3-15 20:03:21

            #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;

            }
            else if(d<10 || a*c > 100)
            {
            	cout<<"Yes";
            }
            else
            {
            	cout<<"No";
            }
            

            }

            • -2
              @ 2022-3-30 21:06:42

              #include

              using namespace std;

              int main(){

              int a,b,c,d;
              
              cin>>a>>b>>c>>d;
              
              if(a+b>10){
              
              	cout<<a*b;
              
              }else{
              
              	if(b+c>5){
              
              		cout<<c*d;
              
              	}else{
              
              		if(d<10||a*c>100){
              
              			cout<<"Yes";
              		
                      }else{
              
              			cout<<"No";
              
              		}
              
              	}
              
              }
              

              }

              • -2
                @ 2022-1-3 11:30:24
                #include <stdio.h>
                #include <iostream>
                using namespace std;
                int main()
                {
                	int a,b,c,d;
                	cin >> a >> b >> c >> d;
                	if (a+b>10)
                	{
                		cout<<a*b;
                	}
                	else if(b+c>5)
                	{
                		cout<<c*d;
                
                	}
                	else if(d<10 || a*c > 100)
                	{
                		cout<<"Yes";
                	}
                	else
                	{
                		cout<<"No";
                	}
                
                }
                
                	
                
                
                
                
                
                
                
                
                
                
                
                • -2
                  @ 2021-10-19 12:54:04
                  1. a,b,c,d=map(int,input().split()) if a+b>10: print(ab) elif b+c>5: print(cd) elif d<10 or ac>100: print('Yes') elif d>=10 or ac<=100: print('No')
                  • -3
                    @ 2023-4-4 21:52:05

                    #include<bits/stdc++.h> using namespace std; int main() { int a,b,c,d; cin>>a>>b>>c>>d; if(a+b>10) cout<<ab; else if(b+c>5) cout<<cd; else if(d<10||a*c>100) cout<<"Yes"; else cout<<"No"; return 0; }

                  • -3
                    @ 2023-3-15 20:08:16

                    #include #include using namespace std; int a,b,c,d; int main(void){ cin>>a>>b>>c>>d; if (a+b>10){ cout << ab; } else if (b+c>5){ cout << cd; } else if (d<10||a*c>100){ cout << "Yes"; } else { cout << "No"; } return 0; }

                    • [ ] 1. 1.
                    • -3
                      @ 2023-3-15 20:07:38

                      #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;

                      }
                      else if(d<10 || a*c > 100)
                      {
                      	cout<<"Yes";
                      }
                      else
                      {
                      	cout<<"No";
                      }
                        return 0;
                      

                      } #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;

                      }
                      else if(d<10 || a*c > 100)
                      {
                      	cout<<"Yes";
                      }
                      else
                      {
                      	cout<<"No";
                      }
                        return 0;
                      

                      } #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;

                      }
                      else if(d<10 || a*c > 100)
                      {
                      	cout<<"Yes";
                      }
                      else
                      {
                      	cout<<"No";
                      }
                        return 0;
                      

                      } #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;

                      }
                      else if(d<10 || a*c > 100)
                      {
                      	cout<<"Yes";
                      }
                      else
                      {
                      	cout<<"No";
                      }
                        return 0;
                      

                      } #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;

                      }
                      else if(d<10 || a*c > 100)
                      {
                      	cout<<"Yes";
                      }
                      else
                      {
                      	cout<<"No";
                      }
                        return 0;
                      

                      } #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;

                      }
                      else if(d<10 || a*c > 100)
                      {
                      	cout<<"Yes";
                      }
                      else
                      {
                      	cout<<"No";
                      }
                        return 0;
                      

                      } #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;

                      }
                      else if(d<10 || a*c > 100)
                      {
                      	cout<<"Yes";
                      }
                      else
                      {
                      	cout<<"No";
                      }
                        return 0;
                      

                      } #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;

                      }
                      else if(d<10 || a*c > 100)
                      {
                      	cout<<"Yes";
                      }
                      else
                      {
                      	cout<<"No";
                      }
                        return 0;
                      

                      } #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;

                      }
                      else if(d<10 || a*c > 100)
                      {
                      	cout<<"Yes";
                      }
                      else
                      {
                      	cout<<"No";
                      }
                        return 0;
                      

                      } #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;

                      }
                      else if(d<10 || a*c > 100)
                      {
                      	cout<<"Yes";
                      }
                      else
                      {
                      	cout<<"No";
                      }
                        return 0;
                      

                      } #include <stdio.h> #include using namespace std; int main() { int a,b,c,d; cin >> a >> b >> c >> d; if (a+b>10) { cout<<ab; } else if(b+c>5) { cout<<cd;

                      }
                      else if(d<10 || a*c > 100)
                      {
                      	cout<<"Yes";
                      }
                      else
                      {
                      	cout<<"No";
                      }
                        return 0;
                      

                      }

                      • -3
                        @ 2023-3-15 20:06:52
                        #include <stdio.h>
                        #include <iostream>
                        using namespace std;
                        int main()
                        {
                        	int a,b,c,d;
                        	cin >> a >> b >> c >> d;
                        	if (a+b>10)
                        	{
                        		cout<<a*b;
                        	}
                        	else if(b+c>5)
                        	{
                        		cout<<c*d;
                        
                        	}
                        	else if(d<10 || a*c > 100)
                        	{
                        		cout<<"Yes";
                        	}
                        	else
                        	{
                        		cout<<"No";
                        	}
                              return 0;
                        }
                        
                        • -3
                          @ 2023-3-15 20:06:47
                          #include <stdio.h>
                          #include <iostream>
                          using namespace std;
                          int main()
                          {
                          	int a,b,c,d;
                          	cin >> a >> b >> c >> d;
                          	if (a+b>10)
                          	{
                          		cout<<a*b;
                          	}
                          	else if(b+c>5)
                          	{
                          		cout<<c*d;
                          
                          	}
                          	else if(d<10 || a*c > 100)
                          	{
                          		cout<<"Yes";
                          	}
                          	else
                          	{
                          		cout<<"No";
                          	}
                                return 0;
                          }
                          
                          • -3
                            @ 2023-3-15 20:06:44
                            #include <stdio.h>
                            #include <iostream>
                            using namespace std;
                            int main()
                            {
                            	int a,b,c,d;
                            	cin >> a >> b >> c >> d;
                            	if (a+b>10)
                            	{
                            		cout<<a*b;
                            	}
                            	else if(b+c>5)
                            	{
                            		cout<<c*d;
                            
                            	}
                            	else if(d<10 || a*c > 100)
                            	{
                            		cout<<"Yes";
                            	}
                            	else
                            	{
                            		cout<<"No";
                            	}
                                  return 0;
                            }
                            
                            • -3
                              @ 2023-3-15 20:06:41
                              #include <stdio.h>
                              #include <iostream>
                              using namespace std;
                              int main()
                              {
                              	int a,b,c,d;
                              	cin >> a >> b >> c >> d;
                              	if (a+b>10)
                              	{
                              		cout<<a*b;
                              	}
                              	else if(b+c>5)
                              	{
                              		cout<<c*d;
                              
                              	}
                              	else if(d<10 || a*c > 100)
                              	{
                              		cout<<"Yes";
                              	}
                              	else
                              	{
                              		cout<<"No";
                              	}
                                    return 0;
                              }
                              
                              • -3
                                @ 2023-3-15 20:06:38
                                #include <stdio.h>
                                #include <iostream>
                                using namespace std;
                                int main()
                                {
                                	int a,b,c,d;
                                	cin >> a >> b >> c >> d;
                                	if (a+b>10)
                                	{
                                		cout<<a*b;
                                	}
                                	else if(b+c>5)
                                	{
                                		cout<<c*d;
                                
                                	}
                                	else if(d<10 || a*c > 100)
                                	{
                                		cout<<"Yes";
                                	}
                                	else
                                	{
                                		cout<<"No";
                                	}
                                      return 0;
                                }
                                
                                • -3
                                  @ 2023-3-15 20:06:34
                                  #include <stdio.h>
                                  #include <iostream>
                                  using namespace std;
                                  int main()
                                  {
                                  	int a,b,c,d;
                                  	cin >> a >> b >> c >> d;
                                  	if (a+b>10)
                                  	{
                                  		cout<<a*b;
                                  	}
                                  	else if(b+c>5)
                                  	{
                                  		cout<<c*d;
                                  
                                  	}
                                  	else if(d<10 || a*c > 100)
                                  	{
                                  		cout<<"Yes";
                                  	}
                                  	else
                                  	{
                                  		cout<<"No";
                                  	}
                                        return 0;
                                  }
                                  
                                  • -3
                                    @ 2023-3-15 20:06:31
                                    #include <stdio.h>
                                    #include <iostream>
                                    using namespace std;
                                    int main()
                                    {
                                    	int a,b,c,d;
                                    	cin >> a >> b >> c >> d;
                                    	if (a+b>10)
                                    	{
                                    		cout<<a*b;
                                    	}
                                    	else if(b+c>5)
                                    	{
                                    		cout<<c*d;
                                    
                                    	}
                                    	else if(d<10 || a*c > 100)
                                    	{
                                    		cout<<"Yes";
                                    	}
                                    	else
                                    	{
                                    		cout<<"No";
                                    	}
                                          return 0;
                                    }
                                    
                                    • -3
                                      @ 2023-3-15 20:06:27
                                      #include <stdio.h>
                                      #include <iostream>
                                      using namespace std;
                                      int main()
                                      {
                                      	int a,b,c,d;
                                      	cin >> a >> b >> c >> d;
                                      	if (a+b>10)
                                      	{
                                      		cout<<a*b;
                                      	}
                                      	else if(b+c>5)
                                      	{
                                      		cout<<c*d;
                                      
                                      	}
                                      	else if(d<10 || a*c > 100)
                                      	{
                                      		cout<<"Yes";
                                      	}
                                      	else
                                      	{
                                      		cout<<"No";
                                      	}
                                            return 0;
                                      }
                                      

                                      信息

                                      ID
                                      887
                                      时间
                                      1000ms
                                      内存
                                      128MiB
                                      难度
                                      4
                                      标签
                                      递交数
                                      653
                                      已通过
                                      306
                                      上传者