| 记录编号 | 347703 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 1096.[USACO Oct09] 单数? 双数? | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.020 s | ||
| 提交时间 | 2016-11-13 15:36:31 | 内存使用 | 0.28 MiB | ||
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <iostream>
using namespace std;
#define SUBMIT
int main(int argc, char const *argv[])
{
#ifdef SUBMIT
freopen("evenodd.in", "r", stdin); freopen("evenodd.out", "w", stdout);
#endif
int n;
string ch;
cin >> n;
while (n--) {
cin >> ch;
if (ch[ch.size() - 1] % 2) printf("odd\n");
else printf("even\n");
}
#ifndef SUBMIT
printf("\n----------\n");
getchar(); getchar();
#else
fclose(stdin); fclose(stdout);
#endif
return 0;
}