Advertisement
Guest User

Untitled

a guest
May 19th, 2018
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.44 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. class Program
  5. {
  6.     static void Main()
  7.     {
  8.         string[] input = Console.ReadLine().Split(' ');
  9.  
  10.         List<char> first = input[0].ToCharArray().Distinct().ToList();
  11.         List<char> second = input[1].ToCharArray().Distinct().ToList();
  12.  
  13.         bool exchengable = first.Count == second.Count;
  14.  
  15.         Console.WriteLine(exchengable.ToString().ToLower());
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement