Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- class Program
- {
- static void Main()
- {
- string[] inputArray = Console.ReadLine().Trim().Split();
- HashSet<char> firstWord = new HashSet<char>(inputArray[0]);
- HashSet<char> secondWord = new HashSet<char>(inputArray[1]);
- Console.WriteLine((firstWord.Count == secondWord.Count) ? "true" : "false");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment