Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

데블스캠프2006/화요일/pointer/문제4/주소영

From ZeroWiki

주소영

#include<iostream> 
using namespace std; 

void main() 
{
	char buf[64]={0,};
	cin >>buf;

	int length = strlen(buf);
	int i;

	int r=1;
	for(i=0; i<length ; i++){
		if(buf[i] != buf[length-i-1]){
			r=0;
			break;
		}

	}

	if(r==0)
		cout <<"F"<<endl;
	else
		cout <<"T"<<endl;
}