把这题的每个点分成两种情况看,如果是从这个点开始,0算作2,1算作1,如果是中间点或者是结束点,如果和前面的相同看作2,不相同看作1 ...
分类:
其他好文 时间:
2018-09-16 20:51:34
阅读次数:
297
BaoBao has a sequence a?1??,a?2??,...,a?n??. He would like to find a subset S of {1,2,...,n} such that ?i,j∈S, a?i??⊕a?j??<min(a?i??,a?j??) and ∣S∣ is ...
分类:
其他好文 时间:
2018-09-16 19:40:16
阅读次数:
267
BaoBao and DreamGrid are playing a game using a strange button. This button is attached to an LED light (the light is initially off), a counter and a ...
分类:
其他好文 时间:
2018-09-16 18:37:19
阅读次数:
221
Jessie and Justin want to participate in e-sports. E-sports contain many games, but they don't know which one to choose, so they use a way to make dec ...
分类:
其他好文 时间:
2018-09-16 16:15:28
阅读次数:
218
A prince of the Science Continent was imprisoned in a castle because of his contempt for mathematics when he was young, and was entangled in some math ...
分类:
其他好文 时间:
2018-09-16 16:03:42
阅读次数:
206
Now you have a string consists of uppercase letters, two integers AA and BB. We call a substring wonderful substring when the times it appears in that ...
分类:
其他好文 时间:
2018-09-16 15:59:07
阅读次数:
366
题目链接 There are N children in kindergarten. Miss Li bought them N candies. To make the process more interesting, Miss Li comes up with the rule: All th ...
分类:
其他好文 时间:
2018-09-16 15:24:21
阅读次数:
461
A-Magic Mirror Jessie has a magic mirror. Every morning she will ask the mirror: 'Mirror mirror tell me, who is the most beautiful girl in the world?' ...
分类:
其他好文 时间:
2018-09-16 12:33:36
阅读次数:
251
题目链接:https://nanti.jisuanke.com/t/31720 题意:有n种飞船,每种飞船有(1 << c)- 1 艘,容量为 k[i] ,q 次询问,每次询问选若干艘飞船使得容量为 s 的方案数。 题解:预处理出全部情况。dp[ i ][ j ]表示选前 i 个物品凑出容量为 k ...
分类:
其他好文 时间:
2018-09-16 00:34:25
阅读次数:
199
G. Give Candies There are N children in kindergarten. Miss Li bought them N candies. To make the process more interesting, Miss Li comes up with the r ...
分类:
其他好文 时间:
2018-09-16 00:32:25
阅读次数:
299