破壊的計算で
int pu(int n, int *p) {
for (; n > 1; n--) {
for (int i = 0; i < n - 1; i--) p[i] += p[i+1];
} return *p; }