http://acm.hdu.edu.cn/showproblem.php?pid=2044 #include <stdio.h> #include <cstring> #include <algorithm> #include <vector> #include <map> #include <a ...
分类:
其他好文 时间:
2020-02-01 16:17:05
阅读次数:
64
HDU 4513吉哥系列故事——完美队形II Manacher 题意 吉哥又想出了一个新的完美队形游戏! 假设有n个人按顺序站在他的面前,他们的身高分别是h[1], h[2] ... h[n],吉哥希望从中挑出一些人,让这些人形成一个新的队形,新的队形若满足以下三点要求,则就是新的完美队形: 1. ...
分类:
其他好文 时间:
2020-02-01 16:14:07
阅读次数:
45
HDU-1312-DFS Written by Void-Walker 2020-02-01 09:09:25 1.题目传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1312 2.题目大意: 有一个矩形房间,房间里有红砖块(‘#’)和黑砖块(‘.’)组成 ...
分类:
其他好文 时间:
2020-02-01 10:59:54
阅读次数:
98
HDU 4300 Clairewd‘s message 拓展KMP入门 题意 "原题链接" 这个题关键是要读懂题意,~~我做的时候就没有读懂,泪~~。题意是说给你的一个两个字符串,一个是26个字母密码表,依次对应替换的字母。然后给你一个字符串,这个字符串是不完整的(完整的应该是前半部分是加密的,后半 ...
分类:
其他好文 时间:
2020-01-31 22:46:56
阅读次数:
82
此博客链接:https://www.cnblogs.com/ping2yingshi/p/12246707.html 1.平方和与立方和(21min) 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2007 Problem Description 给定 ...
分类:
其他好文 时间:
2020-01-31 22:46:41
阅读次数:
65
题面 Description As an eligible Ingress Resistance Agent you should know your power source, the Exotic Matter. We call it XM, which is the driving force ...
分类:
其他好文 时间:
2020-01-31 19:11:09
阅读次数:
86
def myfont(): name = input("输入你的名字:(only English words) \t") length = len(name) for x in range(0, length): c = name[x] c = c.upper() if (c == "A"): pr ...
分类:
其他好文 时间:
2020-01-31 14:11:02
阅读次数:
69
Given a list of words (without duplicates), please write a program that returns all concatenated words in the given list of words. A concatenated word ...
分类:
编程语言 时间:
2020-01-31 10:38:24
阅读次数:
73
Period HDU 1358 KMP next数组性质的应用 "原题链接" 题意 题目的意思是给你一个字符串,判断这个字符串的前缀字符串中,哪些是周期串,输出这个前缀字符串的长度和这个前缀字符串中循环节的个数。 解题思路 思路参考:https://www.cnblogs.com/yym2013/p ...
分类:
编程语言 时间:
2020-01-30 21:08:37
阅读次数:
71
Shopping Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6348 Accepted Submission(s): 2215 Probl ...
分类:
其他好文 时间:
2020-01-30 18:59:46
阅读次数:
91