Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
33797 | qwertyuiop | 【USACO】奇偶判断 | C++ | 解答错误 | 0 MS | 244 KB | 207 | 2023-12-31 14:02:27 |
#include<bits/stdc++.h> using namespace std; string s; int n; int main(){ cin>>n; for(int i=0;i<n;i++){ cin>>s; if((s[s.size()-1]-'0')%2==0)cout<<"odd"; else cout<<"even"; } return 0; }