Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
24282 | yihang | 【USACO】奇偶判断 | C++ | 通过 | 1 MS | 260 KB | 225 | 2023-07-22 15:21:08 |
#include"bits/stdc++.h" using namespace std; string s[105]; int main(){ string b; int n,d; cin>>n; for(int i=1;i<=n;i++){ cin>>b; if(b[b.size()-1]%2==0)cout<<"even"<<endl; else cout<<"odd"<<endl; } }