3 条题解

  • 2
    @ 2025-1-29 21:46:27

    #include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a; if ( a % 2 == 0 ) cout << "even"; else cout << "odd"; return 0; }

    • 2
      @ 2025-1-20 21:16:21

      #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
        @ 2025-1-26 15:42:39

        #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
        427
        时间
        1000ms
        内存
        128MiB
        难度
        1
        标签
        (无)
        递交数
        92
        已通过
        65
        上传者