Tranvick

228

May 24th, 2014
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.85 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 ConsoleApplication1
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             System.IO.StreamReader reader = new System.IO.StreamReader("input.txt");
  14.             String[] t = reader.ReadLine().Split(' ');
  15.             int n = Int32.Parse(t[0]);
  16.             int m = Int32.Parse(t[1]);
  17.             t = reader.ReadLine().Split(' ');
  18.             int[] a = new int[n];
  19.             for (int i = 0; i < n; ++i)
  20.             {
  21.                 a[i] = Int32.Parse(t[i]);
  22.             }
  23.             t = reader.ReadLine().Split(' ');
  24.             int[] b = new int[m];
  25.             for (int i = 0; i < m; ++i)
  26.             {
  27.                 b[i] = Int32.Parse(t[i]);
  28.             }
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment