这是我的问题
for(i=1;i<=n;i++) for(j=1;j<=i;j++) for(k=1;k<=j;k++) x++;
现在,我想知道语句x ++; 多少次迭代?我想知道解决方案的公式.
c++ algorithm math time-complexity
algorithm ×1
c++ ×1
math ×1
time-complexity ×1