using System; class Program { static int[] t = { 8, 3, 9, 1, 5, 2, 7}; static void gyorsrendezes(int also, int felso) { int i=also, j=felso; int kozep = t[(felso+also)/2]; while(also<=felso) { while(alsoi && t[felso]>kozep) felso--; if(also<=felso) { int tmp = t[also]; t[also] = t[felso]; t[felso] = tmp; ++also; --felso; } } if(also