Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- namespace gauss2
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- List<int> firstArray = Console.ReadLine().Split()
- .Select(int.Parse)
- .ToList();
- List<int> secondArray = Console.ReadLine().Split()
- .Select(int.Parse)
- .ToList();
- List<int> result = new List<int>();
- for (int i = 0; i < firstArray.Count; i++)
- {
- for (int j = 0; j < secondArray.Count; j++)
- {
- if (firstArray.Count > secondArray.Count)
- {
- result.Add(firstArray[i]);
- result.Add(secondArray[j]);
- }
- }
- }
- Console.WriteLine(string.Join(" ", result));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement