| Output the Yanghui Triangel |
|
|
| Total number of submissions: |
225 |
By Quantity: |
59 |
|
|
|
|
|
|
|
|
|
Time limit: 1 seconds Memory limit: 256 MB topic description Write program to output the Yanghui Triangel of N*n, where n was an input. The Yanghui Triangel is defined as 1 1 1 1 2 1 1 3 3 1 1 4 6) 4 1 1 5 10 10 5 1 .......................... Input formatEach lines of the input is a integer that denotes the dimension of the Yanghui Triangel that would be outputted to the S Creen. An input 0 denotes the end of the input. Output formatEach value of the output was followed by a TAB, which include the last value of a line. Sample input Copy sample input to Clipboard5670 Sample output11112113311464111112113311464115101051111121133114641151010511615201561 |
the tab in the title indicates the tab \ t, which was not noticed at first. The two-digit output and the one-digit output were also badly dug.
SOJ. Output the Yanghui Triangel