
数学
西行妖下的亡灵
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Just skip this problem
Y_UME has just found a numberxin his right pocket. The number is a non-negative integer ranging from0to2n−1inclusively. You want to know the exact value of this number. Y_UME has super power, an...原创 2019-07-28 23:36:22 · 238 阅读 · 0 评论 -
NOIP 2016 组合数问题
题目描述组合数C_n^mCnm表示的是从nn个物品中选出mm个物品的方案数。举个例子,从(1,2,3) 三个物品中选择两个物品可以有(1,2),(1,3),(2,3)(1,2),(1,3),(2,3)这三种选择方法。根据组合数的定义,我们可以给出计算组合数C_n^mCnm的一般公式:Cnm=m!/(n−m)!n!其中n!=1×2×⋯×n;特别地,定义0...原创 2019-07-28 23:33:58 · 189 阅读 · 0 评论 -
AtCoder---Multiple Clocks(多个时钟)(n个数的最小公倍数公式应用)
题目描述We have N clocks. The hand of the i-th clock (1≤i≤N) rotates through 360° in exactly Ti seconds.Initially, the hand of every clock stands still, pointing directly upward.Now, Dolphin starts al...原创 2019-03-28 23:47:41 · 514 阅读 · 0 评论 -
SCU4440-Rectangle(数学)
Rectanglefrog has a piece of paper divided intonrows andmcolumns. Today, she would like to draw a rectangle whose perimeter is not greater thank.弗雷格有一张被分成n行m列的纸,如今,她想在这画一个周长不大于k的矩形。There ...原创 2019-04-21 23:59:49 · 243 阅读 · 0 评论 -
FZU 2301-Chosen by god(由神来选择) (二项分布+逆元)
Everyone knows there is a computer game names "hearth stone", recently xzz likes this game very much. If you want to win, you need both capacity and good luck.每人都知道有一个游戏叫做“炉石传说”(贵游大佬orz),最近小粽子很喜欢这个游...原创 2019-04-26 21:02:51 · 709 阅读 · 2 评论 -
ICPC2018 Nakhon Pathom-Floating-Point Hazard(浮点数的坏处)(导数的定义)
Given the value of low, high you will have to find the value of the following expression:给你下界和上界的值,你得算出以下表达式的值:If you try to find the value of the above expression in a straightforward way, the...原创 2019-05-02 15:27:43 · 201 阅读 · 0 评论 -
HZNU2019校赛-Little Sub and Counting(小撒布与计数)(函数的单调性)
DescriptionLittle Sub likes Math. Now he has a simple counting problem for you.小撒布喜欢数学,现在他有个简单问题要问你。Given an positive integer sequence A, for each Ai, Please calculate how many elements Aj in the...原创 2019-05-09 17:49:20 · 236 阅读 · 0 评论 -
HZNU 2019 校赛-Little Sub and Triples(小撒布与三数数对)(初见难收的非算法题类型之一)
DescriptionLittle Sub has learned a new word ’Triple’, which usually means a group with three elements in it. Now he comes up with an interesting problem for you.小撒布学了一个新单词:“Triple”,这个词经常用来表示一个三个元...原创 2019-05-10 12:32:45 · 274 阅读 · 0 评论 -
牛客暑期赛第一场:Random Point in Triangle(三角形内的随机点)(数学期望)
Bobo has a triangle ABC withA(x1,y1),B(x2,y2 andC(x3,y3). Picking a point P uniformly in triangle ABC, he wants to know the expectation valueE=max{SPAB,SPBC,SPCA}whereSXYZ denotes the area of tria...原创 2019-07-28 23:35:25 · 1053 阅读 · 0 评论 -
HDU 6576 Worker(工人)(最小公倍数)
进入报名链接)~ Worker Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 216Accepted Submission(s): 63 Problem Descrip...原创 2019-07-22 00:03:14 · 425 阅读 · 0 评论 -
裴蜀定理(针对于多元一次不定方程的求解)
裴蜀定理的基本内容是】若a,b是整数,且gcd(a,b)=d,那么对于任意的整数x,y,ax+by都一定是d的倍数,特别地,一定存在整数x,y,使ax+by=d成立。如何证明这个定理呢?假设c是ax+by的最小正整数解,也即是ax+by=c,d=(a,b) 根据最大公约数的性质及同余方程的性质,可以知道:d|a,d|b,d|(ax+by) 假设r是a%c的余数,t是a/c的整除...原创 2019-09-18 21:28:05 · 1000 阅读 · 0 评论