40分求助
查看原帖
40分求助
936077
封禁用户楼主2025/1/16 13:40
#include <bits/stdc++.h>
using namespace std;
int main(){
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
    int n, tmp;
    cin>>n;
    for(int i = 1; i <= n; i ++){
        cin>>tmp;
        if(tmp % 2 == 0)
        	cout<<"even"<<endl;
		else
            cout<<"odd"<<endl;
    }
    return 0;
}

解决壶关

2025/1/16 13:40
加载中...