Untitled

Anonymous
c_cpp
10/29/2021 3:46 AM
336 B
26
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...