摘要:
[USACO12DEC]第一!First! 题目描述 Bessie has been playing with strings again. She found that by changing the order of the alphabet she could make some string 阅读全文
摘要:
[POI2006]OKR Periods of Words Description 一个串是有限个小写字符的序列,特别的,一个空序列也可以是一个串. 一个串P是串A的前缀, 当且仅当存在串B, 使得 A = PB. 如果 P A 并且 P 不是一个空串,那么我们说 P 是A的一个proper前缀. 阅读全文
摘要:
[HAOI2008]糖果传递 Description 有$n$个小朋友坐成一圈,每人有$a_i$个糖果。每人只能给左右两人传递糖果。每人每次传递一个糖果代价为$1$。 Input 第一行一个正整数$n define lll long long using namespace std; lll rea 阅读全文
摘要:
[POJ3694]Network Description A network administrator manages a large network. The network consists of N computers and M links between pairs of compute 阅读全文