Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
33803 qwertyuiop 【USACO】奇偶判断 C++ 通过 0 MS 260 KB 222 2023-12-31 14:04:24

Tests(20/20):


#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"; cout<<endl; } return 0; }


测评信息: