
树状数组
yjt9299
这个作者很懒,什么都没留下…
展开
-
牛客多校第五场F题 take (思维)
链接:https://www.nowcoder.com/acm/contest/143/F来源:牛客网 题目描述Kanade has n boxes , the i-th box has p[i] probability to have an diamond of d[i] size.At the beginning , Kanade has a diamond of 0 size...原创 2018-08-02 19:11:42 · 306 阅读 · 0 评论 -
bzoj 1935 园丁的烦恼
1935: [Shoi2007]Tree 园丁的烦恼Time Limit: 15 Sec Memory Limit: 357 MBSubmit: 1846 Solved: 838[Submit][Status][Discuss]Description很久很久以前,在遥远的大陆上有一个美丽的国家。统治着这个美丽国家的国王是一个园艺爱好者,在他的皇家花园里种植着各种奇花异草。有一天...原创 2018-08-21 11:01:32 · 156 阅读 · 0 评论 -
bzoj 3262
3262: 陌上花开Time Limit: 20 Sec Memory Limit: 256 MBSubmit: 4087 Solved: 1932[Submit][Status][Discuss]Description有n朵花,每朵花有三个属性:花形(s)、颜色(c)、气味(m),用三个整数表示。现在要对每朵花评级,一朵花的级别是它拥有的美丽能超过的花的数量。定义一朵...原创 2018-08-21 13:40:43 · 277 阅读 · 0 评论 -
codeforces 374D. Inna and Sequence(特别有意思哈)
链接: http://codeforces.com/contest/374/problem/D题意: 首先给你 n 和 m 然后m 个数,表示位置,这里首先有一个空的序列 然后n 个操作,如果操作是1 那么向序列的末尾加1 ,如果操作是0 ,那么向序列的末尾加0 如果是-1 ,那么删除上边给的m 个位置的数,最后输出序列。为空输出。。。思路: 因为n m都比较大一开始还真不敢想,然后其...原创 2018-10-26 15:13:32 · 406 阅读 · 0 评论