Dhaka Regional ACM ICPC 2016 Mock Contest Solution A - A Piece of Cake
A. A Piece of Cake
Score: 1
CPU: 1s
Memory: 1200MB
CPU: 1s
Memory: 1200MB
Okay, nothing to do with cakes really, whether you love them or not. This is to ascertain that this is a very very easy problem. So here is the deal, given an integer n, print all integers from 0 to n in increasing order. The limit of n? Who gives a damn when the problem is so easy? :D
Input
Input begins with a positive integer T, number of test cases. T lines follow, each containing a single integer, n.
Output
For each test case produce a line containing single space separated values from 0 to n in ascending order.
Sample
Input | Output |
---|---|
2 1 5 | 0 1 0 1 2 3 4 5 |
Comments
Post a Comment