You are not logged in. Please login at www.codechef.com to post your questions!

×

TOPPARR - Editorial

PROBLEM LINK:

Practice
Contest

Author: Full name
Tester: Full name
Editorialist: Full name

DIFFICULTY:

CAKEWALK

PROBLEM:

You have to print clockwise rotations of a given 2-D array at given times, provided there is one clockwise rotation of the array per unit time.

EXPLANATION:

Whatever be the times at which the array is asked to be displayed, it can have only four states which can be found by taking T modulo 4, where T is the time at which we need to print the array. With some observation, the array can be printed easily by altering the looping variables.

AUTHOR'S AND TESTER'S SOLUTIONS:

Author's solution can be found here.

asked 11 Sep '15, 23:40

saumyajit_dey's gravatar image

2★saumyajit_dey
8529
accept rate: 0%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×15,852
×1,688
×862
×5

question asked: 11 Sep '15, 23:40

question was seen: 753 times

last updated: 11 Sep '15, 23:40