Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ABC033
- {
- public class A
- {
- public static void Main(string[] args)
- {
- var input = Console.ReadLine();
- Console.WriteLine(checker(input) ? "SAME" : "DIFFERENT");
- }
- public static bool checker(string input)
- {
- char prev = input[0];
- foreach (var c in input)
- {
- if (prev != c)
- {
- return false;
- }
- prev = c;
- }
- return true;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement