Masala #NUDZH0TACE
3 Tijoratchi #2
N ta bir xil idishning A tasida to‘la, B tasida yarim yog‘ bor, C tasi esa bo‘sh. 3 ta tijoratchi yog‘ni va idishlarni teng bo‘lib olishdi. Yog‘ni idishdan idishga quymasdan tijoratchilar olishi mumkin bo'lgan barcha usullar sonini toping.
Yagona qatorda n,a,b,c butun sonlarda kiritiladi. \((1≤N≤600)\), \((1≤A,B,C≤598)\)
Masala javobini chiqaring.
# | input.txt | output.txt |
---|---|---|
1 |
21 7 7 7 |
6 |
Masala javoblari butun yechimda kafolatlangan.
Masalan: 21 7 7 7 da
1 5 1
3 1 3
3 1 3
2 3 2
2 3 2
3 1 3
2 3 2
3 1 3
2 3 2
3 1 3
1 5 1
3 1 3
3 1 3
2 3 2
2 3 2
3 1 3
3 1 3
1 5 1
jami 6 xil usul mavjud.