16 条题解

  • 1
    @ 2022-1-3 10:17:47
    #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;
    	cin >>a >>b;
    	if(a + b > 10)
    	{
    		cout <<a * b;
    	}
    	else
    	{
    		cout <<a - b;
    	}
    }
    
    • 0
      @ 2024-6-23 22:01:53
      #include<iostream>
      using namespace std;
      int main ()
      {
      	int a,b;
      	cin >> a >> b;
      	if(a + b > 10)
      	{
      		cout << a * b;
      	}
      	else
      	{
      		cout << a - b;
      	}
       } 
      
      • 0
        @ 2024-5-29 20:23:28

        #include<iostream> using namespace std; int main() { int a,b; cin>>a>>b; if(a+b>10){cout<<a*b; }else{cout<<a-b; } return 0;

        1. }
        • 0
          @ 2024-4-25 21:42:42

          #include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; if(a+b>10){ cout<<a*b; } else{ cout<<a-b; } return 0; }

          • 0
            @ 2024-4-25 17:22:28

            #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; cin >>a >>b; if(a + b > 10) { cout <<a * b; } else { cout <<a - b; } }

            • 0
              @ 2023-4-10 21:09:35
              #include<iostream>
              using namespace std;
              int main()
              {
                int a,b;
                cin>>a>>b;
                if(a+b>10)
                  cout<<a*b;
              else
                cout<<a-b;
                return 0;
              }
              
              • 0
                #include<iostream>
                
                using namespace std;
                
                int main()
                {
                int x,y;
                
                cin>>x>>y;
                
                if(x+y>10){
                
                	cout<<x*y;
                
                }else{
                
                	cout<<x-y;
                
                }
                
                • 0
                  @ 2023-4-4 21:45:39

                  #include<bits/stdc++.h> using namespace std; int main() { long a,b; cin>>a>>b; if(a+b>10) cout<<a*b; else cout<<a-b; return 0; }

                  • 0
                    @ 2023-4-4 21:45:35
                    • 0
                      @ 2023-3-21 21:23:26

                      #include<bits/stdc++.h> using namespace std; int main(){

                      int a,b;
                      cin>>a;
                      cin>>b;
                      if(a+b>10){
                      	cout<<a*b;
                      }
                      else
                      {
                      	cout<<a-b;
                      }
                      
                      return 0;
                      

                      }

                      • 0
                        @ 2023-3-19 21:31:23

                        #include <stdio.h> #include <iostream> using namespace std; int main() { int n; 0 <= n <= 25; cin >> n; if (n>=0 && n<=3) { cout<<"infant"; } else if (n>=4 && n<=12) { cout<<"child";

                        }
                        else if (n>=13 && n<=18)
                        {
                        	cout<<"youngster";
                        }
                        else if (n>=19 && n<=25)
                        {
                        	cout<<"youth";
                        }
                        

                        }

                        • 0
                          @ 2023-3-15 20:05:40

                          #include <stdio.h> #include <iostream> using namespace std; int main(){ int x,y;

                          cin>>x>>y;

                          if(x+y>10){

                          cout<<x*y;
                          

                          }else{

                          cout<<x-y;
                          

                          } }

                          • 0
                            @ 2022-7-4 17:06:22

                            #include <stdio.h> #include <iostream> #include <math.h> using namespace std; int main() { int a,b; cin >> a >> b; if(a+b>=10) { cout << a*b; } else if(a+b<=10) { cout << a-b; } }

                            • 0
                              @ 2022-7-2 21:54:32

                              //陈儒乐//

                              #include <stdio.h>

                              #include <iostream>

                              using namespace std;

                              int main()

                              {

                              int a,b;
                              
                              cin >> a >> b;
                              
                              if(a+b>10)
                              
                              {
                              
                                  cout << a*b ;
                              
                              }
                              
                              else if(a+b<=10)
                              
                              {
                              
                                  cout << a-b;
                              
                              }
                              

                              }

                              • 0
                                @ 2022-7-2 18:55:23

                                #include<stdio.h> #include<iostream> using namespace std; int main() { long long a,b; cin>>a>>b; long long c=a+b; if(c>10) { cout<<a*b<<endl; }else { cout<<a-b<<endl; } }

                                • 0
                                  @ 2022-3-30 20:55:52

                                  #include<iostream>

                                  using namespace std;

                                  int main(){

                                  int x,y;
                                  
                                  cin>>x>>y;
                                  
                                  if(x+y>10){
                                  
                                  	cout<<x*y;
                                  
                                  }else{
                                  
                                  	cout<<x-y;
                                  
                                  }
                                  

                                  }

                                  • 1

                                  信息

                                  ID
                                  885
                                  时间
                                  1000ms
                                  内存
                                  128MiB
                                  难度
                                  2
                                  标签
                                  递交数
                                  528
                                  已通过
                                  330
                                  上传者