Advertisement
keero

Untitled

Jun 23rd, 2017
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 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 _67.Track_Downloader
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. List<string> blacklist = Console.ReadLine().Split(' ').ToList();
  14. List<string> addons = new List<string>();
  15. string input = Console.ReadLine();
  16. while (input!="end")
  17. {
  18. addons.Add(input);
  19. input = Console.ReadLine();
  20. }
  21.  
  22. for (int i = 0; i < addons.Count; i++)
  23. {
  24. foreach (string t in blacklist)
  25. {
  26. if (addons[i].Contains(t))
  27. {
  28. addons.Remove(addons[i]);
  29. }
  30. }
  31. }
  32. addons.Sort();
  33.  
  34.  
  35.  
  36. for (int i = 0; i < addons.Count; i++)
  37. {
  38.  
  39. Console.WriteLine(addons[i]);
  40.  
  41.  
  42. }
  43. }
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement