热门 最新 精选 话题 上榜
题意:称序列 KaTeX parse error: Expected group after '_' at position 2: x_̲ 和序列 yyy 匹配\
原创 9月前
32阅读
Description:上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的.
原创 9月前
34阅读
HDU1272 小希的迷宫(并查集)
昨天因为人生大事所以一天没有训练,今天把数论好好的总结了一遍,也算是复习了一\
原创 9月前
47阅读
2020年3月1日总结
题目描述有 n{n}n 个石子堆,第 i{i}i 个在一开始有 aia_iai​个石子。每次你可以选择两堆
uuu
原创 9月前
30阅读
Description:In the last semester, Rikka joined the badminton club.There arennstudents in the badminton club, some ...
原创 9月前
33阅读
Problem Description The inversion number of a given number sequence a1, a2, ..., an is the number of pairs (ai, aj)
题意:给定 nnn, 求满足 n=m2−k2n=m^2-k^2n=m2−k2 的 m,km,km,k。对于 nnn 为奇数时
88
原创 9月前
21阅读
F. Floor Plan
Description:给你n个点,m条无向边,每条边都有长度d和花费p,给你起点s终点t,要求输出起点到终点的最短距
原创 9月前
15阅读
Description:A lot of battleships of evil are arranged in a line before the battle. Our commander decides to use our secret weapon to eliminate the battleships. Each of the battleships can be marked...
原创 9月前
25阅读
Description:
原创 9月前
30阅读
题意:给一颗树,有 nnn 个顶点,给这个树的边分别编号为 0 (n−2)0~(n-2)0 (n−2),问怎样编
原创 9月前
20阅读
Codeforces 1325 C. Ehab and Path-etic MEXs(贪心构造)
FroggerFreddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is
原创 9月前
41阅读
Description:The Head Elder of the tropical island of Lagrishan has a problem. A burst of feen villages some years ago. But the jungle overtakes roads re...
原创 9月前
36阅读
POJ 1251 Jungle Roads (prim)
Problem Description
原创 9月前
17阅读
HDU 3336(扩展KMP)
Til the Cows Come HomeBessie is out in the field and wants to get back to the barn to get as
原创 9月前
43阅读
昂贵的聘礼年轻的探险家来到了一个印第安部落里。在那里他和酋长的女儿相爱了,于是便
原创 9月前
35阅读
题意:给你 nnn 长度的一个 1 n1~n1 n 的序列,将其分为 kkk 份,取每份中的最大值相加
88
原创 9月前
68阅读
Codeforces 1326 C. Permutation Partitions
题意:有 nnn 个人,互相送礼物,每个人必须收到 111 个礼物且送出 111个礼物,现在把没
原创 9月前
73阅读
Codeforces 1283 C. Friends and Gifts
Problem Description给出一个只由小写英文字符a,b,c…y,z组成的字符串S,求S中最长回文串的长度.回文就是正反读都是一样的字符串,如aba, abba等Input输入有多组case,不超过120组,每组输入为一行小写英文字符a,b,c…y,z组成的字符串S两组case之间由空行隔开(该空行不用处理)字符串长度len <= 110000Outp...
原创 9月前
59阅读
Problem DescriptionIgnatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统
原创 9月前
29阅读
题意:给出一个 nnn,求 10n10^n10n 内长度为 111到 nnn的块分别有多少个。块的含义是连
原创 9月前
40阅读
Codeforces 1327 E. Count The Blocks(递推找规律)
Problem Descriptionlily的好朋友xiaoou333最近很空,他想了一件没有什么意义的事情,就是统计一篇文章里不同单词的
原创 9月前
26阅读
Description: In a galaxy far, far away, there are two integer sequence a and b of length n.
原创 9月前
50阅读
题意: 一个 n∗mn*mn∗m 的网格图上的每个网格初始放有高度在 l rl~rl r 范围内的立方体
原创 9月前
31阅读
题意:
原创 9月前
40阅读
题意:
原创 9月前
37阅读
题意: 进行电量分级制收费,1000kwh1000kwh1000kwh 及以下一档收费,1000k
88
原创 9月前
21阅读
UCF Local Programming Contest 2017 A. Electric Bill
题意:
题意: 给 nnn 天要求工作 kkk 天,且工作一天要休息 ccc 天。按顺序输出必须要工作的天数下标。 贪心。正序遍历贪心求最小位置记录在数组 aaa 中,倒序遍历贪
原创 9月前
27阅读
AtCoder ABC161 E - Yutori
E Everything Is Generated In Equal Probability
原创 9月前
38阅读