Skip to content

Instantly share code, notes, and snippets.

@HyeonWooKim
Created March 23, 2016 19:11
Show Gist options
  • Save HyeonWooKim/d3b9b87571776835b190 to your computer and use it in GitHub Desktop.
Save HyeonWooKim/d3b9b87571776835b190 to your computer and use it in GitHub Desktop.
홀수일까 짝수일까(BOJ 5988)
#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