Cześć! mam problem z tym zadaniem:
http://pl.spoj.com/problems/TRN/
Mój kod:
using System;
public class Test
{
public static void Main()
{
int m, n;
int x1, x2, x3;
string[] b = Console.ReadLine().Split(' ');
m = Convert.ToInt32(b[0]);
n = Convert.ToInt32(b[1]);
int[,] macierz = new int[m, n];
string g = "", h;
int[,] tab3 = new int[0, 0];
for (int k = 0; k < m; k++)
{
string[] a = Console.ReadLine().Split(' ');
x1 = Convert.ToInt32(a[0]);
x2 = Convert.ToInt32(a[1]);
x3 = Convert.ToInt32(a[2]);
g = x1 + "\n" + x2 + "\n" + x3+"\n";
Console.Write(g);
}
Console.ReadKey();
}
}
Wypisuje wszystko pod sobą, ale nie wiem jak zrobić aby "dokleił" resztę do siebie. Czy mogę liczyć na jakąś małą podpowiedź?