11 条题解

  • 5
    @ 2024-3-1 14:03:19
    #include <bits/stdc++.h>
    using namespace std;
    int main(){
        int a,z,x,c,v;
        cin>>a;
        if(a%2==0 and a<=12 and a>4)
        z=1;
        else
        z=0;
            if(a%2==0 or(a>4 and a<12) or (a%2==0 and a>4 and a<12))
            x=1;
            else
            x=0;
                if((a%2==!0 and (a>12 or a<=4)) or (a%2==0 and a<=12 and a>4))
                c=0;
                else
                c=1;
                    if(a%2==!0 and (a<=4 or a>=12))
                    v=1;
                    else
                    v=0;
        cout<<z<<" "<<x<<" "<<c<<" "<<v;
    return 0;
    }
    
  • 0
    @ 2024-12-19 17:15:29

    • 0
      @ 2024-12-13 19:47:15

      #include<bits/stdc++.h> using namespace std; int main(){ int x; bool a,b,c,d; cin>>x; a=x%20&&(x>4&&x<=12); b=x%20||(x>4&&x<=12); c=x%20^(x>4&&x<=12); d=not(x%20||(x>4&&x<=12)); cout<<a<<" "<<b<<" "<<c<<" "<<d; return 0; }

      • 0
        @ 2024-12-5 17:21:38

        #include<bits/stdc++.h> using namespace std; int main(){ int n,m,k=0; cin>>n; if(n<=12 || n%20){ if(n<=12 && n%20){ cout<<1<<" "; cout<<1<<" "; cout<<0<<" "; } else{ cout<<0<<" "; cout<<1<<" "; cout<<1<<" "; } cout<<0<<" "; } else{ cout<<0<<" "<<0<<" "<<0<<" "<<1; }

        return 0;
        

        }只有80,到底哪里错了!!!

        • 0
          @ 2024-11-17 19:23:47

          #include using namespace std; int main(void) { int x; cin>>x; bool b1=(x%2==0); bool b2=(x>4&&x<=12); if(b1&&b2) cout<<"1"<<" "; else cout<<"0"<<" "; if(b1||b2) cout<<"1"<<" "; else cout<<"0"<<" "; if((b1&&!b2)||(!b1&&b2)) cout<<"1"<<" "; else cout<<"0"<<" "; if(!b1&&!b2) cout<<"1"; else cout<<"0"; }

          • 0
            @ 2024-11-17 19:22:57

            #include using namespace std; int main(void) { int x; cin>>x; bool b1=(x%2==0); bool b2=(x>4&&x<=12); if(b1&&b2) cout<<"1"<<" "; else cout<<"0"<<" "; if(b1||b2) cout<<"1"<<" "; else cout<<"0"<<" "; if((b1&&!b2)||(!b1&&b2)) cout<<"1"<<" "; else cout<<"0"<<" "; if(!b1&&!b2) cout<<"1"; else cout<<"0"; }

            • 0
              @ 2024-3-24 14:55:50
              #include <bits/stdc++.h>
              using namespace std;
              int main(){
                  int a,z,x,c,v;
                  cin>>a;
                  if(a%2==0 and a<=12 and a>4)
                  z=1;
                  else
                  z=0;
                      if(a%2==0 or(a>4 and a<12) or (a%2==0 and a>4 and a<12))
                      x=1;
                      else
                      x=0;
                          if((a%2==!0 and (a>12 or a<=4)) or (a%2==0 and a<=12 and a>4))
                          c=0;
                          else
                          c=1;
                              if(a%2==!0 and (a<=4 or a>=12))
                              v=1;
                              else
                              v=0;
                  cout<<z<<" "<<x<<" "<<c<<" "<<v;
              return 0;
              
              • @ 2024-6-8 20:49:52

                你这也不对,你中括号去哪了??????????????????!!!!!!!!!!!!!!!!!!!

                #include <bits/stdc++.h>
                using namespace std;
                int main(){
                	int a,z,x,c,v; 
                	cin>>a;
                	if(a%2==0 and a<=12 and a>4){
                		z=1;
                	}
                	else{
                		z=0;
                	}
                	if(a%2==0 or(a>4 and a<12) or (a%2==0 and a>4 and a<12){
                		x=1;
                	}
                	else{
                		x=0;
                	}
                	if(a%2==!0 and (a>12 or a<=4)) or (a%2==0 and a<=12 and a>4){
                		c=0;
                	}
                	else{
                		c=1;
                	}
                	if(a%2==!0 and (a<=4 or a>=12){
                		v=1;
                	}
                	else{
                		v=0;
                	}
                	cout<<z<<" "<<x<<" "<<c<<" "<<v;
                	return 0;
                }
                //防伪标识
                //  ggggg
                // g     g
                //g  a a  g
                //g       g 
                //g   w   g
                // g g g g           (awa)?
                
              • @ 2024-6-8 20:50:56

                应该这样

            • -1
              @ 2024-2-28 20:55:04

              #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d,e; cin>>a; if(a%20 and a>4 and a<=12){ cout<<"1"<<" "; } else{ cout<<"0"<<" "; } if(a%20 or (a>4 and a<12) or (a%20 and a>4 and a<=12)){ cout<<"1"<<" "; } else{ cout<<"0"<<" "; } if((a%2!=0 and (a>4 and a<=12)) or (a%20 and (a<4 or a>12))){ cout<<"1"<<" "; } else{ cout<<"0"<<" "; } if(a%2!=0 and (a<4 or a>12)){ cout<<"1"; } else{ cout<<"0"; } }

              • -2
                @ 2024-3-6 18:15:42

                #include <bits/stdc++.h> using namespace std; int main(){ int a,z,x,c,v; cin>>a; if(a%20 and a<=12 and a>4) z=1; else z=0; if(a%20 or(a>4 and a<12) or (a%20 and a>4 and a<12)) x=1; else x=0; if((a%2!0 and (a>12 or a<=4)) or (a%20 and a<=12 and a>4)) c=0; else c=1; if(a%2!0 and (a<=4 or a>=12)) v=1; else v=0; cout<<z<<" "<<x<<" "<<c<<" "<<v; return 0; }

                • -2
                  @ 2024-2-23 9:58:30
                  #include <bits/stdc++.h>
                  using namespace std;
                  int main(){
                      int a,z,x,c,v;
                      cin>>a;
                      if(a%2==0 and a<=12 and a>4)
                      z=1;
                      else
                      z=0;
                          if(a%2==0 or(a>4 and a<12) or (a%2==0 and a>4 and a<12))
                          x=1;
                          else
                          x=0;
                              if((a%2==!0 and (a>12 or a<=4)) or (a%2==0 and a<=12 and a>4))
                              c=0;
                              else
                              c=1;
                                  if(a%2==!0 and (a<=4 or a>=12))
                                  v=1;
                                  else
                                  v=0;
                      cout<<z<<" "<<x<<" "<<c<<" "<<v;
                  return 0;
                  }
                  
                  • -2
                    @ 2024-2-23 9:16:51
                    #include <bits/stdc++.h>
                    using namespace std;
                    int main(){
                        int a,z,x,c,v;
                        cin>>a;
                        if(a%2==0 and a<=12 and a>4)
                        z=1;
                        else
                        z=0;
                            if(a%2==0 or(a>4 and a<12) or (a%2==0 and a>4 and a<12))
                            x=1;
                            else
                            x=0;
                                if((a%2==!0 and (a>12 or a<=4)) or (a%2==0 and a<=12 and a>4))
                                c=0;
                                else
                                c=1;
                                    if(a%2==!0 and (a<=4 or a>=12))
                                    v=1;
                                    else
                                    v=0;
                        cout<<z<<" "<<x<<" "<<c<<" "<<v;
                    return 0;
                    }
                    
                    • 1

                    信息

                    ID
                    617
                    时间
                    1000ms
                    内存
                    125MiB
                    难度
                    4
                    标签
                    (无)
                    递交数
                    282
                    已通过
                    135
                    上传者