Search
 
SCRIPT & CODE EXAMPLE
 

CPP

Translation codeforces in c++

#include<iostream>
using namespace std;

int main()
{
	string s1, s2, s3;
	cin >> s1 >> s2;
	for (int i = s1.length()-1; i >= 0; i--)
	{
		s3 += s1[i];
	}
	if (s3 == s2)
		cout << "YES
";
	else
		cout << "NO
";

	return 0;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: converting decimal to binary in cpp 
Cpp :: cpp read from file 
Cpp :: C++ wchar_t 
Cpp :: pointers and arrays in c++ 
Cpp :: how to convert hexadecimal to decimal in c++ 
Cpp :: loop execution descending order in c++ 
Cpp :: c++ convert int to cstring 
Cpp :: c++ delay 
Cpp :: pop off end of string c++ 
Cpp :: c++ polymorphism 
Cpp :: balanced parentheses 
Cpp :: potato 
Cpp :: opengl draw house using glut c++ 
Cpp :: c++ compare type 
Cpp :: c ++ program to insert into hashmap 
Cpp :: error uploading arduino code 
Cpp :: how to run cpp using gcc vscode 
Cpp :: string c++ 
Cpp :: Temparory Email Id 
Cpp :: c++ concatenate strings 
Cpp :: heap allocated array in c ++ 
Cpp :: vector size c++ 
Cpp :: calling by reference c++ 
Cpp :: . The cout with the insertion operator (<<) is used to print a statement 
Cpp :: Consell de forces polítiques de Catalunya 
Cpp :: Write a C++ program to Computing Mean and Median Using Arrays 
Cpp :: check if a string is a prefix of another c++ 
Cpp :: sort array in descending order c++ 
Cpp :: windows servis from console app 
Cpp :: opengl draw cresent moon c++ 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =