3 条题解

  • 2
    @ 2026-5-23 15:25:32

    #include <bits/stdc++.h> using namespace std;

    int main() { long long a; cin>>a; if(a%2==0){ cout<<"even"; } else { cout<<"odd"; }

    return 0;
    

    }

    • 1
      @ 2026-5-23 16:40:01

      #include <bits/stdc++.h> using namespace std;

      int main() { long long a; cin>>a; if(a%2==0){ cout<<"even"; } else { cout<<"odd"; }

      return 0; }

      • 0
        @ 2026-5-23 9:14:21

        #include <bits/stdc++.h> using namespace std;

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

        • 1

        信息

        ID
        30926
        时间
        1000ms
        内存
        256MiB
        难度
        6
        标签
        (无)
        递交数
        217
        已通过
        71
        上传者