ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1712. Cipher Grille

Easy to solve HINT
Posted by AzizIO 17 Oct 2012 02:36
Code in C#!!!
first of ALL just print and reverse print .... 3 times

     static string [,] reverse(string[,] arr)
        {
            string[,] tmp = new string [4,4];

            for (int i = 0; i < 4; i++)
            {
                for (int j = 0; j < 4 ; j++)
                {
                    tmp[i,j] = arr[4-j-1,i];
                }
            }
            return tmp;
        }
in this case i wrote code for 4x4 array!!!
you can change your code to tmp[i,j] = arr[3-j,i]
if u want reverse nxn array change all 4 to n
GooD Luck!
sorry for my english!!

Edited by author 17.10.2012 02:39