72 条题解

  • 0
    @ 2023-11-21 19:21:14

    👎

    • 0
      @ 2023-10-5 11:37:56

      不会吧,不会吧,不会有人这么简单的代码都不会吧😄

      #include <iostream>
      using namespace std;
      int main()
      {
          int a,b;
          cin >> a >> b;
          if (a == b)
          {
              cout << "Y" << endl;
          }
          else
          {
              cout << "N" << endl;
          }
          cout << a * b;
          return 0;
      }
      
      • 0
        @ 2023-8-28 7:45:04
        ###一个简单的判断,上代码!### 
        #include <bits/stdc++.h>//万能开头
        using namespace std;
        int x,z;//定义变量
        int main()
        {
            cin>>x>>z;//输入变量
            if(x==z)//如果两边一样长(正方形)
            {
                cout<<"Y"<<endl;
            }  
            else
            {
                cout<<"N"<<endl;
            }
            cout<<x*z;//输出面积
            return 0;
        }
        //一手交赞,一手交货(代码)
        
        
        
        
        
        
        //核桃hetao1609095编程
        //水印
        
        • 0
          @ 2023-8-5 10:30:35

          LTC


          #include<iostream>
          using namespace std;
          int main()
          {           //T            T
              int a,b;//|____________|
              cin>>a>>b;//////////////
              if(a==b)
              {
                  cout<<"Y"<<endl;
              }
              else
              {
                  cout<<"N"<<endl;
              }
              cout<<a*b;
              return 0;
          }
          
        • 0
          @ 2023-8-4 17:55:53
          #include <bits/stdc++.h>//头文件
          using namespace std;//使用命民空间
          int main()//主函数
          {
              int x,y;//定义变量x和y
              cin>>x>>y;//输入变量x和y
              if(x==y)//条件判断:条件成立
              {
                  cout<<"Y"<<endl;//输出Y(Yes)
              }
              else//条件判断:条件不成立
              {
                  cout<<"Y"<<endl;//输出n(no)
              }
              cout<<x*y;//输出x*y #正四边形=长(x)*宽(y)
              return 0;//了当,直接return 0
          }
          
          • 0
            @ 2023-7-8 13:19:40
            #include <bits/stdc++.h>
                using namespace std;
                int main()
                {
                    int a,b;
                    cin >> a >> b;
                    if (a==b)//判断条件
                    {
                        cout <<"Y"<<endl;//注意引号
                    }
                    else
                    {
                        cout <<"N"<<endl;
                    }
                    cout << a*b;
                    return 0;
                }
            
            • 0
              @ 2023-7-2 20:52:53

              #include <bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; if(a==b) { cout<<"Y"<<endl; } else { cout<<"N"<<endl; } cout<<a*b<<endl; return 0; }

              • 0
                @ 2023-6-2 22:29:09
                ```#include <iostream>
                
                ````using namespace std;
                
                
                ```int main()
                
                
                ```{
                  
                
                ```  int a;
                    
                
                ```int b;
                    
                
                ```cin >> a >> b;
                  
                
                ```  if (a == b)
                   
                
                ``` {
                 ``       cout << "Y" << endl << a*b;
                   
                
                ``` }
                    else
                   
                
                ``` {
                 
                
                ```       cout << "N" <<endl << a*b;
                 
                
                ```   }
                   
                
                ``` return 0;
                
                
                ```}
                
                • 0
                  @ 2023-5-21 18:42:44

                  #include <iostream> using namespace std;

                  int main() { int a, b; cin >> a >> b;

                  int area = a * b; cout << (a == b ? "Y" : "N") << endl; cout << area << endl;

                  return 0;

                  }

                  • 0
                    @ 2023-5-3 16:21:03
                    #include <iostream>
                    using namespace std;
                    int main()
                    {
                        int a,b;
                        cin>>a>>b;
                        a*=b;
                        if(a%4==0)
                        {
                            cout<<"Y"<<endl<<a;
                        }
                        else
                        {
                            cout<<"N"<<endl<<a;
                        }
                    }
                    
                    • 0
                      @ 2023-3-28 21:42:46
                      #include<bits/stdc++.h>
                      using namespace std;
                      int main()
                      {
                          int x,y;
                          cin>>x>>y;
                          if (x==y)
                              cout<<"Y"<<'\n';
                          else
                              cout<<"N"<<'\n';
                          cout<<x*y;
                          return 0;
                      }
                      
                      • 0
                        @ 2023-3-11 16:36:14
                        //这道题太简单,先判断、后输出,代码走起!
                        #include <bits/stdc++.h>
                        using namespace std;
                        int a, b;
                        int main()
                        {
                        cin >> a >> b;
                        if (a == b)
                        {
                        cout << "Y" << endl;
                        cout << a * b << endl;
                        }
                        else
                        {
                        cout << "N" << endl;
                        cout << a \* b << endl;
                        }
                        return 0;
                        }//编码不易,先点赞后抱走啊😄
                        
                        • 0
                          @ 2023-3-11 16:32:53
                          
                          

                          //这道题太简单,先判断、后输出,代码走起!

                          #include <bits/stdc++.h> using namespace std; int a, b; int main() { cin >> a >> b; if (a == b) { cout << "Y" << endl; cout << a * b << endl; } else { cout << "N" << endl; cout << a * b << endl; } return 0; }//编码不易,先点赞后抱走啊😄

                          • 0
                            @ 2023-3-11 16:31:00
                            #include <bits/stdc++.h>
                            using namespace std;
                            int a, b;
                            int main()
                            {
                            cin >> a >> b;
                            if (a == b)
                            {
                            cout << "Y" << endl;
                            cout << a * b << endl;
                            }
                            else
                            {
                            cout << "N" << endl;
                            cout << a * b << endl;
                            }
                            return 0;
                            }//编码不易,先点赞后抱走啊😄
                            
                            • 0
                              @ 2023-3-11 16:29:47
                              #include <bits/stdc++.h>
                              using namespace std;
                              int a, b;
                              int main()
                              {
                              cin >> a >> b;
                              if (a == b)
                              {
                              cout << "Y" << endl;
                              cout << a * b << endl;
                              }
                              else
                              {
                              cout << "N" << endl;
                              cout << a * b << endl;
                              }
                              return 0;
                              }//编码不易,先点赞后抱走啊😄 
                              
                              • 0
                                @ 2023-2-6 14:46:54
                                #include <bits/stdc++.h>
                                using namespace std;
                                int main()
                                {
                                    int a,b;//定义
                                    cin >> a >> b;//输入
                                    if (a==b)//是
                                    {
                                        cout << "Y" << endl << a*b;
                                    }
                                    else//不是
                                    {
                                        cout << "N" << endl << a*b;
                                    }
                                    return 0;
                                }
                                
                                • 0
                                  @ 2023-2-4 18:06:56
                                  #include <bits/stdc++.h>
                                  using namespace std;
                                  int main()
                                  {
                                      int a,b;
                                      cin >> a >> b;
                                      if (a==b)
                                      {
                                          cout <<"Y"<<endl;
                                      }
                                      else
                                      {
                                          cout <<"N"<<endl;
                                      }
                                      cout << a*b;
                                      return 0;
                                  }
                                  

                                  yinggaiduiba,我通过了

                                  • @ 2023-2-4 18:08:52

                                    万能头,更顺手一点,iostream好打一点。

                                • 0
                                  @ 2022-11-7 22:15:15
                                  #include <iostream>
                                  using namespace std;
                                  int main()
                                  {
                                      int n,m;
                                      cin >> n >> m;
                                      if(n == m)
                                      {
                                          cout << "Y" << endl << n * m;
                                      }
                                      else
                                      {
                                          cout << "N" << endl << n * m;
                                      }
                                      return 0;
                                  }
                                  
                                  • 0
                                    @ 2022-9-4 18:23:10

                                    这道题一样灰常的简单。只要:
                                    定义变量
                                    选择判断
                                    打印判断结果(相不相等?)
                                    打印变量的积即可。

                                    #include<bits/stdc++.h>
                                    using namespace std;
                                    int main()
                                    {
                                        int x, y;
                                        char z = 'N';
                                        cin >> x >> y;
                                        if (x == y) z = ' Y ';
                                        cout << z << endl << x * y << endl;
                                        re turn 0; 
                                    }
                                    

                                    小盆友们,您学会了吗?

                                    • @ 2022-9-4 18:26:55

                                      复制?
                                      代码不易,先点赞,再复制吧!
                                      (不要忘了删倒数第二行的空格!)

                                    • @ 2023-8-8 19:53:58

                                      欧克,赞赞已上交

                                    • @ 2023-8-8 19:58:46

                                      @

                                      0 Wrong Answer

                                      foo.cc:8:21: warning: multi-character character constant [-Wmultichar]
                                          8 |     if (x == y) z = ' Y ';
                                            |                     ^~~~~
                                      foo.cc: In function 'int main()':
                                      foo.cc:8:21: warning: overflow in conversion from 'int' to 'char' changes value from '2119968' to '' '' [-Woverflow]
                                      
                                      # 状态分数 耗时 内存占用
                                      --------------------------------------------------------------
                                      #1 Wrong Answer 0读取到 ,应为 Y。 1ms 376 KiB
                                      -
                                      识别错误,我要退货,还有差评T~T
                                  • 0
                                    @ 2022-8-24 10:22:30
                                    #include<bits/stdc++.h>
                                    using namespace std;
                                    int main()
                                    {
                                        int a, b;
                                        cin >> a >> b;
                                        if(a == b)
                                        {
                                            cout << "Y" << endl;
                                        }
                                        else
                                        {
                                            cout << "N" << endl;
                                        }
                                        cout << a * b;
                                        return 0;
                                    }
                                    

                                    信息

                                    ID
                                    652
                                    时间
                                    1000ms
                                    内存
                                    16MiB
                                    难度
                                    4
                                    标签
                                    递交数
                                    8896
                                    已通过
                                    4399
                                    上传者