- 博客(2)
- 收藏
- 关注
原创 约瑟夫问题(单链表的应用)
思想:1.把每个数字依次放入到单链表中。 2.不符合条件的删除其节点。 3.剩下的节点就是答案。 #include<stdio.h> #include<stdlib.h> typedef struct LNode{ int data; struct LNode *next; }LNode; int main(){ int num; printf("请输入总数:...
2019-05-10 10:47:30
515
原创 PTA--基础编程题目集-fn函数题-6-7 统计某类完全平方数 (20 分)
PTA–4-7 统计某类完全平方数 (20分) /* 题目中代码 */ #include <stdio.h> #include <math.h> int IsTheNumber ( const int N ); int main() { int n1, n2, i, cnt; scanf("%d %d", &n1, &n2); ...
2019-05-10 10:32:21
1031
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅