Guest User

Untitled

a guest
Feb 18th, 2017
665
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. class Program
  5. {
  6.     static void Main()
  7.     {
  8.         string[] inputArray = Console.ReadLine().Trim().Split();
  9.         HashSet<char> firstWord = new HashSet<char>(inputArray[0]);
  10.         HashSet<char> secondWord = new HashSet<char>(inputArray[1]);
  11.         Console.WriteLine((firstWord.Count == secondWord.Count) ? "true" : "false");
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment