int main()
{
const int N = 1000;
int a[N];
int s = 1;
for (int n = N; n >= 1; --n)
{
int r = s % n;
s = s / n + 1;
for (int i = 0; i < N; ++i)
{
r = r * 10 + a[i];
a[i] = r / n;
r %= n;
}
for (int i = N - 1; i > 0; --i)
{
a[i - 1] += a[i] / 10;
a[i] %= 10;
}
s += a[0] / 10;
a[0] %= 10;
}
printf("%d.", s);
for (int i = 0; i < N; ++i)
printf("%d", a[i]);
printf("\n");
return 0;
}
这个可以精确e的1000次代码的算法是什么意思
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答
- mianbaohebg 2016-12-17 15:04关注
error reading the project file or the SLD configuration
各位大神 http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial#QGIS-Server-configuration
我按照链接的步骤 安装了OsGeo4W-Installer 用Windows7 系统
appache 安装似乎不正确,因为链接不解决 无用评论 打赏 举报
悬赏问题
- ¥15 c程序不知道为什么得不到结果
- ¥40 复杂的限制性的商函数处理
- ¥15 程序不包含适用于入口点的静态Main方法
- ¥15 素材场景中光线烘焙后灯光失效
- ¥15 请教一下各位,为什么我这个没有实现模拟点击
- ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
- ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
- ¥20 有关区间dp的问题求解
- ¥15 多电路系统共用电源的串扰问题
- ¥15 slam rangenet++配置