class MainClass public struct coordinates public int public static voi

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
class MainClass
{
public struct coordinates
{
public int X,Y;
}
public static void Main(string[] args)
{
StreamReader sr = new StreamReader("input.txt");
char[] delimiterChars = { ' ','\t' };
int n = -1;
string line;
coordinates[] c = new coordinates[1000000];
while ((line = sr.ReadLine())!=null)
{
n++;
c[n].X = Convert.ToInt32(line.Split(delimiterChars)[0]);
c[n].Y = Convert.ToInt32(line.Split(delimiterChars)[1]);
Console.WriteLine(line);
}
}
}