-
task6
task1 源代码 contestant.hpp #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; // -
回溯法
一、回溯法分析最小重量机器设计问题 问题定义 机器由 n 个部件组成,每个部件可从 m 个供应商采购。wij 为第 i 部件选第 j 供应商的重量,cij 为对应成本。要求总重量最小,且总成本不超过上限 C。 1.1 解空间 解空间为 n 元组集合: X={(x1,x2,…,xn)∣1≤x -
贪心策略、算法的相关理解
一、选点问题的贪心算法分析 问题定义 给定直线上 n 个闭区间 [a1,b1],[a2,b2],...,[an,bn],选择最少的点,使每个区间至少包含一个选定点。 贪心策略 排序:将所有区间按右端点从小到大排序。 选点:初始化选点 p=b1(排序后第一个区间的右端点),计数 coun -
实验6
contestant.hpp #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; // 姓名 std::s -
实验6 文件IO与异常处理
实验任务1 代码组织: contestant.hpp 结构体Contestant定义及其重载运算符函数>>和<<实现 utils.hpp 工具函数实现(排序函数、数据读/写) task1.cpp 应用代码 + main contestant.hpp #pragma once #include <io -
实验6 文件I/O与异常处理
一、实验任务1 源代码task1 1 #pragma once 2 #include <iomanip> 3 #include <iostream> 4 #include <string> 5 6 struct Contestant { 7 long id; // 学号 8 std::string -
实验六
实验任务1 源代码contestant.hpp 1 #pragma once 2 #include <iomanip> 3 #include <iostream> 4 #include <string> 5 struct Contestant { 6 long id; // 学号 7 std::st -
oop-实验6
task1 contestant.hpp 1 #pragma once 2 3 #include<iomanip> 4 #include<iostream> 5 #include<string> 6 7 struct Contestant{ 8 //学号/姓名/专业 9 long id; 10 st -
实验六
实验任务1: contestant.hpp 1 #pragma once 2 #include <iomanip> 3 #include <iostream> 4 #include <string> 5 6 struct Contestant { 7 long id; // 学号 8 std::st -
高级语言程序设计课程第十次个人作业
高级语言程序设计课程第十次个人作业 这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx/ 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 学号:1025004 -
高级语言程序设计课程第十次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 学号:102500332 姓名:郑雷 1 2 3 4 5 6 -
高级语言程序设计第十次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 学号:102500308 姓名:郭心悦 (1)编写一个程序, -
实验6 文件I/O与异常处理
Task1 1.源代码: #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; // 姓名 std::str -
高级语言程序设计课程第十次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 学号:102400102 姓名:方韵希 作业内容 (1)编写 -
高级语言程序设计第十次作业
高级语言程序设计第十次作业 作业所属课程:我的班级 作业内容:第十次作业 姓名:黄洁琳 学号102500306 1 编写一个程序,将一个文件的内容复制到另一个文件中。 2 编写一个程序,统计一个文本文件中的字符数。 fread返回的是一次读取的字符数,一次读取把一个数组尽可能装满 这里字符数是14的 -
第四次作业
对贪心算法的理解 贪心算法是每一步都做局部最优选择,期望通过一系列局部最优得到全局最优解;仅当问题满足贪心选择性质和最优子结构性质时有效,其优势是高效、易实现。 -
高级语言程序设计课程第十次个人作业
高级语言程序设计课程第十次个人作业 这个作业属于哪个课程 https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里 https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 学号 222200424 -
实验6
任务1: 源代码: contestant.hpp #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; // -
Python蓝桥杯第三次学习+感悟
本周学习内容:视频 22 字符串补充——视频 24 打包与解包 由于我之前学Python只是学习基础的东西,所以这些扩展的内容我都没学 现在半个小时能学到很多东西,一个一个写 不如自己实干实地的做笔记 所以就简单说一下自己的进度 感悟: 1.学习方法: 在学习蓝桥杯的课程中,我发现对于基础知识和基础 -
实验6_CPP
任务1 源代码 contestant.hpp #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; // 姓