Untitled

 avatar
unknown
c_cpp
4 years ago
250 B
8
Indexable
#include<stdio.h>
#include<iostream>
#include<string.h>
#include<bits/stdc++.h>
using namespace std;

int main(){
	string a,b;
	while(cin>>a){
		b=a;
		reverse(a.begin(),a.end());  
		if(a==b){
			printf("1\n");
		}
		else{
			printf("0\n");
		}
	}
}
Editor is loading...