28 条题解

  • -1
    @ 2024-2-22 20:59:46

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

    • -1
      @ 2024-2-22 11:19:11

      👍👍 👍👀️

      #inlude<iosteam>
      using namepace std;
      int main()
      {   int a;
      	cin>>a;
          if(a%2==0){
          cout<<"even";}
          if(a%2!=0){
          cout<<"odd";}
          return 0;
       }
      
      • -2
        @ 2024-4-21 10:30:15

        #include<bits/stdc++.h> using namespace std; int main(){ int m,n,sum=0; cin>>m>>n; for(int i=m;i<=n;i++){ if(i%2!=0){ sum+=i; } } cout<<sum; return 0; }

        • -2
          @ 2024-2-21 8:27:55
          #include<iostream>
          using namespace std;
          int main(){
              int n;
              cin>>n;
              if(n%2==0){
              cout<<"even";
          }
              else{
              cout<<"odd";
          	}
              return 0;
          }
          
          • -2
            @ 2024-2-20 8:28:45
            #include<iostream>
            using namespace std;
            int main(){
                int n;
                cin>>n;
                if(n%2==0){
                cout<<"even";
            }
                else{
                cout<<"odd";
            	}
                return 0;
            }
            
            • -2
              @ 2023-12-8 17:58:50

              😄

              #include<iostream>
              using namespace std;
              int main(){
              	int n;
              	cin>>n;
              	if(n%2==0) cout<<"even";
              	if(n%2!=0) cout<<"odd";
              	return 0;
              }
              
              • -3
                @ 2024-2-23 9:37:56
                #include<bits/stdc++.h>
                using namespace std;
                int main(){
                    int a;
                    cin>>a;
                    if(a%2==0){
                    cout<<"even";
                }
                    if(a%2!=0){
                    cout<<"odd";
                }
                return 0;
                }
                
                • -3
                  @ 2023-12-8 17:52:18

                  #include using namespace std; int main(){ int n; cin>>n; if(10<=n and n<=99){ cout<<1; }else{ cout<<0; } return 0; }

                  信息

                  ID
                  2066
                  时间
                  1000ms
                  内存
                  256MiB
                  难度
                  1
                  标签
                  递交数
                  1156
                  已通过
                  651
                  上传者