自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(68)
  • 资源 (5)
  • 收藏
  • 关注

原创 图像处理Python

1. 图片加载、灰度图、 显示和保存from PIL import Image img = Image.open('01.jpg')imgGrey = img.convert('L') img.show()imgGrey.show() img.save('img_copy.jpg')imgGrey.save('img_gray.jpg')2. 图片宽、高、通道模式、平均值获取from PIL import Imageimport numpy as np img = Image

2022-04-05 09:26:54 464

原创 校园平台小程序|失物招领|二手闲置|表白墙|

在这里插入图片描述)https://download.csdn.net/download/Starry_Sky_Dream/85035785?spm=1001.2014.3001.5501

2022-03-30 00:01:54 1076

原创 学生宿舍管理系统|开发文档|项目源码|部署视频|部署教程

tomcat-9.0.2 https://pan.baidu.com/disk/main?from=homeSave#/index?category=all&path=%2F%E6%88%91%E7%9A%84%E8%B5%84%E6%BA%90%2Fapache-tomcat-9.0.2

2022-03-29 23:31:15 4681 3

原创 Python PTA 实验三 组合数据类新

7-1 字典的应用-找出出现次数最多的字符串(高教社,《Python编程基础及应用》习题7-6) (30 分)编写一个程序,从键盘读取未指定个数的字符串,一行一个,以字符串"q"为输入结束标志("q"不列入统计范围)。使用字典找出其中出现次数最多的字符串,打印该字符串及其出现次数。注意:本题的测试用例中将保证只有一个字符串出现次数最多。输入格式:字符串1字符串2…字符串nq输出格式:字符串 出现次数输入样例:abcabcbcdxxxq输出样例:abc 2a=input(

2022-03-25 16:30:34 11804

原创 python PTA 简单数据结构

7-1 删除字符 (40 分)输入一个字符串 str,再输入要删除字符 c,大小写不区分,将字符串 str 中出现的所有字符 c 删除。提示:去掉两端的空格。输入格式:在第一行中输入一行字符 在第二行输入待删除的字符输出格式:在一行中输出删除后的字符串输入样例1:在这里给出一组输入。例如:BeeE输出样例1:在这里给出相应的输出。例如:result: B输入样例2:在这里给出一组输入。例如:7!jdk*!ASyu!输出样例2:在这里给出相应的输出。例如:result:

2022-03-17 22:53:05 1148

原创 Python基础语法 二 基本数据类型

7-1 删除字符 (40 分)输入一个字符串 str,再输入要删除字符 c,大小写不区分,将字符串 str 中出现的所有字符 c 删除。提示:去掉两端的空格。输入格式:在第一行中输入一行字符 在第二行输入待删除的字符输出格式:在一行中输出删除后的字符串输入样例1:在这里给出一组输入。例如:BeeE输出样例1:在这里给出相应的输出。例如:result: B输入样例2:在这里给出一组输入。例如:7!jdk*!ASyu!输出样例2:在这里给出相应的输出。例如:result:

2022-03-17 22:50:15 2354

原创 宿舍管理系统

学生宿舍管理系统的设计与实现DESIGN AND IMPLEMENTATION OF STUDENT DORMITORY MANAGEMENT SYSTEM 姓 名: 张三 学 号: 08220516 班 级: 05软件3 专 业: 计算机 

2022-02-23 20:15:26 25093 5

原创 洛谷算法1-1,高精度

P1042 [NOIP2003 普及组] 乒乓球思路:简单模拟题这里的“模拟”不是指模拟某场比赛的模拟题,而是指让程序完整的按照题目叙述的方式执行运行得到最终答案。同时也会介绍可以计算很大整数的高精度运算方法。这一章对思维与算法设计的要求不高,但是会考验编程的基本功是否扎实。#include<stdio.h>#include<string.h>#include<math.h>int main(){ int a[62501];//这个用来测记录赢还是输,赢为1

2021-06-01 21:14:39 481 2

原创 第十届蓝桥杯大赛软件类省赛C/C++大学B组

#include<stdio.h>#include<string.h>int a[25][6];int maxx=0;int book[21];void dfs(int x,int sum){ if(x==6){ if(sum>maxx) { maxx=sum; } return; } for(int i=1;i<=20;i++) { if(book[i]==0) { book[i]=1; dfs(x+1,s.

2021-04-13 20:14:36 240

原创 2021/1/16

p5019//贪心 p5019在这里插入代码片 //差分 #include<iostream>using namespace std;long long n,d[100005],ans,cf[100005]={0},sum1,sum2;int main(){ cin>>n; for(int i=1;i<=n;i++) cin>>d[i]; for(int i=1;i<=n;i++) { cf[i]=d[i]-d[i-1]; i

2021-01-16 21:24:06 156

原创 地毯填补问题分治递归

题目描述相传在一个古老的阿拉伯国家里,有一座宫殿。宫殿里有个四四方方的格子迷宫,国王选择驸马的方法非常特殊,也非常简单:公主就站在其中一个方格子上,只要谁能用地毯将除公主站立的地方外的所有地方盖上,美丽漂亮聪慧的公主就是他的人了。公主这一个方格不能用地毯盖住,毯子的形状有所规定,只能有四种选择(如图):输入格式:第一行:k,即给定被填补迷宫的大小为 2k第二行:x,y即给出公主所在方格的坐标(x 为行坐标,yy为列坐标),x 和 y 之间有一个空格隔开。输出格式将迷宫填补完整的方案:每一补(

2020-12-05 15:22:52 813

原创 p3392暴力枚举

p3392某国法律规定,只要一个由 N×M 个小方块组成的旗帜符合如下规则,就是合法的国旗。从最上方若干行(至少一行)的格子全部是白色的;接下来若干行(至少一行)的格子全部是蓝色的;剩下的行(至少一行)全部是红色的;现有一个棋盘状的布,分成了 N 行 M 列的格子,每个格子是白色蓝色红色之一,小 a 希望把这个布改成该国国旗,方法是在一些格子上涂颜料,盖住之前的颜色。小a很懒,希望涂最少的格子,使这块布成为一个合法的国旗。输入格式第一行是两个整数N,M。接下来 N行是一个矩阵,矩阵的

2020-12-05 08:04:18 458

转载 字符串操作-find()

1

2020-11-05 10:16:34 203

原创 字符串操作——insert()函数

// inserting into a string#include <iostream>#include <string>int main (){ std::string str="to be question"; std::string str2="the "; std::string str3="or not to be"; std::string::iterator it; /// used in the same order as descr

2020-11-05 10:11:17 1498

原创 字符串操作——substr用法

substr()函数定义于头文件 一、参数:(pos, n)pos - 从此位置开始拷贝n - 拷贝 n 长度的字符串二、形式:s.substr(pos, n)三、解释:返回一个string,包含s中从pos开始的n个字符的拷贝。#include<iostream>#include<string>using namespace std;int main(){ string s="123abc"; string a=s.substr(2,2);//从下标

2020-11-05 10:01:24 2247

原创 HDU-325(并查集)

A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edges between nodes satisfying the following properties.There is exactly one node, called the root, to which no directe

2020-06-07 00:00:45 165

原创 POJ1936最长公共子序列

You have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way. Because of pending patent issues we will not discuss in detail how the strings are generated and inserted in

2020-06-03 22:23:08 221

原创 POJ-3414(DFS)

You are given two pots, having the volume of A and B liters respectively. The following operations can be performed:FILL(i) fill the pot i (1 ≤ i ≤ 2) from the tap;DROP(i) empty the pot i to the drain;POUR(i,j) pour from pot i to pot j; a

2020-05-24 20:42:42 214

原创 HDU1010(深搜+奇偶剪枝)(新手学习)

The doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could feel the ground sinking. He realized that the bone was a trap, and he tried desperately to get out of this

2020-05-24 20:26:05 220

原创 poj3083,BFS+DFS,优先左右

The cornfield maze is a popular Halloween treat. Visitors are shown the entrance and must wander through the maze facing zombies, chainsaw-wielding psychopaths, hippies, and other terrors on their quest to find the exit.One popular maze-walking strategy g

2020-05-19 20:56:46 356

原创 POJ - 1502(最短路Dijkstra or spfa)

BIT has recently taken delivery of their new supercomputer, a 32 processor Apollo Odyssey distributed shared memory machine with a hierarchical communication subsystem. Valentine McKee’s research advi...

2020-05-04 23:16:20 236

原创 LibreOJ - 10093(强连通学习)

原题来自:IOI 1996一些学校连接在一个计算机网络上。学校之间存在软件支援协议。每个学校都有它应支援的学校名单(学校 aa 支援学校 bb,并不表示学校 bb 一定支援学校 aa)。当某校获得一个新软件时,无论是直接得到还是网络得到,该校都应立即将这个软件通过网络传送给它应支援的学校。因此,一个新软件若想让所有连接在网络上的学校都能使用,只需将其提供给一些学校即可。任务请编一个程序,根据...

2020-05-03 23:51:32 301

原创 非常简单的理解-关于sg函数的理解+例题HDU - 1848

百度百科上对sg函数有如下介绍定义任何一个公平组合游戏都可以通过把每个局面看成一个顶点,对每个局面和它的子局面连一条有向边来抽象成这个“有向图游戏”。下 面我们就在有向无环图的顶点上定义Sprague-Grundy函数。首先定义mex(minimal excludant)运算,这是施加于一个集合的运算,表示最小的不属于这个集合的非负整数。例如mex{0,1,2,4}=3、mex{1,3,5}=...

2020-05-03 19:53:38 472

转载 新手强连通学习

一、定义在有向图G中,如果两个顶点u,v间有一条从u到v的有向路径,同时还有一条从v到u的有向路径,则称两个顶点强连通。如果有向图G的每两个顶点都强连通,称G是一个强连通图。有向非强连通图的极大强连通子图,称为强连通分量。图中,子图{1,2,3,4}为一个强连通分量,因为顶点1,2,3,4两两可达。{5},{6}也分别是两个强连通分量。二、tarjan算法 时间复杂度是O(N+M)四条边...

2020-04-29 22:22:29 284

原创 HDU1701,求后序,递归

A binary tree is a finite set of vertices that is either empty or consists of a root r and two disjoint binary trees called the left and right subtrees. There are three most important ways in which th...

2020-04-28 13:14:33 221

原创 新手对二叉树的中序 后序 先序 学习(计蒜客 - T2113)

给出一棵二叉树的中序与后序排列。求出它的先序排列。(约定树结点用不同的大写字母表示,长度 \le≤ 88)。输入格式22 行,均为大写字母组成的字符串,表示一棵二叉树的中序与后序排列。输出格式11 行,表示一棵二叉树的先序。输出时每行末尾的多余空格,不影响答案正确性样例输入BADCBDCA样例输出ABCD1327654此图 先序为 根左右 也就是 1 左(根左右 2 4 ...

2020-04-26 22:14:41 303

原创 POJ - 1521,快速排序,哈夫曼思想

An entropy encoder is a data encoding method that achieves lossless data compression by encoding a message with “wasted” or “extra” information removed. In other words, entropy encoding removes inform...

2020-04-26 21:03:51 206

转载 二分图最大匹配-HDU - 1528

Adam and Eve play a card game using a regular deck of 52 cards. The rules are simple. The players sit on opposite sides of a table, facing each other. Each player gets k cards from the deck and, after...

2020-04-22 00:14:03 196

原创 二分图最大匹配-变形题HDU - 3729

After this year’s college-entrance exam, the teacher did a survey in his class on students’ score. There are n students in the class. The students didn’t want to tell their teacher their exact score; ...

2020-04-22 00:01:02 251

原创 二分图匹配(匈牙利算法(HDU - 2063 ))

RPG girls今天和大家一起去游乐场玩,终于可以坐上梦寐以求的过山车了。可是,过山车的每一排只有两个座位,而且还有条不成文的规矩,就是每个女生必须找个个男生做partner和她同坐。但是,每个女孩都有各自的想法,举个例子把,Rabbit只愿意和XHD或PQK做partner,Grass只愿意和linle或LL做partner,PrincessSnow愿意和水域浪子或伪酷儿做partner。考虑...

2020-04-21 20:29:41 422

原创 二分图最大匹配(匈牙利算法(POJ - 1469))-新手学习

Consider a group of N students and P courses. Each student visits zero, one or more than one courses. Your task is to determine whether it is possible to form a committee of exactly P students that sa...

2020-04-21 19:59:02 194

原创 01背包 HDU - 2546

电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一定可以购买成功(即使购买后卡上余额为负),否则无法购买(即使金额足够)。所以大家都希望尽量使卡上的余额最少。某天,食堂中有n种菜出售,每种菜可购买一次。已知每种菜的价格以及卡上的余额,问最少可使卡上的余额为多少。Input多组数据。对于每组数据:第一行为正整数n,表示菜的...

2020-04-21 15:10:06 188

原创 新手学01背包-(HDU-2062)

Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such as dog’s , cow’s , also he went to the grave …The bone collector ...

2020-04-20 17:16:10 175

原创 (01背包)-新手学背包

Bessie has gone to the mall’s jewelry store and spies a charm bracelet. Of course, she’d like to fill it with the best charms possible from the N (1 ≤ N ≤ 3,402) available charms. Each charm i in the ...

2020-04-20 16:37:06 290 2

转载 POJ - 1511(最短路+spfa+逆向思维)

In the age of television, not many people attend theater performances. Antique Comedians of Malidinesia are aware of this fact. They want to propagate theater and, most of all, Antique Comedies. They ...

2020-04-20 14:32:28 227

原创 POJ - 3255(双向次短路)

Bessie has moved to a small farm and sometimes enjoys returning to visit one of her best friends. She does not want to get to her old home too quickly, because she likes the scenery along the way. She...

2020-04-19 20:38:47 280

转载 蓝桥模拟八

题目问题描述如果一个序列的奇数项都比前一项大,偶数项都比前一项小,则称为一个摆动序列。即 a[2i]<a[2i-1], a[2i+1]>a[2i]。  小明想知道,长度为 m,每个数都是 1 到 n 之间的正整数的摆动序列一共有多少个。输入格式输入一行包含两个整数 m,n。输出格式输出一个整数,表示答案。答案可能很大,请输出答案除以10000的余数。样例输入3 4样...

2020-04-18 11:02:31 361

原创 优先队列+BFS(2)

The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room numbers on their offices.— It is a matter of sec...

2020-04-15 20:13:59 232 2

原创 优先队列+BFS训练(1)

A friend of you is doing research on the Traveling Knight Problem (TKP) where you are to find theshortest closed tour of knight moves that visits each square of a given set of n squares on a chessboa...

2020-04-15 20:12:46 274

转载 CodeForces - 1249E

You are planning to buy an apartment in a nn-floor building. The floors are numbered from 11 to nn from the bottom to the top. At first for each floor you want to know the minimum total time to reach ...

2020-04-13 23:35:01 266

Python基础课程PPT第四章

Python基础课程PPT

2022-03-22

学生宿舍管理系统毕设设计

非常全面非常全面 本文基于Jsp+Servlet+MySql技术的在学生宿舍管理系统在分析设计时遵循软件工程的思想,文中详细阐述了系统需求分析、系统设计、数据库设计、系统实现以及系统测试五方面。系统以Java编程语言为基础,采用了B/S体系结构,采用免费、小巧、易用的MySql作为数据库服务器,Tomcat作为Web服务器,并成功调试运行。系统面向系统管理员、宿舍管理员和学生三大用户群体,实现了宿舍管理员管理功能、学生管理功能、宿舍楼管理功能、寝室管理功能和考勤管理功能。

2022-02-23

校园平台小程序项目,包含失物招领 表白墙 二手市场 校园咨询等功能 含有项目演示视频

目 录 摘 要 1 1.1 本文项目的研究背景及意义 2 2.1 项目所需工具 2 2.1.1 微信开发者工具 2 2.1.2 微信小程序云开发 5 2.2 项目功能分析 6 2.2.1 离线数据分析 6 3. 1 设计思路 6 3.2 设计具体实现 7 3.2.1云开发技术的使用 7 3.2.2 主界面的实现 9 3.2.3实现模糊查询功能之需求 12 3.2.4 登录的实现 14 3.2.5 四个主要功能的代码分析 14 4.1 反映课题成果的主要附件目录 19

2022-03-25

Python基础课程PPT

Python基础课程PPT 第5章

2022-03-22

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除