摘要:
You are given two integers aa and bb, and qq queries. The ii-th query consists of two numbers lili and riri, and the answer to it is the number of int 阅读全文
posted @ 2020-04-27 16:19
XXXSANS
阅读(328)
评论(0)
推荐(0)
摘要:
kefa进入了一家餐厅,这家餐厅中有n个菜(0<n≤18),kefa对第i个菜的满意度为ai(0≤ai≤10^9),并且对于这n个菜有k个规则,如果kefa在吃完第xi个菜之后吃了第yi个菜(保证xi、yi不相等),那么会额外获得ci(0≤ci≤10^9)的满意度。kefa要吃m道任意的菜(0<m≤ 阅读全文
posted @ 2020-04-27 11:44
XXXSANS
阅读(121)
评论(0)
推荐(0)
摘要:
Let's say string ss has period kk if si=si+ksi=si+k for all ii from 11 to |s|−k|s|−k (|s||s| means length of string ss) and kk is the minimum positive 阅读全文
posted @ 2020-04-27 11:16
XXXSANS
阅读(433)
评论(0)
推荐(0)

浙公网安备 33010602011771号