Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
24322 hetiantian 【USACO】奇偶判断 C++ 解答错误 0 MS 244 KB 203 2023-07-22 17:12:58

Tests(0/20):


#include <bits/stdc++.h> using namespace std; string s; int main(){ int n; cin>>n; while(n--){ cin>>s; if((s[s.size()-1]-'0')%2==1)cout<<"odd"<<endl; else{ cout<<"even"; } } }


测评信息: