0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2025-01-11 16:31:58 +00:00

P2955 [USACO09OCT]Even? Odd? G

R41109626
This commit is contained in:
Baoshuo Ren 2020-11-02 21:30:39 +08:00 committed by Baoshuo Ren
parent fbba911580
commit 327f478b5d
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

14
problem/P2955/P2955.cpp Normal file
View File

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