摘要: 【CF171C】A Piece of Cake的题解 阅读全文
posted @ 2019-06-28 21:48 csxsi 阅读(186) 评论(0) 推荐(0)
摘要: 学习主席树的一些见解 阅读全文
posted @ 2019-06-27 21:55 csxsi 阅读(168) 评论(0) 推荐(0)
摘要: 我总结了一些常用的模板~ 阅读全文
posted @ 2019-04-23 22:07 csxsi 阅读(30) 评论(0) 推荐(0)
摘要: 【洛谷P5315】头像上传 的题解 阅读全文
posted @ 2019-04-20 22:29 csxsi 阅读(826) 评论(0) 推荐(0)
摘要: Description The cows, as you know, have no fingers or thumbs and thus are unable to play Scissors, Paper, Stone' (also known as 'Rock, Paper, Scissors 阅读全文
posted @ 2019-04-06 12:19 csxsi 阅读(234) 评论(0) 推荐(0)
摘要: Description There is a straight highway with villages alongside the highway. The highway is represented as an integer axis, and the position of each v 阅读全文
posted @ 2019-04-05 22:32 csxsi 阅读(265) 评论(0) 推荐(0)
摘要: Description 有两个非负整数数列,元素个数分别为N和M。从两个数列中分别任取一个数相乘,这样一共可以得到N*M个数,询问这N*M个数中第K小数是多少。 时间限制为20ms 。 Input 输入文件包含三行。 第一行为三个正整数N,M和K。 第二行为N个整数,表示第一个数列。 第三行为M个整 阅读全文
posted @ 2019-03-12 22:11 csxsi 阅读(145) 评论(0) 推荐(0)
摘要: Description 对于一个数列{ai},如果有i<j且ai>aj,那么我们称ai与aj为一对逆序对数。若对于任意一个由1~n自然数组成的数列,可以很容易求出有多少个逆序对数。那么逆序对数为k的这样自然数数列到底有多少个? Input 第一行为两个整数n,k。 Output 写入一个整数,表示符 阅读全文
posted @ 2019-03-12 21:36 csxsi 阅读(233) 评论(0) 推荐(0)
摘要: 题面:https://www.luogu.com.cn/problem/P5248 这是一道数学题。 在输入完后,我们先预处理处≤f(m)的所有m的次方,然后以次计算a0到an(n为≤f(m)的m的次方的最大指数),注意a0到an都不能≥m,开long long!!!最后,特判一下m>f(m)的情况 阅读全文
posted @ 2019-03-10 19:42 csxsi 阅读(327) 评论(0) 推荐(0)
摘要: Description 有一个整数序列,它的每个数各不相同,我们不知道它的长度(即整数个数),但我们知道在某些区间中至少有多少个整数,用区间(Li,Ri,Ci)来描述,表示这个整数序列中至少有Ci个数来自区间[Li,Ri],给出若干个这样的区间,问这个整数序列的长度最少能为多少? Input 第一行 阅读全文
posted @ 2019-03-07 21:14 csxsi 阅读(466) 评论(0) 推荐(0)