We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
namespace baekjoon_1259 { public class Palindrome { public bool IsPalindrome(string str) { int len = str.Length; for (int i = 0; i < len / 2; i++) { if (str[i] != str[len - i - 1]) return false; } return true; } } public class Program { public static void Main(string[] args) { Palindrome palindrome = new Palindrome(); while (true) { string str = System.Console.ReadLine(); if (str == "0") break; if (palindrome.IsPalindrome(str)) System.Console.WriteLine("yes"); else System.Console.WriteLine("no"); } } } }
The text was updated successfully, but these errors were encountered:
fkdl0048
No branches or pull requests
CLASS 2: 팰린드롬수 - [1259]
The text was updated successfully, but these errors were encountered: