Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Lv 43,335 points

Luds

Favorite Answers12%
Answers461

http://www.youtube.com/user/mLuds1

  • Challenging programming problem (in regular C)?

    We plan to lay a floor of M by M tiles. Each tile is square and we have an inexhaustible supply of N different color tiles. Label the colors C1, C2, C3, ... , CN. We begin by placing a square of C1 in the lower left corner and labeling this tile the (1,1) tile. We then put a tile of color C2 to the right of (1,1) and label it (1,2). We put a second tile of color C2 above (1,2) and label it (2,2). Now, we put a tile of color C3 to the left of (2,2) and call it (2,1), a tile of color C3 above (2,1) and call it (3,1), a tile to the left of (3,1) and label it (3,2), etc. Our pattern is to use 1 of color C1, 2 of color C2, 4 of color C3, 6 of color C4, etc. When we get to color CN, we start over again with color C1. For each color, we use two more tiles than we did for the previous color. (This is not true at the very beginning. It is true for all other cases.) The label of the tile represents its row and col beginning the labeling from the lower left. Carefully examine the example below to see the developing pattern for laying the tiles.

    Ex. If N is 4, our pattern is

    C3 C3 C3 C3 C3 C3 C3

    C3 C3 C3 C3 C3 C2 C4

    C1 C1 C1 C1 C1 C2 C4

    C1 C1 C1 C4 C2 C2 C4

    C3 C3 C3 C4 C2 C2 C4

    C3 C2 C4 C4 C2 C2 C4

    C1 C2 C4 C4 C2 C2 C4

    Write a program to read the number of colors, N, from the first line of input, the number of rows of tiles, M from the second line of input. (The number of columns is the same as the number of rows.) Then read two values of X and Y and print the number of the color for the tile labeled (X,Y). X represents the row and Y represents the column. The value of M will be less than or equal to 10000. All input will be legal.

    Can someone explain how to do this?

    2 AnswersProgramming & Design10 years ago
  • Does anyone own the Nintendo DSi Action Replay?

    I would like to hear some reviews of the Action Replay for the DSi. I have heard that that it can break your system and the AR itself breaks easily, although it's hard to tell if this is the truth. Please only answers from actually owners and please don't give me any cheating crap. I just want the facts.

    2 AnswersVideo & Online Games1 decade ago
  • How to record my electric drumset?

    I have a TD-12 Roland electric drumset and I wanted to record a drum track. I have never recorded anything before and would like to know the easiest way to go about doing this. 10 points for a helpful answer.

    3 AnswersOther - Entertainment1 decade ago