diff --git a/problem/P2955/P2955.cpp b/problem/P2955/P2955.cpp new file mode 100644 index 00000000..57623f8b --- /dev/null +++ b/problem/P2955/P2955.cpp @@ -0,0 +1,14 @@ +#include + +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; +}