上一篇笔记因为写的太多已经卡了起来……不得不另开新坑了。 LI.CF115E Linear Kingdom Races 思路1. 设$f[i][j]$表示: 当前DP到第$i$位,且最右边的一个没有修
CF600E-Lomsat gelral 题目: 题目描述: You are given a rooted tree with root in vertex $ 1 $ . Each vertex is coloured in some colour. Let’s call colour $ c $ dominating in the subtree of vertex $ v $ if there are no other colours that appear in the subtree of vertex $ v $ more times than colour $ c $ .
P3966-[TJOI2013]单词 题目: 题目描述: 小张最近在忙毕设,所以一直在读论文。一篇论文是由许多单词组成但小张发现一个单词会在论文中
P4036-[JSOI2008]火星人 题目: 题目描述: 火星人最近研究了一种操作:求一个字串两个后缀的公共前缀。 比方说,有这样一个字符串:ma
P1001-A+B Problem 题目: 题目描述: 输入两个整数 $a,b$,输出它们的和($|a|,|b|\leq 10^9$)。 注意 Pascal 使用 integer 会爆掉哦! 有负数哦! C/C++ 的 main 函数必
CF30E-Tricky and Clever Password 题目: 题目描述: In his very young years the hero of our story, king Copa, decided that his private data was hidden not enough securely, what is unacceptable for the king. That’s why he invented tricky and clever password (later he learned that his password is a palindrome of odd length), and coded all his data using it. Copa is afraid