Advertisement
keero

Untitled

Jun 23rd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 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 _68.Equal_Sum_After_Extraction
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. List<int> firstLine = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
  14. List<int> secondLine = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
  15.  
  16. for (int j = 0; j < secondLine.Count; j++)
  17. {
  18.  
  19. for (int i = 0; i < firstLine.Count; i++)
  20. {
  21. if (j == firstLine[i])
  22. {
  23. secondLine.Remove(j);
  24. }
  25. }
  26. }
  27.  
  28. Console.WriteLine(String.Join(" ", secondLine));
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement