Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
33792 qwertyuiop 【USACO】奇偶判断 C++ 解答错误 0 MS 252 KB 207 2023-12-31 14:00:48

Tests(0/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<<"even"; else cout<<"odd"; } return 0; }


测评信息: