#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
int fuckt(int n){
int i, res;
int *m
= (int *)malloc(sizeof(int) * (n
+ 1)); m[0] = 1;
for(i = 1; i <= n; i++)
m[i] = m[i - 1] * i;
res = m[n];
return res;
}
int main(void) {
int f = fuckt(9);
return 0;
}
I2luY2x1ZGUgPHN0ZGxpYi5oPgojaW5jbHVkZSA8c3RkaW8uaD4KI2luY2x1ZGUgPGN0eXBlLmg+CgppbnQgZnVja3QoaW50IG4pewoJaW50IGksIHJlczsKCWludCAqbSA9IChpbnQgKiltYWxsb2Moc2l6ZW9mKGludCkgKiAobiArIDEpKTsKCW1bMF0gPSAxOwoJCglmb3IoaSA9IDE7IGkgPD0gbjsgaSsrKQoJCW1baV0gPSBtW2kgLSAxXSAqIGk7CglyZXMgPSBtW25dOwoJZnJlZShtKTsKCXJldHVybiByZXM7Cn0KCmludCBtYWluKHZvaWQpIHsKCWludCBmID0gZnVja3QoOSk7CglwcmludGYoIiVkIiwgZik7CglyZXR1cm4gMDsKfQ==