U E D R , A S I H C RSS

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

No older revisions available

No older revisions available



==주소영==
~cpp
#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;
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:07
Processing time 0.0162 sec