摘要: 题目链接:https://pintia.cn/problem-sets/994805260223102976/problems/994805273883951104 阅读全文
posted @ 2019-04-12 10:52 Resfeber 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 1025 反转链表 (25 分) 1025 反转链表 (25 分) 1025 反转链表 (25 分) 给定一个常数 K 以及一个单链表 L,请编写程序将 L 中每 K 个结点反转。例如:给定 L 为 1→2→3→4→5→6,K 为 3,则输出应该为 3→2→1→6→5→4;如果 K 为 4,则输出应 阅读全文
posted @ 2019-04-12 10:51 Resfeber 阅读(214) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/994805433955368960 题意 给出每个学生的选课情况,输出每节课选课的学生。 思路 参考了上机指南的代码,用char[n][5]存放学生姓名,vector<int> s 阅读全文
posted @ 2019-04-12 10:49 Resfeber 阅读(227) 评论(0) 推荐(0) 编辑