摘要: 7-28 猴子选大王 (20分) https://pintia.cn/problem-sets/14/problems/808 题意:n个猴子围成圈,从1到3循环报数,为3就退出直到只剩最后一个猴子,输出该猴子初序; 思路:模拟题,数组存储,对数组1~3循环编号,同时k从1递增,逢4变1,数组编号逢 阅读全文
posted @ 2019-12-10 10:08 yyer 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 7-13 日K蜡烛图 (15 分) https://pintia.cn/problem-sets/14/problems/793 AC代码: 1 #include <cstdio> 2 #include <cmath> 3 #include <algorithm> 4 using namespace 阅读全文
posted @ 2019-12-10 08:53 yyer 阅读(579) 评论(0) 推荐(0) 编辑
摘要: 1.搜索链表 http://oj.jxust.edu.cn/contest/problem?id=1644&pid=1 Problem Description 从键盘上输入n个学生的信息:学号,姓名, 数学, 英语, 语文的成绩,用这些信息构建一个动态链表。再从键盘上输入一个学号, 用顺序查找的方法 阅读全文
posted @ 2019-12-10 08:52 yyer 阅读(184) 评论(0) 推荐(0) 编辑