#K8706. Taco Pattern

    ID: 37002 Type: Default 1000ms 256MiB

Taco Pattern

Taco Pattern

Given an integer ( n ), your task is to generate a pattern based on consecutive integers from 1 to ( n ). If ( n ) is less than 1, output nothing. Otherwise, output two lines: the first line containing the numbers from 1 to ( n ) separated by a single space, and the second line containing the same numbers separated by commas. Note that each line (except the last one) ends with a newline character. This problem tests your ability to format output with different delimiters.

inputFormat

The input is read from standard input (stdin) and consists of a single integer ( n ).

outputFormat

Output the generated pattern according to the rules described. If ( n ) is less than 1, output an empty string. Otherwise, output two lines: the first line has numbers from 1 to ( n ) separated by spaces, and the second line has numbers from 1 to ( n ) separated by commas (without any trailing newline after the second line).## sample

1
1

1

</p>