Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
24248 | 我要进前十(黄泽远) | 【USACO】奇偶判断 | C++ | 解答错误 | 0 MS | 244 KB | 208 | 2023-07-22 14:41:14 |
#include "iostream" using namespace std; int main(){ int n; string a; cin>>n; while(n--){ cin>>a; int b=a.size(); if((a[b]-'0')%2==0)cout<<"even"; else cout<<"odd"; } return 0; }