摘要: G - Parenthesis Time Limit:5000MS Memory Limit:131072KB 64bit IO Format:%lld & %llu Description Bobo has a balanced parenthesis sequence P=p 1 p 2…p n 阅读全文
posted @ 2016-09-13 22:25 sCjTyC 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 1354 选数字 基准时间限制:1 秒 空间限制:131072 KB 当给定一个序列a[0],a[1],a[2],...,a[n-1] 和一个整数K时,我们想找出,有多少子序列满足这么一个条件:把当前子序列里面的所有元素乘起来恰好等于K。 样例解释: 对于第一个数据,我们可以选择[3]或者[1(第一 阅读全文
posted @ 2016-09-13 16:57 sCjTyC 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 1439 互质对 题目来源: CodeForces 基准时间限制:2 秒 空间限制:131072 KB 有n个数字,a[1],a[2],…,a[n]。有一个集合,刚开始集合为空。然后有一种操作每次向集合中加入一个数字或者删除一个数字。每次操作给出一个下标x(1 ≤ x ≤ n),如果a[x]已经在集 阅读全文
posted @ 2016-09-13 11:47 sCjTyC 阅读(396) 评论(0) 推荐(0) 编辑