Created
March 23, 2016 19:11
-
-
Save HyeonWooKim/d3b9b87571776835b190 to your computer and use it in GitHub Desktop.
홀수일까 짝수일까(BOJ 5988)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std; | |
int main() | |
{ | |
int n; | |
string s; | |
cin>>n; | |
for(int i=0;i<n;i++) | |
{ | |
cin>>s; | |
if((s.back()-'0')%2==0)cout<<"even\n"; | |
else cout<<"odd\n"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment