#include <stdlib.h> #include <math.h> int CalcN(int n) { double tmp = 0; for (int i=1; i<=n; i++) tmp += log((double)i); return (int)floor(tmp / log(2.0)) + 1; }
33,007
社区成员
35,326
社区内容
加载中
试试用AI创作助手写篇文章吧