11747 - 231001_12/21_practice14-2
|
Time |
Memory |
| Case 1 |
1 sec |
32 MB |
| Case 2 |
1 sec |
32 MB |
| Case 3 |
1 sec |
32 MB |
| Case 4 |
1 sec |
32 MB |
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
Output
-
Output: See the sample I/O
-
Output format:
-
There is a space after each number.
-
Change a new line at the end of each line.
Tags