알고리즘/백준 BOJ
[BOJ C#] 10988 팰린드롬
왹져박사
2023. 1. 15. 21:57
using System;
using System.Linq;
namespace _10988
{
class Program
{
static void Main(string[] args)
{
string str = Console.ReadLine();
string strReverse = new string(str.Reverse().ToArray());
int palindrome = (str == strReverse) ? 1 : 0;
Console.WriteLine(palindrome);
}
}
}