#CCBCHBAHAI0000002. In kèm chỉ số 0-based (Print with 0-Based Indices)
In kèm chỉ số 0-based (Print with 0-Based Indices)
Print with 0-Based Indices
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
You are given an integer array of length , indexed from to . For every index , print the index together with the value stored at that index.
Input
- The first line contains the integer , the number of array elements.
- The second line contains exactly integers in increasing index order.
Output
Print exactly lines. Line contains and , separated by one space.
Subtasks
Subtask 1 (20 points): , .
Subtask 2 (30 points): , for every .
Subtask 3 (50 points): , for every .
Examples
Input
4
12 -5 7 7
Output
0 12
1 -5
2 7
3 7
Explanation
The four array entries are , , , and . Therefore the required index-value pairs are 0 12, 1 -5, 2 7, and 3 7.