18 条题解

  • 3
    @ 2024-2-23 10:00:39

    提示: 灵活运用or和else👀️

  • 2
    @ 2024-2-23 10:50:49
    #include<bits/stdc++.h> 
    using namespace std;
    int main(){
        int a,b;
        cin>>a>>b; 
        if(a>=10 or b>=20){
            cout<<1; 
        }
        else{
            cout<<0;
        }
        return 0; 
    }
    ``
    
    • -1
      @ 2024-2-23 10:55:58

      #include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if (a>=10 or b>=20)cout<<1; if (a<10 and b<20)cout<<0; return 0; }

      • -1
        @ 2024-2-23 10:07:45

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

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

          #include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a>=10 or b>=20){ cout<<"1"; } else{ cout<<"0"; } }

          • -1
            @ 2024-2-23 10:03:13
            #include<bits/stdc++.h> 
            using namespace std;
            int main(){
                int a,b;
                cin>>a>>b; 
                if(a>=10 or b>=20){
                    cout<<1; 
                }
                else{
                    cout<<0;
                }
                return 0; 
            }
            
            • -1
              @ 2024-2-23 10:03:09
              #include<bits/stdc++.h> 
              using namespace std;
              int main(){
                  int a,b;
                  cin>>a>>b; 
                  if(a>=10 or b>=20){
                      cout<<1; 
                  }
                  else{
                      cout<<0;
                  }
                  return 0; 
              }
              
              • -1
                @ 2024-2-23 10:03:05
                #include<bits/stdc++.h> 
                using namespace std;
                int main(){
                    int a,b;
                    cin>>a>>b; 
                    if(a>=10 or b>=20){
                        cout<<1; 
                    }
                    else{
                        cout<<0;
                    }
                    return 0; 
                }
                
                • -1
                  @ 2024-2-23 10:02:38

                  #include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a>=10 or b>=20){ cout<<"1"; } else{ cout<<"0"; } }

                  • -1
                    @ 2024-2-23 10:02:32

                    #include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a>=10 or b>=20){ cout<<"1"; } else{ cout<<"0"; } }

                    • -1
                      @ 2024-2-22 21:34:00
                      #include<bits/stdc++.h> 
                      using namespace std;
                      int main(){
                          int a,b;
                          cin>>a>>b; 
                          if(a>=10 or b>=20){
                              cout<<1; 
                          }
                          else{
                              cout<<0;
                          }
                          return 0; 
                      }
                      
                      • -1
                        @ 2024-2-21 21:44:10

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

                        • -1
                          @ 2024-1-17 11:03:00

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

                          • -2
                            @ 2024-2-23 10:37:43
                            #include<bits/stdc++.h> 
                            using namespace std;
                            int main(){
                                int a,b;
                                cin>>a>>b; 
                                if(a>=10 or b>=20){
                                    cout<<1; 
                                }
                                else{
                                    cout<<0;
                                }
                                return 0; 
                            }
                            
                            • -2
                              @ 2024-2-23 10:36:42
                              #include<bits/stdc++.h> 
                              using namespace std;
                              int main(){
                                  int a,b;
                                  cin>>a>>b; 
                                  if(a>=10 or b>=20){
                                      cout<<1; 
                                  }
                                  else{
                                      cout<<0;
                                  }
                                  return 0; 
                              }
                              
                              • -2
                                @ 2024-2-23 10:03:15
                                #include<bits/stdc++.h> 
                                using namespace std;
                                int main(){
                                    int a,b;
                                    cin>>a>>b; 
                                    if(a>=10 or b>=20){
                                        cout<<1; 
                                    }
                                    else{
                                        cout<<0;
                                    }
                                    return 0; 
                                }
                                
                                • -2
                                  @ 2024-2-23 10:03:14
                                  #include<bits/stdc++.h> 
                                  using namespace std;
                                  int main(){
                                      int a,b;
                                      cin>>a>>b; 
                                      if(a>=10 or b>=20){
                                          cout<<1; 
                                      }
                                      else{
                                          cout<<0;
                                      }
                                      return 0; 
                                  }
                                  
                                  • -2
                                    @ 2024-2-23 10:03:14
                                    #include<bits/stdc++.h> 
                                    using namespace std;
                                    int main(){
                                        int a,b;
                                        cin>>a>>b; 
                                        if(a>=10 or b>=20){
                                            cout<<1; 
                                        }
                                        else{
                                            cout<<0;
                                        }
                                        return 0; 
                                    }
                                    
                                    • 1

                                    信息

                                    ID
                                    2132
                                    时间
                                    1000ms
                                    内存
                                    256MiB
                                    难度
                                    2
                                    标签
                                    递交数
                                    564
                                    已通过
                                    297
                                    上传者