5 条题解

  • 2
    @ 2023-3-20 21:16:43
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n;
        cin >> n;
        if(n > 0)
        {
            cout << n << ">" << 0;
        }
        else if(n < 0)
        {
            cout << n << "<" << 0;
        }
        else
        {
            cout << "0=0";
        }
        return 0;
    }
    
    • 1
      @ 2023-9-20 21:22:46
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
          int c;
          cin >> c;
          if(c > 0)
          {
              cout << c << ">" << 0;
          }
          else if(c < 0)
          {
              cout << c << "<" << 0;
          }
          else
          {
              cout << "0=0";
          }
          
          return 0;
      }//A
      
      • 1
        @ 2022-12-29 19:55:35
        #include <iostream>
        using namespace std;
        int main()
        {
        	int n;
        	cin >> n;
        	if (n > 0)
                cout << n << ">" << 0;
        	else if (n < 0)
                cout << n << "<" << 0;
        	else
                cout << n << "=" << 0;
        	return 0;
        }
        
        • 0
          @ 2023-4-5 17:31:28
          #include<bits/stdc++.h>
          using namespace std;
          int main()
          {
              int x;
              cin>>x;
              if (x>0)
                  cout<<x<<">0";
              else if (x==0)
                  cout<<x<<"=0";
              else
                  cout<<x<<"<0";
              return 0;
          }
          • 0
            @ 2023-1-15 11:19:51
            #include <iostream>//hetao3097453
            using namespace std;
            int main()
            {
                int x;
                cin >> x;
                if(x > 0)
                {
                    cout << x << ">0" << endl;
                }
                else if(x < 0)
                {
                    cout << x << "<0" << endl;
                }
                else
                {
                    cout << "0=0" << endl;
                }
                return 0;
            }
            
            
            • 1

            信息

            ID
            635
            时间
            1000ms
            内存
            16MiB
            难度
            2
            标签
            递交数
            147
            已通过
            94
            上传者