2 条题解

  • 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
      @ 2024-5-9 20:55:02

      #include<iostream> 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
      标签
      递交数
      72
      已通过
      42
      上传者