- 博客(7)
- 收藏
- 关注
原创 吉哥系列故事——完美队形II(Manacher)
目录题目:题目大意:题目分析:解题思路:部分代码:具体代码:题目:出处:http://acm.hdu.edu.cn/showproblem.php?pid=4513 吉哥又想出了一个新的完美队形游戏! 假设有n个人按顺序站在他的面前,他们的身高分别是h[1], h[2] ... h[n],吉哥希望从中挑出一些人,让这些人形成一个新的队形,新的队形若满足以下三点要求,则就是新的完美队形: 1、挑出的人保持原队形的相对顺序不变
2021-05-16 21:03:15
336
1
原创 【KMP计数】 A Secret
A Secret Today is the birthday of SF,so VS gives two strings S1,S2 to SF as a present,which have a big secret.SF is interested in this secret and ask VS how to get it.There are the things that VS tell: Suffix(S2,i) = S2[i....
2021-05-04 00:18:45
358
原创 Codeforces Round #703 (Div. 2) A. Shifting Stacks
目录题目:题意:思路:代码实现:题目出处:https://codeforces.com/contest/1486/problem/A题目:A. Shifting Stackstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have n stacks of blocks. The i-th stack contains hi bloc
2021-03-09 21:11:14
237
原创 C - Searching Local Minimum
目录题目题意思路代码实现题目题目出处:https://codeforces.com/contest/1480/problem/CC. Searching Local Minimumtime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputThis is an interactive problem.Homer likes arrays a lot
2021-02-22 23:30:00
467
原创 POJ1426 Find The Multiple
目录题目描绘题意思路代码实现:题目出处:http://poj.org/problem?id=1426题目描绘Find The MultipleTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 64599 Accepted: 26225 Special JudgeDescriptionGiven a positive integer n, write a program to find out a nonzero multi
2021-02-08 19:07:26
152
原创 HDU1016 Prime Ring Prublem
目录题目题意思路代码实现题目题目出处:http://acm.hdu.edu.cn/showproblem.php?pid=1016Problem DescriptionA ring is compose of n circles as shown in diagram. Put natural number 1, 2, …, n into each circle separately, and the sum of numbers in two adjacent circles should be
2021-02-01 11:15:13
145
原创 Codeforces Round #695 (Div. 2) C. Three Bags
Codeforces Round #695 (Div. 2) 中的C题 对三个数组中的元素进行一定操作,最终得出尽可能大的结果。
2021-01-25 14:15:13
343
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅