https://www.gravatar.com/avatar/8f3abece0f8608ce4b9c1e3212fd1b72?s=240&d=mp

一个蒟蒻、菜鸡的 OI 博客|

dp2

上一篇笔记因为写的太多已经卡了起来……不得不另开新坑了。 LI.CF115E Linear Kingdom Races 思路1. 设f[i][j]f[i][j]表示: 当前DP到第ii位,且最右边的一个没有修

CF600E-Lomsat gelral

CF600E-Lomsat gelral 题目: 题目描述: You are given a rooted tree with root in vertex 1 1 . Each vertex is coloured in some colour. Let’s call colour c c dominating in the subtree of vertex v v if there are no other colours that appear in the subtree of vertex v v more times than colour c c .

P1001-A+B Problem

P1001-A+B Problem 题目: 题目描述: 输入两个整数 a,ba,b,输出它们的和(a,b109|a|,|b|\leq 10^9)。 注意 Pascal 使用 integer 会爆掉哦! 有负数哦! C/C++ 的 main 函数必

CF30E-Tricky and Clever Password

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