<math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle mathcolor="Red" displaystyle="true">
<mfrac>
<mrow>
<mi>a</mi>
<mo>+</mo>
<mi>b</mi>
</mrow>
<mn>2</mn>
</mfrac>
<mo>≥</mo>
<msqrt>
<mrow>
<mi>a</mi>
<mi>b</mi>
</mrow>
</msqrt>
</mstyle>
</math>
<svg>
<polygon points="70.444,218.89 15.444,118.89 70.444,18.89 180.444,18.89 235.444,118.89 180.444,218.89" fill="rgb(234,234,234)" stroke-width="1" stroke="rgb(0,0,0)"/>
</svg>
void main() {
unsigned long long digits[2][12] = {
{ 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} };
int row = 0;
int N = 20;
unsigned long long res;
res = 0;
for (int j = 1; j < 10; j++)
res += digits[row][j+1];
cout << "1 => " << res << endl;
for (int i = 1; i < N; i++) {
for (int j = 0; j < 10; j++)
digits[1-row][j+1] = digits[row][j]+digits[row][j+1]+digits[row][j+2];
row = 1-row;
res = 0;
for (int j = 1; j < 10; j++)
res += digits[row][j+1];
cout << (i+1) << " => " << res << endl;
}
}
var pos;
return ((pos = long_text.indexOf(" ", max_length)) == -1 ? long_text : long_text.substr(0, pos) + postfix);
}
console.log(short_text("Это очень длинный текст", 10, "???"));