11747 - 231001_12/21_practice14-2   

Description

  • It is similar to 231001_12/7_practice12-2.

  • Read the comments in the p-14-2.c file and complete those functions.

  • The main function contain two stacks s1 and s2.

  • There is only one input n, which means the maximum size of the stack s1.

Input

  • Input: An integer n

Output

  • Output: See the sample I/O

  • Output format: 

  1. There is a space after each number.

  2. Change a new line at the end of each line.

 

Sample Input  Download

Sample Output  Download

Tags




Discuss