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 _68.Equal_Sum_After_Extraction
- {
- class Program
- {
- static void Main(string[] args)
- {
- List<int> firstLine = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
- List<int> secondLine = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
- for (int j = 0; j < secondLine.Count; j++)
- {
- for (int i = 0; i < firstLine.Count; i++)
- {
- if (j == firstLine[i])
- {
- secondLine.Remove(j);
- }
- }
- }
- Console.WriteLine(String.Join(" ", secondLine));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement