АВТ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

132. Треугольник Паскаля

Time Limit: 1 seconds
Memory Limit:64000KB
Points:2
View Problem Statistics Submit Problem added Administrator

Треугольник Паскаля

Дано натуральное n<20. Получить первые n строк треугольника Паскаля.

Входные данные

  n - число строк треугольника Паскаля. 

Выходные данные

  Первые n строк треугольника Паскаля.   

Пример входных данных

7
  

Пример выходных данных

1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
1 6 15 20 15 6 1
  
Автор: Вабищевич А. Ю.

View Problem Statistics Submit Author/source:
Educational Courses / Programming and Basics of Algorithmization / Cycles /
131. Сумма цифр 132. 129. Числа Фибоначчи
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.063 sec.
© Copyright VSTU, AVT, Nosov D.A.