Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace _02.Track_Downloader
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. List<string> input = Console.ReadLine().Split().ToList();
  14. List<string> cleanList = new List<string>();
  15. string fileNames = Console.ReadLine();
  16.  
  17. while (!fileNames.Equals("end"))
  18. {
  19. for (int i = 0; i < input.Count; i++)
  20. {
  21. if (!fileNames.Contains(input[i]))
  22. {
  23. cleanList.Add(fileNames);
  24. }
  25. else
  26. {
  27. break;
  28. }
  29. }
  30.  
  31. fileNames = Console.ReadLine();
  32. }
  33. Console.WriteLine(string.Join("\r\n", cleanList.Distinct().OrderBy(x => x)));
  34. }
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement