| 记录编号 | 88479 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 1096.[USACO Oct09] 单数? 双数? | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.004 s | ||
| 提交时间 | 2014-02-21 13:25:20 | 内存使用 | 0.31 MiB | ||
#include <iostream>
#include <cstdio>
#define FILE
using namespace std;
bool is_odd(string st)
{
char ch=st[st.size()-1];
if(ch=='0'||ch=='2'||ch=='4'||ch=='6'||ch=='8')
return false;
return true;
}
void work()
{
int N;
cin>>N;
for(int i=1;i<=N;i++)
{
string Num;
cin>>Num;
cout<<(is_odd(Num) ? "odd" : "even")<<endl;
}
}
int main()
{
#ifdef FILE
freopen("evenodd.in","r",stdin);
freopen("evenodd.out","w",stdout);
#endif
work();
return 0;
}