Advertisement
desislava_topuzakova

Problem 5. Кросово бягане

Jun 14th, 2020
894
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.65 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4.  
  5. namespace Sortign
  6. {
  7.     class Program
  8.     {
  9.         static void Main(string[] args)
  10.         {
  11.             List<int> resultsFirstDay = Console.ReadLine().Split(" ").Select(int.Parse).ToList();
  12.             List<int> resultsSecondDay = Console.ReadLine().Split(" ").Select(int.Parse).ToList();
  13.  
  14.             List<int> results = new List<int>();
  15.             results.AddRange(resultsFirstDay);
  16.             results.AddRange(resultsSecondDay);
  17.  
  18.             results.Sort();
  19.  
  20.             Console.WriteLine(string.Join(" ", results));
  21.            
  22.  
  23.  
  24.  
  25.  
  26.  
  27.         }
  28.  
  29.        
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement