摘要: ###一.前情回顾 ####1.题目介绍与正确源码 ###二.问题分析 ####1.答辩的时候,发现代码异常,代码有两点错误: #####1.1递归出口有问题。 #####1.2结果出来的时候没有结束递归。 ###三.错误源码 ###四.错误结果 阅读全文
posted @ 2022-12-10 15:22 彭乐祥 阅读(23) 评论(0) 推荐(0)
摘要: #一.解释 ###1.application-config.xml ####1.1总的配置文件,将三个配置联系在一起。 ###2.spring-dao.xml ####2.1管理数据流层,导入并管理mybatis.xml。 ####2.2mybatis.xml管理数据库连接,操作,通过注入mappe 阅读全文
posted @ 2022-12-04 00:36 彭乐祥 阅读(46) 评论(0) 推荐(0)
摘要: ——来源B站狂神说java SSM配置文件整合 1.ApplicationContext.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xml 阅读全文
posted @ 2022-12-04 00:16 彭乐祥 阅读(88) 评论(0) 推荐(0)
摘要: #一.git官网下载太慢 ###1.网址来源 ###2.网址 https://npm.taobao.org/mirrors/git-for-windows/ 阅读全文
posted @ 2022-11-28 12:30 彭乐祥 阅读(42) 评论(0) 推荐(0)
摘要: ###配置 ####一.xml的模板 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSch 阅读全文
posted @ 2022-11-24 16:25 彭乐祥 阅读(32) 评论(0) 推荐(0)
摘要: ###一.题目 ###二.思路 ####深度优先遍历+回溯法 ###三.代码 #include<stdio.h> #include<malloc.h> int n, m; int* path; int count[2];//0代表-,1代表o int key;//第k个 long long int 阅读全文
posted @ 2022-11-22 22:19 彭乐祥 阅读(25) 评论(0) 推荐(0)
摘要: ###一.代码 #include<stdio.h> #include<malloc.h> int n; int* a; int* used; int* path; void init() { printf("请输入n:"); scanf("%d", &n); a = (int*)malloc(siz 阅读全文
posted @ 2022-11-17 19:40 彭乐祥 阅读(62) 评论(0) 推荐(0)
摘要: ###代码 #include<stdio.h> int n; void init() { printf("请输入n:"); scanf("%d", &n); } void output() { int spot = 0; int linecount = 0; int mid = n / 2; int 阅读全文
posted @ 2022-11-16 19:56 彭乐祥 阅读(53) 评论(0) 推荐(0)
摘要: ###一.题目 ###二.思想 #####1.使用合并排序,稳定,也可以选择快排,但不稳定。也可以在一定数量下使用插入排序,在一定数量下使用其他高效率的排序方法。 #####2.使用二分查找最接近目标值的数。 ###三.代码 ps:审题没审清,题目给出的每种面额的money张数是不限的。下面代码是限 阅读全文
posted @ 2022-11-09 22:40 彭乐祥 阅读(100) 评论(0) 推荐(0)
摘要: #一.破碎的砝码 ###1.枚举 #include<stdio.h> typedef struct data { int num1; int num2; int num3; int num4; }data; data dt; int isequal(data dt, int target) { in 阅读全文
posted @ 2022-11-08 20:31 彭乐祥 阅读(29) 评论(0) 推荐(0)