АВТ
Language: Russian
English

Remote Training on Programming

Problems Online status Contests
News FAQ E-learning
For authors:
Register  ||  Login
 
Hello, Guest! Please login or register.

1655. Representations

Time Limit: 1 seconds
Memory Limit:65536KB
Points:100
View Problem Statistics Submit Problem added debug

Вывести все представления натурального числа N (2 ≤ N ≤ 40) суммой натуральных чисел. Перестановка слагаемых нового способа представления не даёт.

Sample

InputOutput
3
1+1+1
1+2
4
1+1+1+1
1+2+1
1+3
2+2

View Problem Statistics Submit Problem discussion Author/source:
Problems from Contests and Camps / School olympiads and couses of Vologda region / Different Contests / VML Combinatorics and Geometry Code Cup /
1654. 2 - Permutations 1655. 1656. 4 - Brackets 1657. 5 - Postcards 1658. 6 - Polygon with minimal perimeter
Problems from Contests and Camps / School olympiads and couses of Vologda region / Impulse - 2019 / Brute Force /
1654. 10 - Permutations 1655. 1656. 12 - Brackets 79. 13 - Crossword
time generating 0.094 sec.
© Copyright VSU, AVT, Nosov D.A., Andrianov I.A.