6 solutions

  • 3
    @ 2024-1-27 11:32:48
    #include <iostream>
    #include <iomanip>
    using namespace std;
    
    int main()
    {
    	int x, y;
    	cin >> x >> y;
    	if(x > y) cout << '>' << endl;
    	else if(x < y) cout << '<' << endl;
    	else if(x == y) cout << '=' << endl;
    //	cout << fixed << setprecision(3) << x * 100 << "%" << endl;
    //	return 0;
    }
    
    • 2
      @ 2024-1-27 11:32:29
      #include <iostream>
      #include <iomanip>
      using namespace std;
      
      int main()
      {
      	int x, y;
      	cin >> x >> y;
      	if(x > y) cout << '>' << endl;
      	else if(x < y) cout << '<' << endl;
      	else if(x == y) cout << '=' << endl;
      //	cout << fixed << setprecision(3) << x * 100 << "%" << endl;
      //	return 0;
      }
      
      • 0
        @ 2023-10-29 14:33:35
        #include<iostream>
        #include<cmath>
        using namespace std;
        int main()
        {
         int n,m;
         cin>>n>>m;//输入
         if(n>m)cout<<'>';//比较与输出
         else if(n==m)cout<<'=';
         else cout<<'<';
         return 0;//完结散花!
        }
        
        • -1
          @ 2024-1-26 11:56:51
          #include<bits/stdc++.h>
          #define ll long long
          using namespace std;
          int x,y;
          int main(){
          	cin>>x>>y;
          	if(x>y) cout<<'>'<<"\n";
          	if(x==y) cout<<'='<<"\n";
          	if(x<y) cout<<'<'<<"\n";
          	return 0;
          }
          
          • -2
            @ 2023-12-17 22:01:37
            #include <iostream>
            #include <iomanip>
            #include <cmath>
            using namespace std;
            int main(){
            	double x , y;
            	cin >> x >> y;
            	if(x > y){
            		cout << ">" << endl;
            	}else if(x == y){
            		cout << "=" << endl;
            	}else{
            		cout << "<" << endl;
            	}
            	return 0;
            }
            
            • -2
              @ 2023-10-28 15:41:15
              ```
              #include <iostream>
              #include <stdio.h>
              #include <iomanip>
              #include <math.h>
              using namespace std;
              const int N = 1e6 + 10;
              const int INF = 0x3f3f3f3f;
              int main()
              {
              	int x , y;
              	cin >> x >> y;
              	if( x > y )
              	{
              		cout << ">";
              	}
              	else if( x == y )
              	{
              		cout << "=";
              	}
              	else
              	{
              		cout << "<";
              	}
              	return 0;
              }
              
              
              ```
              
              ```
              • 1

              Information

              ID
              530
              Time
              1000ms
              Memory
              256MiB
              Difficulty
              2
              Tags
              # Submissions
              65
              Accepted
              42
              Uploaded By