Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
32879 a213 [USACO09OCT]Even? Odd? G C++ 编译错误 0 0 MS 0 KB 270 2022-09-25 13:17:01

Tests(0/0):


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


测评信息: