
OJ系列-SGU
文章平均质量分 53
sortmin
这个作者很懒,什么都没留下…
展开
-
SGU - 271. Book Pile(双端队列)
题目链接:http://acm.sgu.ru/problem.php?contest=0&problem=271 There is a pile of N books on the table. Two types of operations are performed over this pile: - a book is added to the top of the pile, ...原创 2018-07-18 01:08:42 · 342 阅读 · 0 评论 -
SGU180 Inversions 离散 + 树状数组
There are N integers (1<=N<=65537) A1, A2,.. AN (0<=Ai<=10^9). You need to find amount of such pairs (i, j) that 1<=i<j<=N and A[i]>A[j].Input The first line of the input cont...原创 2018-07-20 12:58:27 · 178 阅读 · 0 评论