-
选点问题
选点问题分析 问题描述 给定n个区间[lᵢ, rᵢ],选择最少的点,使得每个区间至少包含一个点。 我的贪心策略 我采用按右端点排序的贪心策略: 算法步骤: 将所有区间按右端点从小到大排序 初始化选择的点集为空,计数器count=0 遍历排序后的区间: 如果当前区间不包含任何已选择的点 则选择当前区间 -
实验六-文件I/O与异常处理
实验任务1源代码: 1 #pragma once 2 #include <iomanip> 3 #include <iostream> 4 #include <string> 5 6 struct Contestant { 7 long id; // 学号 8 std::string name; / -
实验6
实验任务1 contestant.hpp #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; // 姓名 -
高级语言程序设计课程第十次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 学号:102500435 姓名:林俊杰 (1)编写一个程序, -
102302103叶懿晴食鲜配·智厨 :数据采集项目实践
102302103叶懿晴食鲜配·智厨 :数据采集项目实践 一、前期调研 1、制作知乎爬虫上班族线上买菜原因分析报告 为了深入分析了上班族群体选择线上买菜的主要原因及其分布情况,我爬取知乎评论并可视化 分析结果显示,时间便利性是上班族选择线上买菜的最核心驱动力。 核心发现 深度洞察 用户画像 典型用户 -
实验6
#pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; // 姓名 std::string major; // -
oop实验六
实验六 test1 源代码: 1 #pragma once 2 #include <iomanip> 3 #include <iostream> 4 #include <string> 5 6 struct Contestant { 7 long id; // 学号 8 std::string na -
实验6
实验任务1 test1.c #include <stdio.h> #include <string.h> #define N 3 // 运行程序输入测试时,可以把N改小一些输入测试 typedef struct student { int id; // 学号 char name[20]; // 姓名 -
Experiment6
前三个任务代码均编写并运行验证 Task4: 1 #include <stdio.h> 2 #define N 10 3 typedef struct { 4 char isbn[20]; // isbn号 5 char name[80]; // 书名 6 char author[80]; // 作 -
复审与事后分析
团队作业6 复审:https://www.cnblogs.com/vemos/p/19376472 事后分析:https://www.cnblogs.com/vemos/p/19376546 -
实验六
任务一 源代码task1.cpp #include <algorithm> #include <iostream> #include <stdexcept> #include <vector> #include "contestant.hpp" #include "utils.hpp" const -
实验六
任务一 contestant.hpp #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; // 姓名 st -
实验6 文件I/O与异常处理
实验任务1: 1.源代码 #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; // 姓名 std::str -
实验6
task4 #include <stdio.h> #include <stdlib.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double -
高级语言程序设计课程第十次个人作业
   -
高级语言程序设计课程第十次个人作业
这个作业属于课程:https://edu.cnblogs.com/campus/fzu/gjyycx/ 这个作业要求在:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 学号:102500402 姓名:林睿滢 (1)编写一个程序,将一个 -
实验六
实验任务4 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价 i