Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _02.Track_Downloader
- {
- class Program
- {
- static void Main(string[] args)
- {
- List<string> input = Console.ReadLine().Split().ToList();
- List<string> cleanList = new List<string>();
- string fileNames = Console.ReadLine();
- while (!fileNames.Equals("end"))
- {
- for (int i = 0; i < input.Count; i++)
- {
- if (!fileNames.Contains(input[i]))
- {
- cleanList.Add(fileNames);
- }
- else
- {
- break;
- }
- }
- fileNames = Console.ReadLine();
- }
- Console.WriteLine(string.Join("\r\n", cleanList.Distinct().OrderBy(x => x)));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement