Posted in 2017 PacNW, ACM-ICPC

2017 PacNW A Odd Palindrome

/* 11/14/2017
* /


#include
#include
using namespace std;

int main() {
	string s;
	cin >> s;
	int len = s.length() - 1;
	for (int i = 0; i < len; i++) {
		if (s[i] == s[i + 1]) {
			cout << "Or not." << endl;
			return 0;
		}
	}
	cout << "Odd." << endl;
	return 0;
} 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s