ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1313. К вопросу о спорте

Please Help! Program is right! But I don't know what's a problem?
Послано kami_botanik 3 мар 2013 05:32
I know you must'll say that this is like a "Axe slyle" But i sit on this task aproximately 7 hours! And I have already sick of it, but i owed to finish it! However Programm is working! I tested it and it's all right! PLEASE HEEEELP me! I have WA# 2. (((

using System;

namespace ConsoleApplication1
{
    class Program14
    {
        static void Main()
        {
            int p = 0;
            int u = 0;
            int q = 0;
            int k = 0;
            int i = 0;
            int j = 0;
            int n = int.Parse(Console.ReadLine());
            string[] str;
            int[,] x = new int[n,n];
            for (i = 0; i < n; i++)
            {
                str = Console.ReadLine().Split(' ');
                for (p = 0; p < n; p++)
                    x[i, p] = int.Parse(str[p]);
            }

            int[] y = new int[x.Length];
            for (i = 1; i >= 0; i--)
            {
                k++;
                y[k] = x[i, k - 1];

                    for (j = 2; j >= 0; j--)
                    {
                        q++;
                        if (q == 4) break;
                        y[q + 2] = x[j, q - 1];

                        for (int o = 3; o >= 0; o--)
                        {
                            u++;
                            if (u >= 5) break;
                            y[u+5] = x[o, u - 1];
                        }
                    }

            }

            for (i = 3; i >= 2; i--)
            {
                y[k + 11] = x[i, k];
                k++;
            }
                for (i = 3; i >= 1; i--)
                {
                   q++;
                   y[q+5] = x[i, q-4];
                }
                y[0] = x[0, 0];
                y[15] = x[3, 3];

                foreach (int s in y)
                    Console.Write("{0} ", s);
            Console.ReadLine();

        }
    }
}

Please prompt, Where is the problem! And sorry for my also "Dehqon style" english.