24 条题解

  • 2
    @ 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;
    }
    
    • 0
      @ 2024-8-6 16:10:14

      #include<iostream> #include<iomanip> #include<cmath> using namespace std; 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; }

      • 0
        @ 2024-4-25 17:24:11

        #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 << ab; } else if(b+c > 5) { cout <<cd; } else if(d<10 || a*c>100) { cout<<"Yes"; } else { cout<<"No"; } return 0; }

        • 0
          @ 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;
          }
          
          • 0
            @ 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";
            	}
            
            }
            
            	
            
            
            
            
            
            
            
            
            
            
            
            • -1
              @ 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;
              }
              
              • -1
                @ 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;
                }
                
                • -1
                  @ 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;
                  }
                  
                  • -1
                    @ 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;
                    }
                    
                    • -1
                      @ 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;
                      }
                      
                      • -1
                        @ 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;
                        }
                        
                        • -1
                          @ 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;
                          }
                          
                          • -1
                            @ 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;
                            }
                            
                            • -1
                              @ 2023-3-15 20:06:23
                              #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;
                              }
                              
                              • -1
                                @ 2023-3-15 20:06:20
                                #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;
                                }
                                
                                • -1
                                  @ 2023-3-15 20:03:56

                                  #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<<ab; } else if(b+c>5) { cout<<cd;

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

                                  }

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

                                    #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<<ab; } else if(b+c>5) { cout<<cd;

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

                                    }

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

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

                                      • -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;
                                        

                                        }

                                        信息

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