wanghaichen • 5个月前
using namespace std;
int main() {
double s=1,t=1; for(int i=1;i<=100;i++) { t/=i; s+=t; } printf("%.3lf",s); return 0;
}
评论: