![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
枚举
阿里斯顿k
这个作者很懒,什么都没留下…
展开
-
vacations (枚举)
vacationsVasya has n days of vacations! So he decided to improve his IT skills and do sport. Vasya knows the following information about each of this n days: whether that gym opened and whether a ...原创 2018-08-02 20:40:01 · 177 阅读 · 0 评论 -
coprime sequence(枚举)
coprime sequenceDo you know what is called Coprime Sequence''? That is a sequence consists of nn positive integers, and the GCD (Greatest Common Divisor) of them is equal to 1. Coprime Sequence”...原创 2018-08-02 20:48:05 · 220 阅读 · 0 评论 -
辞树的QAQ水题
辞树的QAQ水题题目描述 蒟蒻的辞树又被吊打了嘤嘤嘤。留下了属于弱者的眼泪QAQAQAQAQAAQAAQA······ 现在我 们定义辞树的悲伤值 F 。F的值为主串中子序列为”QAQ”的个数。注意字母“QAQ”不一定是 连续的,但是字母的顺序应该是准确的。输入 输入一个整数T(0 ≤ T ≤ 20),代表有T组数据。每组数据会给出一个字符串S,长度为len,0 < le...原创 2018-08-24 15:39:16 · 185 阅读 · 0 评论