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;
- namespace simpleArrays
- {
- class Program
- {
- static void Main(string[] args)
- {
- string[] patern = Console.ReadLine().Split();
- string inp = Console.ReadLine();
- List<string> list = new List<string>();
- while (inp != "end")
- {
- bool isThere = false;
- for (int i = 0; i < patern.Length; i++)
- {
- if (inp.Contains(patern[i]))
- {
- isThere= true;
- }
- }
- if (isThere != true)
- {
- list.Add(inp);
- }
- inp = Console.ReadLine();
- }
- foreach (var a in list.OrderBy(x => x))
- {
- Console.WriteLine(a);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement