Run ID:160550

提交时间:2026-09-22 19:58:37

#include <bits/stdc++.h> using namespace std; int main() { string s; while (cin>>s){ if (s[0]=='#'){ break; }int ones=0; for(int i=0;i<s.length()-1;i++){ if(s[i]=='1'){ ones++; } }char c=s[s.length()-1]; if (c == 'e') { if (ones % 2 == 0) cout << "even" << endl; else cout << "odd" << endl; } else { if (ones % 2 == 1) cout << "odd" << endl; else cout << "even" << endl; } } return 0; }