30 条题解

  • 27
    @ 2024-2-23 9:50:10
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int x,y;
        cin>>x>>y;
        if(x>y){
        cout<<">"<<endl;
    }
        if(x<y){
        cout<<"<"<<endl;
    }
        if(x==y){
        cout<<"="<<endl;
    }
    return 0;
    }
    
    求点赞,我要饿死了
    
    • 1
      @ 2024-2-23 9:40:52

      #include <bits/stdc++.h> using namespace std; int main() { int x,y; cin>>x>>y; if(x>y){ cout<<">"<<endl; } if(x<y){ cout<<"<"<<endl; } if(x==y){ cout<<"="<<endl; } return 0; }

      • 0
        @ 2024-11-2 9:23:18
        ​#include<bits/stdc++.h>
        using namespace std;
        void solve(){
        	string s1,s2;
        	cin>>s1>>s2;//输入
            if(s1[0]=='-'&&s2[0]!='-'){//负数判断
        		cout<<'>';
        		return;
        	}
        	if(s1[0]!='-'&&s2[0]=='-'){//负数判断
        		cout<<'<';
        		return;
        	}
        	if(s1==s2){//和他一样大
        		cout<<'=';
        		return;
        	}
        	if(s1.size()>s2.size()){//判断长度
        		cout<<'>';
        		return;
        	}
        	if(s1.size()<s2.size()){//判断长度
        		cout<<'<';
        		return;
        	}
        	if(s1>s2){//大小
        		cout<<'>';
        		return;
        	}
        	cout<<'<';//其他
        	return;
        }
        int main(){
            solve();//直接执行函数
            return 0;
        }
        
        
        • 0
          @ 2024-9-13 21:30:43

          #include using namespace std; int main(){ int x,y; cin>>x>>y; if(x>y){ cout<<">"; }if(x<y){ cout<<"<"; }if(x==y){ cout<<"="; } return 0; }

          • 0
            @ 2024-3-31 22:18:36
            #include <iostream>
            using namespace std;
            int main()
            {
                int a,b;
                cin>>a>>b;
                if (a>b) {
                cout<<">";
                }
                if (a==b) {
                cout<<"=";
                }
                if (a<b) {
                cout<<"<";
                }
                return 0;
            }
            
            • 0
              @ 2024-2-23 9:56:01

              #include<bits/stdc++.h> using namespace std; int main(){ int x,y; cin>>x,y; if(x==y){ cout<<"="<<endl; } if(x>y){ cout<<">"<<endl; } if(x<y){ cout<<"<"<<endl; } return 0; }

              • 0
                @ 2024-2-23 9:52:42
                #include<bits/stdc++.h>
                using namespace std;
                int main(){
                    int x,y;
                    cin>>x>>y;
                    if(x>y){
                    cout<<">"<<endl;
                }
                    if(x<y){
                    cout<<"<"<<endl;
                }
                    if(x==y){
                    cout<<"="<<endl;
                }
                return 0;
                }
                
                • 0
                  @ 2023-12-2 9:41:36

                  #include using namespace std; int main(){ int x,y; cin>>x>>y; if(x<y){ cout<<"<"; } if(x==y){ cout<<"="; } if(x>y){ cout<<">"; } return 0; }

                  • -1
                    @ 2024-2-23 10:53:31

                    #include using namespace std; int main(){ int n; cin>>n; if(n%2==1){ cout<<"odd"; }else{ cout<<"even"; } return 0; }

                    • -1
                      @ 2024-2-23 10:53:22

                      #include using namespace std; int main(){ int n; cin>>n; if(n%2==1){ cout<<"odd"; }else{ cout<<"even"; } return 0; }

                      • -1
                        @ 2024-2-23 10:53:15

                        #include using namespace std; int main(){ int n; cin>>n; if(n%2==1){ cout<<"odd"; }else{ cout<<"even"; } return 0; }

                        • -1
                          @ 2024-2-23 10:13:07
                          #include<bits/stdc++.h>
                          using namespace std;
                          int main(){
                          	int s,z;
                          	cin>>s>>z;
                          	if(s>z){
                          	cout<<">";}
                          	if(s==z){
                          		cout<<"=";}
                          		if(s<z){
                          			cout<<"<"; }
                          	return 0;
                          }
                          
                          • -1
                            @ 2024-2-23 10:13:02
                            #include<bits/stdc++.h>
                            using namespace std;
                            int main(){
                            	int s,z;
                            	cin>>s>>z;
                            	if(s>z){
                            	cout<<">";}
                            	if(s==z){
                            		cout<<"=";}
                            		if(s<z){
                            			cout<<"<"; }
                            	return 0;
                            }
                            
                            • -1
                              @ 2024-2-23 9:52:40

                              #include <bits/stdc++.h> using namespace std; int main(){ int x,y; cin>>x>>y; if(x>y){ cout<<">"<<endl; } if(x<y){ cout<<"<"<<endl; } if(x==y){ cout<<"="<<endl; } return 0; }

                              • -1
                                @ 2024-2-23 9:51:11

                                #include<bits/stdc++.h> using namespace std; int main(){ int x,y; cin>>x>>y; if(x>y){ cout<<">"<<endl; } if(x==y){ cout<<"="<<endl; } if(x<y){ cout<<"<"<<endl; } return 0; }

                                • -1
                                  @ 2024-2-23 9:45:15

                                  #include<bits/stdc++.h> using namespace std; int main(){ int x,y; cin>>x>>y; if(x>y){ cout<<">"<<endl; } if(x<y){ cout<<"<"<<endl; } if(x==y){ cout<<"="<<endl; } return 0; }

                                  • -1
                                    @ 2024-2-23 9:44:36

                                    #include<bits/stdc++.h> using namespace std; int main(){ int x,y; cin>>x>>y; if(x>y){ cout<<">"<<endl; } if(x<y){ cout<<"<"<<endl; } if(x==y){ cout<<"="<<endl; } return 0; }

                                    • -1
                                      @ 2024-2-23 9:38:38

                                      #include<bits/stdc++.h> using namespace std; int main(){ int x,y; cin>>x>>y; if(x>y){ cout<<">"<<endl; } if(x<y){ cout<<"<"<<endl; } if(x==y){ cout<<"="<<endl; } return 0; }

                                      • -1
                                        @ 2024-2-23 9:33:10

                                        #include using namespace std; int main(){ int x,y; cin>>x>>y; if(x>y){ cout<<">"; } if(x<y){ cout<<"<"; } if(x==y){ cout<<"="; } return 0; }

                                        • -1
                                          @ 2024-2-23 9:26:45
                                          #include<bits/stdc++.h>
                                          using namespace std;
                                          int main(){
                                              int x,y;
                                              cin>>x>>y;
                                              if(x>y){
                                              cout<<">"<<endl;
                                          }
                                              if(x<y){
                                              cout<<"<"<<endl;
                                          }
                                              if(x==y){
                                              cout<<"="<<endl;
                                          }
                                          return 0;
                                          }
                                          

                                          信息

                                          ID
                                          89
                                          时间
                                          1000ms
                                          内存
                                          512MiB
                                          难度
                                          6
                                          标签
                                          (无)
                                          递交数
                                          1372
                                          已通过
                                          439
                                          上传者