3 条题解

  • 1
    @ 2023-3-9 21:07:32
    #include <iostream>
    using namespace std;
    int main()
    {
        int n;
        cin >> n;
        if(n % 2 == 0) cout << "even" <<endl;
        else cout << "odd" <<endl;
        return 0;
    }
    
    • 0
      @ 2025-7-8 15:55:38

      #include

      using namespace std;

      int main()

      {

      int n;
      
      cin>>n;
      
      if(n%2==1)
      
      {
      
      	cout<<"odd";
      }
      else
      {
      	cout<<"even";
      }
      return 0;
      

      }

      • 0
        @ 2024-5-9 20:55:02

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

        • 1

        信息

        ID
        872
        时间
        1000ms
        内存
        128MiB
        难度
        2
        标签
        递交数
        129
        已通过
        78
        上传者