2 条题解

  • 1
    @ 2024-11-23 10:40:23
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	long long a;
    	cin>>a;
    	if(a%2==0) cout<<"even";
    	if(a%2!=0) cout<<"odd";
    	return 0;
    }
    
    • 0
      @ 2024-11-16 21:51:34

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

      • 1

      信息

      ID
      471
      时间
      1000ms
      内存
      128MiB
      难度
      4
      标签
      递交数
      28
      已通过
      17
      上传者