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 ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- System.IO.StreamReader reader = new System.IO.StreamReader("input.txt");
- String[] t = reader.ReadLine().Split(' ');
- int n = Int32.Parse(t[0]);
- int m = Int32.Parse(t[1]);
- t = reader.ReadLine().Split(' ');
- int[] a = new int[n];
- for (int i = 0; i < n; ++i)
- {
- a[i] = Int32.Parse(t[i]);
- }
- t = reader.ReadLine().Split(' ');
- int[] b = new int[m];
- for (int i = 0; i < m; ++i)
- {
- b[i] = Int32.Parse(t[i]);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment