2 solutions

  • 1
    @ 2026-3-8 13:56:47
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n;
        cin>>n;
        if (n%2==0){
        	cout<<"even";
    	}
    	else
    	{
    		cout<<"odd";
    	}
        return 0;
    }
    复制的是gay
    
    • -1
      @ 2026-2-13 10:34:37

      #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

      Information

      ID
      855
      Time
      1000ms
      Memory
      256MiB
      Difficulty
      1
      Tags
      (None)
      # Submissions
      235
      Accepted
      113
      Uploaded By