
数学
文章平均质量分 78
acm_cxq
这个作者很懒,什么都没留下…
展开
-
hdu 5105 Math Problem(数学)
Math Problem Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2518 Accepted Submission(s): 605 Problem Description Here has an fu原创 2016-07-11 14:39:15 · 558 阅读 · 0 评论 -
刁难的李老师(升级版) (循环节)
刁难的李老师(升级版) Time Limit: 1 Sec Memory Limit: 64 MB Submit: 67 Solved: 10 [Submit][Status][Web Board] Description 李老师后来发现,上回给出的题目,一些机灵的同学还是找到了“投机取巧”的解决办法,于是决定要再度考验一下他们。他给同学们 修改了原来那道题,他在题中又增原创 2016-08-26 16:32:57 · 662 阅读 · 0 评论 -
csu 1742 Integral Function(分区间求积分)
Integral Function Time Limit: 1 Sec Memory Limit: 128 MB Submit: 78 Solved: 26 [Submit][Status][Web Board] Description In mathematics, several function are unable to integral. For e原创 2016-08-25 11:13:21 · 453 阅读 · 0 评论 -
第十一届湖南省大学生程度设计竞赛部分题解
阶乘除法 Time Limit: 1 Sec Memory Limit: 128 MB Submit: 13 Solved: 7 [Submit][Status][Web Board] Description 输入两个正整数 n, m,输出 n!/m!,其中阶乘定义为 n!= 1*2*3*...*n (n>=1)。 比如,若 n=6, m=3,则 n!/m!=6!/原创 2016-08-11 10:09:11 · 1253 阅读 · 0 评论 -
第六届湖南省省赛 台球碰撞(模拟,数学)
台球碰撞 Time Limit: 1 Sec Memory Limit: 128 MB Submit: 47 Solved: 9 [Submit][Status][Web Board] Description 在平面直角坐标系下,台球桌是一个左下角在(0,0),右上角在(L,W)的矩形。有一个球心在(x,y),半径为R的圆形母球放在台球桌上(整个球都在台球桌内)。受撞击后,球原创 2016-08-23 01:06:31 · 809 阅读 · 0 评论 -
csu 1759 Triangle(数学)
Triangle Time Limit: 1 Sec Memory Limit: 128 MB Submit: 64 Solved: 23 [Submit][Status][Web Board] Description 给你长度为1~n n条边,请你求出有多少种组合方法数可以选出三条边构成三角形 Input 多组数据输入输出(数据组数考虑为最大可能原创 2016-08-22 09:33:53 · 358 阅读 · 0 评论 -
swust 626 分数分解(数学)
分数分解(0626) Time limit(ms): 1000 Memory limit(kb): 65535 Submission: 350 Accepted: 156 Accepted 分子为1 的分数称为埃及分数,现输入一个真分数,请将该分数按下面的方法分解为埃及分数: 1.若真分数的分子a能整除分母b,原创 2016-08-05 10:45:54 · 672 阅读 · 0 评论 -
hdu 5170 GTY's math problem(数学)
GTY's math problem Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 2098 Accepted Submission(s): 773 Problem Description GTY is a原创 2016-07-18 15:49:50 · 570 阅读 · 0 评论 -
关于杨辉三角与二项式系数
今天在做百度之星初赛的一道题瞬间移动(hdu5698)时,推出了跟杨辉三角类似的性质却没能写出组合数,于是复习了下杨辉三角性质。 1 1 1 1 2 1 1 3 3 1原创 2016-05-23 10:32:24 · 1417 阅读 · 0 评论 -
hdu 5459 Jesus Is Here(数学,斐波那契)
Jesus Is Here Time Limit: 1500/1000 MS (Java/Others) Memory Limit: 65535/102400 K (Java/Others) Total Submission(s): 511 Accepted Submission(s): 367 Problem Description I've sent Fan原创 2016-06-07 00:41:32 · 494 阅读 · 0 评论 -
hdu 4986 Little Pony and Alohomora Part I(找规律,欧拉常数)
Little Pony and Alohomora Part I Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 416 Accepted Submission(s): 220 Problem Descriptio原创 2016-07-01 19:53:57 · 626 阅读 · 0 评论 -
hdu 5159 Card(数学)
Card Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 821 Accepted Submission(s): 337 Special Judge Problem Description There are原创 2016-07-16 10:46:54 · 442 阅读 · 0 评论 -
hdu 5194 DZY Loves Balls(暴力,数学期望)
DZY Loves Balls Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 856 Accepted Submission(s): 466 Problem Description There are n原创 2016-07-25 00:37:52 · 599 阅读 · 0 评论 -
hdu 5109 Alexandra and A*B Problem(取模,枚举,数学数论)
Alexandra and A*B Problem Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 804 Accepted Submission(s): 212 Problem Description Al原创 2016-07-12 11:16:14 · 580 阅读 · 0 评论 -
求C(n,m)%mod
long long pow_mod(int a,int n) { long long ans=1; while(n) { if(n&1) ans=ans*a%mod; a=a*a%mod; n>>=1; } return ans; } long long C(int k,int n) { long lo原创 2016-07-11 15:38:54 · 1246 阅读 · 0 评论