#CCBCHBAHAI0000126. Điền mảng I (Array Fill I)
Điền mảng I (Array Fill I)
Array Fill I
Source: beecrowd
Version: Phuoc Hung OJ Extended
Problem Statement
Given an integer , construct an integer array with exactly elements using
Then print in order.
Input
One line contains the integer , with .
Output
Print exactly lines. The line for index has the form N[i] = X, where .
Subtasks
Subtask 1 (100 points): . The lower bound is a Phuoc Hung OJ test bound chosen so every multiplication in this version safely fits in long long.
Examples
Input
1
Output
N[0] = 1
N[1] = 2
N[2] = 4
N[3] = 8
N[4] = 16
N[5] = 32
N[6] = 64
N[7] = 128
N[8] = 256
N[9] = 512
Explanation
For , . Each later element is twice the previous one: , , and . Continuing the same recurrence gives . Each value is printed with its index.