26 条题解

  • -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
              标签
              递交数
              668
              已通过
              395
              上传者