Friday, February 1, 2019

URI 1177:: SOLUTION

URI Online Judge | 1177

Array Fill II

Write a program that reads a number T and fill a vector N[1000] with the numbers from 0 to T-1 repeated times, like as the example below.

Input

The input contains an integer number T (2 ≤ T ≤ 50).

Output

For each position of the array N, print "N[i] = x", where i is the array position and is the number stored in that position.
Input SampleOutput Sample
3N[0] = 0
N[1] = 1
N[2] = 2
N[3] = 0
N[4] = 1
N[5] = 2
N[6] = 0
N[7] = 1
N[8] = 2
...




[WAIT]
     First of all, think yourself that you have tried enough for the problem. If you did not please read the program once. REMEMBER one thing, just believe in yourself.....YOU CAN.....YOU KNOW....



See the ANSWER here...
                                                                 

No comments:

Post a Comment