
数学&思维
neversayno_yl
这个作者很懒,什么都没留下…
展开
-
light oj 1008 Fibsieve`s Fantabulous Birthday
Fibsieve`s Fantabulous Birthday Time Limit:500MS Memory Limit:32768KB 64bit IO Format:%lld & %llu原创 2016-07-23 18:25:50 · 215 阅读 · 0 评论 -
bzoj 2456: mode(找众数)
2456: modeTime Limit: 1 Sec Memory Limit: 1 MBSubmit: 3607 Solved: 1515[Submit][Status][Discuss]Description给你一个n个数的数列,其中某个数出现了超过n div 2次即众数,请你找出那个数。Input第1行一个正整数n。第2行n个正整数用空格隔开原创 2016-09-17 14:24:15 · 405 阅读 · 0 评论 -
hdoj 1018 Big Number(数学)
Big NumberTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 35176 Accepted Submission(s): 16762Problem DescriptionIn many appli原创 2016-09-23 17:05:08 · 274 阅读 · 0 评论 -
hd 1065 I Think I Need a Houseboat(数学、水)
I Think I Need a HouseboatTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12471 Accepted Submission(s): 3518Problem Description原创 2016-09-23 17:49:29 · 269 阅读 · 0 评论 -
“玲珑杯”ACM比赛 Round #4 A -- chess play
A -- chess playBob has a n×mn×m chessboard, which has two kinds of chess pieces.one is black, and the other is white.As for chessboard, you can do three operations:1 1 x y1 1 x y (mean原创 2016-11-05 17:52:53 · 297 阅读 · 0 评论 -
“玲珑杯”ACM比赛 Round #4 G -- See car
G -- See carTime Limit:2s Memory Limit:64MBytDESCRIPTIONYou are the god of cars, standing at (a, b) point.There are some cars at point (xi,yi)(xi,yi). If lots of cars and y原创 2016-11-05 17:58:03 · 533 阅读 · 0 评论 -
codeforces 733B Parade(思维)
B. Paradetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVery soon there will be a parade of victory over a原创 2016-11-02 20:08:13 · 365 阅读 · 0 评论 -
hdu 1568 Fibonacci(斐波那契数列)
FibonacciTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4930 Accepted Submission(s): 2296Problem Description2007年到来了。经过2006年原创 2016-11-21 21:41:19 · 335 阅读 · 0 评论 -
hduoj 1432 Lining Up【思维】
Lining UpTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1437 Accepted Submission(s): 433Problem Description``How am I ever goi原创 2017-03-09 20:08:00 · 245 阅读 · 0 评论 -
hduoj 2824 The Euler function【欧拉函数 打表】
The Euler functionTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6449 Accepted Submission(s): 2720Problem DescriptionThe Euler原创 2017-03-09 21:03:33 · 226 阅读 · 0 评论 -
组合数学定理收集
唯一分解定理:任意一个大于1的正整数都能表示成若干个质数的乘积,且表示的方法是唯一的。换句话说,一个数能被唯一地分解成质因数的乘积。即 N = p1^a1 * p2^a2 * p3^a3 * ...* pn^an 。 其中p1,p2....pn为素数。代码实现:#include#includeusing namespace std;const int maxn = 1e5原创 2017-03-28 12:38:53 · 1035 阅读 · 0 评论 -
HDU 5969 最大的位或
最大的位或Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1201 Accepted Submission(s): 486Problem DescriptionB君和G君聊天的时候想到了如下的问题。给定原创 2017-03-16 21:29:10 · 226 阅读 · 0 评论 -
HDUOJ 1466 计算直线的交点数
计算直线的交点数Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9788 Accepted Submission(s):原创 2017-03-11 17:57:48 · 354 阅读 · 0 评论 -
hdu 5100 Chessboard
ChessboardTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1106 Accepted Submission(s): 478Problem DescriptionConsider the pro原创 2016-09-02 16:45:10 · 246 阅读 · 0 评论 -
hdu 5671 Matrix(矩阵行列式交换)
MatrixTime Limit: 3000/1500 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1410 Accepted Submission(s): 562Problem DescriptionThere is a matrix原创 2016-09-02 16:14:05 · 408 阅读 · 0 评论 -
CodeForces 628 B New Skateboard
B. New Skateboardtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMax wants to buy a new skateboard. He has原创 2016-08-11 21:33:13 · 305 阅读 · 0 评论 -
hd 1286 找新朋友 (欧拉函数)
找新朋友Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11071 Accepted Submission(s): 5881Problem Description新年快到了,“猪头帮协会”准备搞一个聚会原创 2016-07-23 22:58:20 · 205 阅读 · 0 评论 -
hd 5615 Jam's math problem(枚举)
Jam's math problemTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1317 Accepted Submission(s): 587Problem DescriptionJam has原创 2016-07-23 23:26:21 · 179 阅读 · 0 评论 -
hd 5620 KK's Steel(斐波那契数列)
KK's SteelTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1009 Accepted Submission(s): 487Problem DescriptionOur lovely KK ha原创 2016-08-15 21:49:55 · 372 阅读 · 0 评论 -
郑轻 1899 985的最大和难题
1899: 985的最大和难题Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 266 Solved: 23SubmitStatusWeb BoardDescription985有2 * n - 1个整数,他每次可以将其中n个数变号,操作次数不限,问他可以得到的最大和。Input第一行输入一个整数t,原创 2016-08-05 21:10:05 · 284 阅读 · 0 评论 -
LOJ 1305 - Area of a Parallelogram(数学j几何)
1305 - Area of a Parallelogram PDF (English)StatisticsForumTime Limit: 1 second(s)Memory Limit: 32 MBA parallelogram is a quadrilateral with two pairs原创 2016-08-27 13:40:07 · 572 阅读 · 0 评论 -
LOJ 1045 - Digits of Factorial(数学)
1045 - Digits of Factorial PDF (English)StatisticsForumTime Limit: 2 second(s)Memory Limit: 32 MBFactorial of an integer is defined by the following f原创 2016-08-29 13:02:10 · 364 阅读 · 0 评论 -
zzuli 1893 985的数学难题
1893: 985的数学难题Time Limit: 2 Sec Memory Limit: 128 MBSubmit: 178 Solved: 44SubmitStatusWeb BoardDescription985有n个正整数,他想快速知道下面函数的返回值int a[N+1];long long Solve() { int i, j;原创 2016-08-19 17:18:26 · 241 阅读 · 0 评论 -
codeforces 707C Pythagorean Triples(数学)
C. Pythagorean Triplestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputKatya studies in a fifth grade. Recen原创 2016-08-22 10:28:23 · 283 阅读 · 0 评论 -
light oj 1369 - Answering Queries
1369 - Answering Queries PDF (English)StatisticsForumTime Limit: 3 second(s)Memory Limit: 32 MBThe problem you need to solve here is pretty simple. Yo原创 2016-08-11 10:07:17 · 222 阅读 · 0 评论 -
LightOJ 1236 Pairs Forming LCM (唯一分解定理)
1236 - Pairs Forming LCM PDF (English)StatisticsForumTime Limit: 2 second(s)Memory Limit: 32 MBFind the result of the following code:long long pai原创 2016-08-11 16:16:23 · 445 阅读 · 0 评论 -
light oj 1213 - Fantasy of a Summation (数学计数)
1213 - Fantasy of a Summation PDF (English)StatisticsForumTime Limit: 2 second(s)Memory Limit: 32 MBIf you think codes, eat codes then sometimes you m原创 2016-08-11 17:51:45 · 301 阅读 · 0 评论 -
codeforces 710C Magic Odd Square(规律)
C. Magic Odd Squaretime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputFind an n × n matrix with different numb原创 2016-08-23 21:46:25 · 414 阅读 · 0 评论 -
51nod 1003 阶乘后面0的数量【数学】
1003 阶乘后面0的数量基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 收藏 关注n的阶乘后面有多少个0?6的阶乘 = 1*2*3*4*5*6 = 720,720后面有1个0。Input一个数N(1 Output输出0的数量Input示例原创 2017-04-17 20:16:09 · 341 阅读 · 0 评论