11 2022 档案

摘要:#一.git官网下载太慢 ###1.网址来源 ###2.网址 https://npm.taobao.org/mirrors/git-for-windows/ 阅读全文
posted @ 2022-11-28 12:30 彭乐祥 阅读(36) 评论(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 彭乐祥 阅读(29) 评论(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 彭乐祥 阅读(21) 评论(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 彭乐祥 阅读(56) 评论(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 彭乐祥 阅读(46) 评论(0) 推荐(0)
摘要:###一.题目 ###二.思想 #####1.使用合并排序,稳定,也可以选择快排,但不稳定。也可以在一定数量下使用插入排序,在一定数量下使用其他高效率的排序方法。 #####2.使用二分查找最接近目标值的数。 ###三.代码 ps:审题没审清,题目给出的每种面额的money张数是不限的。下面代码是限 阅读全文
posted @ 2022-11-09 22:40 彭乐祥 阅读(94) 评论(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 彭乐祥 阅读(23) 评论(0) 推荐(0)