-
算法第四章作业
一、选点问题解答 最优贪心策略: (1)排序:所有区间按右端点非降序排列(核心关键)。 (2)初始:选第一个区间的右端点作为首个选点。 (3)遍历:依次检查后续区间,若当前区间不包含最后一个已选点(左端点>已选点),选当前区间右端点为新选点,选点数加一,直至所有区间被覆盖,即全部遍历完。 贪心选择性 -
实验5
实验任务1: 源代码: 点击查看publisher.cpp #include <iostream> #include <string> #include "publisher.hpp" // Publisher类:实现 Publisher::Publisher(const std::string & -
高级语言程序设计第九次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15595 学号:102500423 姓名:郑泽祥 -
高级语言程序设计课程第九次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15595 学号:102500309 姓名:郑睿杰 1.目的 声明一个结 -
高级语言程序设计第十次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 学号:102500410 姓名:杜惟真 (1)编写一个程序, -
高级语言程序设计课程第十次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 学号:102500409 姓名:周康琳 (1)编写一个程序 -
高级语言程序设计第十次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 学号:102500401 姓名:林含悦 1.编写一个程序,将 -
OOP-实验6
实验任务1 源代码 contestant.hpp,utils.hpp,task1.cpp 点击查看代码 contestant.hpp #pragma once #include <iomanip> #include <iostream> #include <string> struct Contes -
实验五 多态
任务1 1.实验代码 #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string &name_ = ""); // 构造函数 virtu -
高级语言程序设计第十次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx/ 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 学号:102500434 姓名:王志勇 1. 2. 3. -
Test6
任务一 源代码 contestant.hpp 点我展开代码 #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string nam -
实验5
任务1: #include <iostream> #include <string> #include "publisher.hpp" // Publisher类:实现 Publisher::Publisher(const std::string &name_): name {name_} { } -
实验5
任务一: publisher.hpp 1 #pragma once 2 3 #include <string> 4 5 // 发行/出版物类:Publisher (抽象类) 6 class Publisher { 7 public: 8 Publisher(const std::string &na -
实验五
实验五 #任务1 ##代码 #include <memory> #include <iostream> #include <vector> #include "publisher.hpp" void test1() { std::vector<Publisher *> v; v.push_back( -
实验5 多态
实验任务一: 源代码: 1 #pragma once 2 3 #include <string> 4 5 // 发行/出版物类:Publisher (抽象类) 6 class Publisher { 7 public: 8 Publisher(const std::string& name_ = " -
实验五
任务1: 任务1代码: 1 #pragma once 2 3 #include <string> 4 5 // 发行/出版物类:Publisher (抽象类) 6 class Publisher { 7 public: 8 Publisher(const std::string &name_ = " -
高级语言程序设计课程第九次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15595 学号:<102500316> 姓名:<陈艺铭> 1. 2. -
第四章作业
1、“选点问题” (1)贪心策略:将所有区间按结束时间从小到大排序,依次选择当前可以选择的、结束最早的区间。 (2)贪心选择性质的证明:设所有区间S按结束时间排序后为 I1, I2, …, In,其中 I1 结束最早。我们要证明存在某个最优解包含 I1。 设O是一个最优解: (1)若O包含I1,则已 -
视频压缩APP - Alpha版本测试报告
视频压缩APP - Alpha版本测试报告 这个项目属于哪个课程 https://edu.cnblogs.com/campus/gdgy/Class34Grade23ComputerScience/ 作业要求 https://edu.cnblogs.com/campus/gdgy/Class34Gr -
高级语言程序设计课程第十次个人作业
(1)编写一个程序,将一个文件的内容复制到另一个文件中。 (2)编写一个程序,统计一个文本文件中的字符数。 (3)编写一个程序,读取一个文本文件的内容,并在控制台上显示。 (4)编写一个程序,向一个文本文件的末尾追加一行文本。 未执行时的文本内容: 执行后: (5)编写一个程序,读取一个文本文件,删