Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
14209 c292user5 [USACO09OCT]Even? Odd? G C++ 通过 100 1 MS 704 KB 273 2021-07-10 20:13:33

Tests(30/30):


#include <iostream> #include <cstring> using namespace std; int main() { long n,len; char l[65]; cin>>n; for(int i=0; i<n; i++) { cin>>(l); len=strlen(l); if(l[len-1] % 2==0) cout<<"even"<<endl; else cout<<"odd"<<endl; } return 0; }


测评信息: