U E D R , A S I H C RSS

데블스캠프2006/화요일/pointer/문제4/이송희

데블스캠프2006/화요일/pointer/문제4/이송희

~cpp
#include <iostream>
using namespace std;

void main()
{
	char buf[64]={0, };
	cin >> buf;
	int length = strlen(buf);
	int i;
	bool result;
	
	for(i=length-1; i>=length/2; i--)
	{
		if(buf[i]!=buf[length-1-i])
		{
			result = false;
			break;
		}
		else
			result=true;
			
	}
	cout << result << endl;
		
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:07
Processing time 0.0087 sec