-
高级语言程序设计课程第三次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/2026gjyycxsj/homework/16749 学号:0102600216 姓名: -
第三章
递归方程:dp[i][j] = a [i][j] + min ( dp [i-1][j], dp [i][j-1] ) 含义:到达 (i,j) 只能从上方 (i-1,j) 向下走,或者从左方 (i,j-1) 向右走,取两条路径里费用更小的一条,再加上当前格子费用 a [i][j]。 边界条件:dp -
7-4 最低通行费
7-4 最低通行费 动态规划分析 1.1 递归方程式 关键点:从(1,1)到(N,N)至少经过2N-1个格子,题目要求恰好2N-1时间,故只能向右或向下走。 设dp[i][j]为从(1,1)到(i,j)的最小费用: 边界:dp[1][1]=cost[1][1] 第一行:dp[1][j]=dp[1][ -
算法第三章作业
动态规划算法学习与实践——最低通行费问题 一、实践报告 1.1 最优子结构分析及递归方程 (1)问题分析 本题给定一个 (N × N) 的正方形网格,每个小方格都有对应的通行费用。商人需要从网格左上角出发,到达右下角,并且必须在 (2N - 1) 个单位时间内完成通行。每经过一个小方格需要花费一个单 -
第二次作业
https://gitee.com/hu-zishuo-1/second-assignment.git 实现一个命令行文本计数统计程序。能正确统计导入的纯英文txt文本中的字符数,单词数,句子数。 命令模式:wc.exe [参数] [文件名] wc.exe -c file.txt 统计字符数 wc. -
实验2
实验一 代码 点击查看代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 100 #define CNT 5 int main() { int number; int i; srand(time(0)); for -
实验2
#任务1 ##源代码 #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 100 #define CNT 5 int main(){ int number; int i; srand(time(0)); for(i=0;i< -
task2
实验1 运行代码 点击查看代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 100 #define CNT 5 int main(){ int number; int i; srand(time(0)); fo -
实验二
任务一 源代码task1.c 点击查看代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 100 #define CNT 5 int main() { int number; int i; srand(time( -
高级语言程序设计第二次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/2026gjyycxsj/homework/16748 学号:0102600131 姓名: -
高级语言程序设计第二次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj/ 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/2026gjyycxsj/homework/16748 学号:0102600119 姓名 -
实验二
task 1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 100 #define CNT 5 int main() { int number; int i; srand(time(0)); // 以当前系统时间 -
高级语言程序设计第一次作业
这个作业属于哪个课程:2026高级语言程序设计 这个作业要求在哪里:高级语言程序设计第一次作业 学号:052101413 姓名:任广湃 目录 一.安装环境 二.运行程序 2.1 first.c程序 2.2 fathm_ft.c程序 2.3 two_func.c程序 三.后台博文编辑页面 四.总结与思 -
实验一
任务一 源代码1: include<stdio.h> int main() { printf(" O \n" ); printf("\n" ); printf("I I\n" ); return 0 ; } 运行截图 源代码2: include<stdio.h> int main() { print -
实验1
任务1 源代码: 点击查看代码 #include <iostream> #include <string> #include <vector> #include <algorithm> template<typename T> void output(const T &c); void test1( -
实验1
任务1 1 点击查看代码 #include <stdio.h> int main() { printf(" o\n"); printf("<H>\n"); printf("I I\n"); printf(" o\n"); printf("<H>\n"); printf("I I\n"); retur -
实验1
实验结论 1. 实验任务1 源代码 #include <iostream> #include <string> #include <vector> #include <algorithm> // 模板函数声明 template<typename T> void output(const T &c); -
实验1
任务一 #include<stdio.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); printf(" o \n"); printf("<H>\n"); printf("I I\n"); return 0; } # -
高级语言程序设计第一次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj/homework/16747 学号:0102600234 姓名:赖 -
实验1
四、实验结论 1.实验任务1 // 现代C++标准库、算法库体验 // 本例用到以下内容: // 1. 字符串string, 动态数组容器类vector、迭代器 // 2. 算法库:反转元素次序、旋转元素 // 3. 函数模板、const引用作为形参 #include <iostream> #inc