- 博客(24)
- 资源 (4)
- 收藏
- 关注
原创 Manacher 算法模板
Manacher算法详解:https://blog.csdn.net/csdn_kou/article/details/82917937#include<bits/stdc++.h>using namespace std;#define ll long long#define inf 0x3f3f3f3f#define mem(a,b) memset(a,b,sizeo...
2019-07-27 18:02:01 219
原创 Trie字典树 模板
Trie树详解:https://www.cnblogs.com/llllllpppppp/p/9449846.html#include<bits/stdc++.h>using namespace std;#define ll long long#define inf 0x3f3f3f3f#define mem(a,b) memset(a,b,sizeof(a)) b...
2019-07-26 17:54:12 198
原创 【CF 1197C】Array Splitting 差分序列
C. Array SplittingYou are given asortedarraya1,a2,…,ana1,a2,…,an(for each indexi>1i>1conditionai≥ai−1ai≥ai−1holds) and an integerkk.You are a...
2019-07-25 16:39:21 311
转载 既视感/海马效应:我曾在梦里见过你
原文地址:https://www.jianshu.com/p/41d5f8dd4c42你是否有过这样的经历:1、有时正做一件事,一瞬间脑子里突然感觉自己曾做过这件事,相同的场景与感觉,一切都相同。2、有时到一个地方,明明第一次去,却感觉非常熟悉,强烈感觉自己曾来过这里。3有时做一个梦,很久后某个时刻,竟发现眼前这个场景就是你以前那个梦,包括人物场景都一样。心理学家把这叫做...
2019-07-25 14:54:42 3978
原创 【CF 1196A】Three Piles of Candies
A. Three Piles of CandiesAlice and Bob have received three big piles of candies as a gift. Now they want to divide these candies as fair as possible. To do this, ...
2019-07-25 14:47:39 416
原创 【CF 1197B】Pillars
B. PillarsThere arennpillars aligned in a row and numbered from11tonn.Initially each pillar contains exactly one disk. Theii-th pillar contains a ...
2019-07-24 16:39:28 438
转载 深入浅出的讲解傅里叶变换(真正的通俗易懂)
原文出处:韩昊 1 2 3 4 5 6 7 8 9 10 作者:韩昊 知乎:Heinrich 微博:@花生油工人 知乎专栏:与时间无关的故事 谨以此文献给大连海事大学的吴楠老师,柳晓鸣老师,王新年老师以及张晶泊老师。 ...
2019-07-24 14:39:23 554
原创 【CF 1197A】DIY Wooden Ladder
A. DIY Wooden LadderLet's denote akk-step ladder as the following structure: exactlyk+2k+2wooden planks, of whichtwo planks of lengthat leastk+1k+1— the b...
2019-07-24 10:32:56 373
原创 Python实战 | 完美爬取LOL全英雄皮肤高清原画 JavaScript动态网页
Github项目地址https://github.com/xylon666/Xylon_Code爬取结果展示:全原画+皮肤名称分类所需环境IDE:Pycharm第三方库:requests,PIL浏览器:Chrome爬取目标:LOL官网皮肤原画https://lol.qq.com/data/info-heros.shtml#Navi一、分析页面...
2019-07-23 14:56:51 2494 3
转载 python PIL 图像处理库简介
原文地址:https://www.cnblogs.com/lyrichu/p/9124504.html1. IntroductionPIL(Python Image Library)是python的第三方图像处理库,但是由于其强大的功能与众多的使用人数,几乎已经被认为是python官方图像处理库了。其官方主页为:PIL。 PIL历史悠久,原来是只支持python2.x的版本的,后来...
2019-07-23 09:31:29 1684
原创 Python编码问题| UnicodeEncodeError: ‘gbk’ codec can’t encode character 错误的解决办法
写入文件中遇到 UnicodeEncodeError: ‘gbk’ codec can’t encode character 错误的解决办法sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='utf-8') #改变标准输出的默认编码#或f =open('out.txt','a+',encoding='utf-8') ...
2019-07-22 16:35:51 2512
原创 【CF 11787B】WOW Factor
B. WOW FactorRecall that stringaais a subsequence of a stringbbifaacan be obtained frombbby deletion of several (possibly zero or all) characters. For exampl...
2019-07-22 14:59:19 544
原创 银联高校极客挑战赛 初赛 第一场 A码队女朋友的王者之路
码队的女朋友非常喜欢玩某款手游,她想让码队带他上分。但是码队可能不会带青铜段位的女朋友上分,因为码队的段位太高(已经到达王者),恐怕不能和他的女朋友匹配游戏。码队的女朋友有些失落,她希望能尽快冲上王者。这个赛季开始了,求胜心切的码队的女朋友想让码队帮她计算一个问题:这个赛季码队的女朋友一共打了NN场排位赛,每一场排位赛中,码队女朋友的成绩用S_iSi来表示(成绩只可能为“赢”或“...
2019-07-20 17:29:58 793 1
转载 Java判断两个字符串是否相等
1、java中字符串的比较是==比较引用,equals 比较值so我们经常习惯性的写上if(str1==str2),这种写法在java中可能会带来问题例1: String a="abc"; String b="abc",那么a==b将返回true。因为在java中字符串的值是不可改变的,相同的字符串在内存中只会存一份,所以a和b指向的是同一个对象;例2:String a=new ...
2019-07-20 15:43:36 1066
原创 Python split()函数的用法
描述split()通过指定分隔符对字符串进行切片,如果参数 num 有指定值,则仅分隔 num+1 个子字符串语法split()方法语法:str.split(str="", num=string.count(str))参数str -- 分隔符,默认为所有的空字符,包括空格、换行(\n)、制表符(\t)等。 num -- 分割次数。默认为 -1, 即分隔所有。返回值...
2019-07-19 16:44:16 5043
原创 【HDU 1328】IBM Minus One
IBM Minus OneTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 8507Accepted Submission(s): 4095Problem DescriptionYou may have heard ...
2019-07-17 15:52:40 209
原创 【HDU 2567】寻梦
寻梦Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 11904Accepted Submission(s): 8704Problem Description每个人的童年都可能梦想过自己成为一个英雄,尤其是喜欢武侠的...
2019-07-17 15:43:40 178
原创 【HDU 2568】前进
前进Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 10423Accepted Submission(s): 7864Problem Description轻松通过墓碑,进入古墓后,才发现里面别有洞天。突然,Yi...
2019-07-17 15:35:35 231
原创 【HDU 2710】Max Factor 质数筛
Max FactorTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 13045Accepted Submission(s): 4086Problem DescriptionTo improve the organi...
2019-07-17 15:29:27 187
原创 【HDU 2700】Parity
ParityTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6126Accepted Submission(s): 4578Problem DescriptionA bit string has odd parit...
2019-07-17 14:33:39 244
原创 【CF 1094C】From S To T 查询子串
C. From S To TYou are given three stringsss,ttandppconsisting of lowercase Latin letters. You may perform any number (possibly, zero) operations on these...
2019-07-17 11:32:04 347
转载 C++中vector的用法
概述vector是一个容器,可以存放变长数组,并且由使用者自己变化长度,解决了传统数组必须确定长度的问题。vector使用一块连续的内存来存放元素,所以同样可以用指针来获取元素。当在原有vector数组中添加新的元素,需要增加数组长度,但是因为vector使用了一种变长分配数组,所以不需要像普通数组一样开一个新数组,然后把原数组拷贝过去。优秀!vector容器一般会在声明一个数组以后分配...
2019-07-17 10:19:56 248
原创 【CF 1049B】Yet Another Crosses Problem
B. Yet Another Crosses ProblemYou are given a picture consisting ofnnrows andmmcolumns. Rows are numbered from11tonnfrom the top to the bottom, columns are numbere...
2019-07-16 11:48:52 497
原创 【CF 1194A】Remove a Progression
A. Remove a ProgressionYou have a list of numbers from11tonnwritten from left to right on the blackboard.You perform an algorithm consisting of several steps ...
2019-07-16 10:11:54 298
车站票务系统.cpp
2019-11-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人