123456789在这些数之间可以差如+,-,最后等于某个值的组合数
方法一:递归法
void f2(int index,int opt,int sum,int value,int &count)
{
for(int i=index;i<=9;i++){
int t=0;
for(int m=index;m<=i;m++) t=10*t+m;
if(i==9){
sum=sum+opt*t;
if(value==sum) count++;
return ;
}
f2(i+1,1,...
every night in my dreams
i see you, i feel you,
that is how i know you go on
far across the distance
and spaces between us
you have come to show you go on
near, far, wherever you are
i believe that the heart does go on
once more you open the door
and you're here in my heart
and my heart...