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:
parent
fbba911580
commit
327f478b5d
14
problem/P2955/P2955.cpp
Normal file
14
problem/P2955/P2955.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user