摘要: 【题目描述】 用高精度计算出 S=1!+2!+3!+…+n!(n≤50) S=1!+2!+3!+…+n!(n≤50) ,其中“ ! ! ”表示阶乘,例如: 5!=5×4×3×2×1 5!=5×4×3×2×1 。 输入正整数 n n ,输出计算结果 S S 。 【输入】 一个正整数 n n 。 【输出 阅读全文
posted @ 2019-12-05 22:03 ACWink 阅读(562) 评论(0) 推荐(0) 编辑
摘要: 只要知道指针的作用就课以简单理解: #include<iostream> using namespace std; struct node { int date; node *next; } node *p,*r,*head; int main() { int x; cin >> x; head = 阅读全文
posted @ 2019-12-05 16:13 ACWink 阅读(1433) 评论(0) 推荐(0) 编辑