自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(30)
  • 资源 (3)
  • 收藏
  • 关注

原创 【tushare】电影接口json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

原因tushare realtime_boxoffice使用的艺恩票房智库接口老旧解决def realtime_boxoffice(retry_count=3,pause=0.001,size=100): """ 获取实时电影票房数据 数据来源:EBOT艺恩票房智库 Parameters ------ retry_count : int, 默认 3 如遇网络等问题重复执行的次数 pause :

2021-12-24 21:40:49 1133

原创 2021年度训练联盟热身训练赛第五场 G-Human Pyramid 动态规划

链接:牛客网题目The Barefooted Acrobatics People’s Club wants to make a group photo in an original way. For the photo, they want to make a human pyramid, where each person rests on the ground or rests on the shoulders of two people below him or her.Making a hum

2021-04-11 17:15:50 557

原创 Network POJ - 1861kruskal最小生成树

Network POJ - 1861Andrew is working as system administrator and is planning to establish a new network in his company. There will be N hubs in the company, they can be connected to each other using cables. Since each worker of the company must have access

2021-03-04 19:28:30 189 1

原创 2021牛客寒假算法基础集训营2

链接:链接来源:牛客网题目描述算数基本定理,又称唯一分解定理,算术基本定理可表述为:任何一个大于1的自然数 N,如果N不为质数,那么N可以唯一分解成有限个质数的乘积。即N=p_1^{e_1}\cdot p_2{e_2}…p_m{e_m}(p_1 < p_2< … p_m)N=p1e1​​ ⋅p2e2​​ …pmem​​ (p1​ 牛牛最近对于质因数分解产生了浓厚的兴趣。牛牛定义了一个函数F(x),它表示将x做质因数分解后得到的数字从小到大升序排列

2021-02-03 18:03:06 361 1

原创 cf1478C Nezzar and Symmetric Array

Long time ago there was a symmetric array a1,a2,…,a2n consisting of 2n distinct integers. Array a1,a2,…,a2n is called symmetric if for each integer 1≤i≤2n, there exists an integer 1≤j≤2n such that ai=−aj.For each integer 1≤i≤2n, Nezzar wrote down an integ

2021-01-29 13:37:43 319 1

原创 Window Pains POJ - 2585 AOV拓扑排序

Boudreaux likes to multitask, especially when it comes to using his computer. Never satisfied with just running one application at a time, he usually runs nine applications, each in its own window. Due to limited screen real estate, he overlaps these windo

2021-01-27 23:08:37 123 1

原创 cf1475C. Ball in Berland

At the school where Vasya is studying, preparations are underway for the graduation ceremony. One of the planned performances is a ball, which will be attended by pairs of boys and girls.Each class must present two couples to the ball. In Vasya’s class, a

2021-01-26 13:00:20 327

原创 Basic Wall Maze POJ - 2935简单bfs

In this problem you have to solve a very simple maze consisting of:a 6 by 6 grid of unit squares3 walls of length between 1 and 6 which are placed either horizontally or vertically to separate squaresone start and one end markerA maze may look like thi

2021-01-24 14:50:34 77

原创 ZOJ1008 Gnome Tetravex 暴力/DFS

Hart is engaged in playing an interesting game, Gnome Tetravex, these days. In the game, at the beginning, the player is given nn squares. Each square is divided into four triangles marked four numbers (range from 0 to 9). In a square, the triangles are th

2020-11-24 11:03:25 148 1

原创 zoj2412 Farm Irrigation 简单的DFS

Farm IrrigationBenny has a spacious farm land to irrigate. The farm land is a rectangle, and is divided into a lot of samll squares. Water pipes are placed in these squares. Different square has a different type of pipe. There are 11 types of pipes, which

2020-11-23 22:35:42 91

原创 havel-hakimi模板题 Frogs‘ Neighborhood POJ - 1659

未名湖附近共有N个大小湖泊L1, L2, …, Ln(其中包括未名湖),每个湖泊Li里住着一只青蛙Fi(1 ≤ i ≤ N)。如果湖泊Li和Lj之间有水路相连,则青蛙Fi和Fj互称为邻居。现在已知每只青蛙的邻居数目x1, x2, …, xn,请你给出每两个湖泊之间的相连关系。Input第一行是测试数据的组数T(0 ≤ T ≤ 20)。每组数据包括两行,第一行是整数N(2 < N < 10),第二行是N个整数,x1, x2,…, xn(0 ≤ xi ≤ N)。Output对输入的每组测试数

2020-11-22 23:38:30 121

原创 cf-678div2-C.Binary Search

C. Binary SearchAndrey thinks he is truly a successful developer, but in reality he didn’t know about the binary search algorithm until recently. After reading some literature Andrey understood that this algorithm allows to quickly find a certain number x

2020-10-25 15:58:43 256

原创 CodeForces - 1201C. Maximum Median

You are given an array a of n integers, where n is odd. You can make the following operation with it:Choose one of the elements of the array (for example ai) and increase it by 1 (that is, replace it with ai+1).You want to make the median of the array th

2020-10-10 15:34:37 246

原创 Codeforces Round #675 (Div. 2) B. Nice Matrix

B. Nice Matrixtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA matrix of size n×m is called nice, if all rows and columns of the matrix are palindromes. A sequence of integers (a1,a2,…,ak) is a pal

2020-10-09 19:57:44 123

原创 Codeforces Round #577 (Div. 2)A.Fence

A. Fencetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYura is tasked to build a closed fence in shape of an arbitrary non-degenerate simple quadrilateral. He’s already got three straight fence seg

2020-10-09 19:36:25 181

原创 2020 计蒜之道 热身赛 E构造字符串

给定若干个小写英文字母,请你用这些英文字母组成 nn 个字符串,字符串可以是空串。要求这 nn 个字符串的最长公共前缀最长。求出这个最长的长度。所有字母都要用完,且每个字母只能用在一个字符串里。名词解释前缀 是指一个字符串从第一个字符开始的连续若干个字符组成的字符串。前缀可以为空串。比如字符串 “aab” 的前缀有四个,分别是 “”, “a”, “aa”, “aab”我们说一个字符串 ss 是某些串的 公共前缀,当且仅当这个串是每个字符串的 前缀。每一个 公共前缀 都是一个字符串,是字符串就有长度

2020-09-10 15:44:05 117

原创 CF-1388B. Captain Flint and a Long Voyage-思维

B. Captain Flint and a Long Voyagetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputCaptain Flint and his crew keep heading to a savage shore of Byteland for several months already, drinking rum and

2020-08-01 23:06:03 444

原创 Python 模拟炮弹GUI 界面实现

第一次码的完整的python代码主要目的熟悉一下python 类,tkinter的使用,pyinstaller实现的对py直接封装成exe 以及水掉python期末的300行大作业模拟炮弹这个简陋的程序时用来模拟炮弹的飞行,通过输入炮弹的角度以及速度以使炮弹命中靶子。功能包括自行选择游戏难度(影响靶子的大小)可存储的游戏排名(只包括前10名)部分可能的非法输入时提示错误链接emm这里是封装好了的exe代码程序的各个部分的注解都标上去了使用了大量的GUI界面(不然我咋弄个300行

2020-06-18 19:09:48 2360 4

原创 CodeForces - 192B_Walking in the Rain_完整翻译_详细题解

【Walking in the Rain】题目描述 Berland的反对派打算组织群众在林荫大道上游行示威,这条大道由n块瓦排成一排,并从左到右依次从1到n编号。反对派需要从第1块开始走,最后走到第n块。合法的行走操作包括向右移动一次,或者跳过一块瓦,更确切的说,如果你站在第i块瓦片 (i<n-1),你可以到达第i+1或第i+2块瓦片(如果你站在第n-1的瓦片上时,你只能到...

2020-04-04 17:41:19 633

原创 CodeForces 148D【Bag of mice】-动态规划-详细分析-完整翻译

【Bag of mice】题目描述龙与公主在争论新年前夜应该做些什么。龙提议说飞到山上观赏仙女们在月光下跳舞,而公主认为她们只应该早些去睡觉。他们希望能达成一个友好的约定,于是决定听天由命。这里有一个一开始装有w只白鼠,b只黑鼠的袋子,他们轮流从中抓出一只老鼠。先抓出白鼠的人获胜。当龙从袋子中抓取一只老鼠时,其他老鼠会被惊吓到,并且会随机跳出来一只老鼠(公主取出小鼠时很小心所以不会惊吓到其他...

2020-04-03 13:01:52 138

原创 HDU1053-Entropy-优先队列+哈夫曼树编码

Problem DescriptionAn 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 enc...

2020-03-30 22:24:05 351

原创 hdu-2087 剪花布条

一块花布条,里面有些图案,另有一块直接可用的小饰条,里面也有一些图案。对于给定的花布条和小饰条,计算一下能从花布条中尽可能剪出几块小饰条来呢?Input输入中含有一些数据,分别是成对出现的花布条和小饰条,其布条都是用可见ASCII字符表示的,可见的ASCII字符有多少个,布条的花纹也有多少种花样。花纹条和小饰条不会超过1000个字符长。如果遇见#字符,则不再进行工作。Output输出能从花...

2020-03-18 22:58:54 263

原创 HDU 1022 Train Problem I

Problem DescriptionAs the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because the trains in the Ignatius Train Station is th...

2020-03-17 10:12:10 87

原创 堆栈-学习笔记

引入–>计算机的表达式求值中缀表达式-运算符号在两个运算数中间后缀表达式-运算符号在两个运算数之后---->堆栈先入后出只在一端(栈顶,top)插入删除插入:push删除:pop顺序存储实现使用数组实现,还需要一个指针指向栈顶链式存储实现在链表头进行操作(链尾操作时难以删除)push:头插法插入节点pop:直接删除头节点下一个...

2020-03-17 08:56:27 181

原创 KMP next数组理解

3.15周末学长教了一下KMP,但是对next的构造尚存疑.在饶了一整天头以后勉强弄懂了…记录一下比较混乱就是了…将next数组记录的值看作是对称程度这里的对称指的的字符块对称而非轴对称;--------->当next[t]值为0时:显然就意味着从字符串的开头到这个t部分的话对称性是0:即当继续计算下一位的next[t+1] 的大小时只需比较第n+1位的字符与首字符是否相同即可...

2020-03-16 21:12:22 107

原创 树-入门

树树由n个几点组成的有限集合n=0时称为空树定义最顶端的称为根,以r表示其下的节点及其所统领的集合称为子树子树应为不相交的集合树的术语结点的度_degree 结点子树个数树的度 树所有结点的最大度叶结点_leaf 度为0的结点父结点_parent子结点_child兄弟结点_sibling 具有统一父结点的各结点祖先结点_ancestor 沿树根到某一结点路径上的...

2020-03-10 09:57:17 117

原创 Python 练习实例4

题目:输入某年某月某日,判断这一天是这一年的第几天?https://www.runoob.com/python/python-exercise-example4.html思路:先用列表存下每个月日期然后判断闰月修正2月份的日期调试的时候在input().split()卡了很久…居然忘记了split后面的括号…绝了'''题目:输入某年某月某日,判断这一天是这一年的第几天?'''...

2020-03-08 12:04:33 103

转载 Python 练习实例2

Python 练习实例2题目:企业发放的奖金根据利润提成。利润(I)低于或等于10万元时,奖金可提10%;利润高于10万元,低于20万元时,低于10万元的部分按10%提成,高于10万元的部分,可提成7.5%;20万到40万之间时,高于20万元的部分,可提成5%;40万到60万之间时高于40万元的部分,可提成3%;60万到100万之间时,高于60万元的部分,可提成1.5%,高于100万元时,超过1...

2020-03-08 11:12:28 152

原创 Python 练习实例1

Python 练习实例1Python 100例 Python 100例菜鸟教程题目:有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少?程序分析:可填在百位、十位、个位的数字都是1、2、3、4。组成所有的排列后再去掉不满足条件的排列。t=0for i in range(1,5): for j in range(1,5): for k ...

2020-03-08 10:32:21 112

原创 ecjtu-19-20.3-第一周练习-A - Balanced Lineup

A - Balanced Lineuphttps://vjudge.net/contest/360158#problemFor the daily milking, Farmer John’s N cows (1 ≤ N ≤ 50,000) always line up in the same order. One day Farmer John decides to organize a...

2020-03-05 20:48:42 123

学生日常记账系统_记账系统.zip

使用servlet+jsp+sqlserver技术 附带各个模块时序图,流程图,数据库er图,系统设计图,课程设计报告,各个节点报告 附带sql脚本,开箱即用 体验链接:http://112.74.186.67/(建议edge访问)

2021-06-30

Java学生信息管理系统.zip

附带讲解视频以及系统报告 功能包括学院管理,学生管理,班级管理,课程管理 使用GUI图形界面

2021-06-17

Java大作业——课程表工具.zip

使用java编写,附简单说明书 实现的功能 1.登陆本人微信ID后获取当日课程情况 2.自动定时更新当日课程 3.填写手机端推送URL后设定时间定时向手机端推送课程

2021-06-17

空空如也

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

TA关注的人

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