提交时间:2021-07-17 10:03:20

运行 ID: 14582

#include<iostream> using namespace std; int main() { int n; cin >> n; int num[1000]; for(int i = 1 ; i <= n ; i++) { cin >> num[i] ; } for(int j = 1 ; j <= n ; j++) { if(num[j]%2==0) { cout << "even" << endl; } if(num[j]%2!=0) { cout << "odd" << endl; } } return 0; }