Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- class LargestCommonEnd
- {
- static void Main(string[] args)
- {
- string[] arr = Console.ReadLine().Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
- string[] arr2 = Console.ReadLine().Split(new char[] {' '}, StringSplitOptions.RemoveEmptyEntries);
- int Similar = Math.Min(arr.Length, arr2.Length);
- for (int i = 0; i <= Similar; i++)
- {
- if (arr[i]==arr2[i])
- {
- Console.WriteLine(arr.Length);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement