数学&思维
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 · 181 阅读 · 0 评论 -
bzoj 2456: mode(找众数)
2456: mode Time Limit: 1 Sec Memory Limit: 1 MB Submit: 3607 Solved: 1515 [Submit][Status][Discuss] Description 给你一个n个数的数列,其中某个数出现了超过n div 2次即众数,请你找出那个数。 Input 第1行一个正整数n。 第2行n个正整数用空格隔开原创 2016-09-17 14:24:15 · 347 阅读 · 0 评论 -
hdoj 1018 Big Number(数学)
Big Number Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 35176 Accepted Submission(s): 16762 Problem Description In many appli原创 2016-09-23 17:05:08 · 250 阅读 · 0 评论 -
hd 1065 I Think I Need a Houseboat(数学、水)
I Think I Need a Houseboat Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 12471 Accepted Submission(s): 3518 Problem Description原创 2016-09-23 17:49:29 · 245 阅读 · 0 评论 -
“玲珑杯”ACM比赛 Round #4 A -- chess play
A -- chess play Bob 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 · 277 阅读 · 0 评论 -
“玲珑杯”ACM比赛 Round #4 G -- See car
G -- See car Time Limit:2s Memory Limit:64MByt DESCRIPTION You 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 · 491 阅读 · 0 评论 -
codeforces 733B Parade(思维)
B. Parade time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Very soon there will be a parade of victory over a原创 2016-11-02 20:08:13 · 336 阅读 · 0 评论 -
hdu 1568 Fibonacci(斐波那契数列)
Fibonacci Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 4930 Accepted Submission(s): 2296 Problem Description 2007年到来了。经过2006年原创 2016-11-21 21:41:19 · 308 阅读 · 0 评论 -
hduoj 1432 Lining Up【思维】
Lining Up Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 1437 Accepted Submission(s): 433 Problem Description ``How am I ever goi原创 2017-03-09 20:08:00 · 221 阅读 · 0 评论 -
hduoj 2824 The Euler function【欧拉函数 打表】
The Euler function Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 6449 Accepted Submission(s): 2720 Problem Description The Euler原创 2017-03-09 21:03:33 · 197 阅读 · 0 评论 -
组合数学定理收集
唯一分解定理:任意一个大于1的正整数都能表示成若干个质数的乘积,且表示的方法是唯一的。换句话说,一个数能被唯一地分解成质因数的乘积。即 N = p1^a1 * p2^a2 * p3^a3 * ...* pn^an 。 其中p1,p2....pn为素数。 代码实现: #include #include using namespace std; const int maxn = 1e5原创 2017-03-28 12:38:53 · 944 阅读 · 0 评论 -
HDU 5969 最大的位或
最大的位或 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1201 Accepted Submission(s): 486 Problem Description B君和G君聊天的时候想到了如下的问题。 给定原创 2017-03-16 21:29:10 · 204 阅读 · 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 · 332 阅读 · 0 评论 -
hdu 5100 Chessboard
Chessboard Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1106 Accepted Submission(s): 478 Problem Description Consider the pro原创 2016-09-02 16:45:10 · 216 阅读 · 0 评论 -
hdu 5671 Matrix(矩阵行列式交换)
Matrix Time Limit: 3000/1500 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 1410 Accepted Submission(s): 562 Problem Description There is a matrix原创 2016-09-02 16:14:05 · 378 阅读 · 0 评论 -
CodeForces 628 B New Skateboard
B. New Skateboard time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Max wants to buy a new skateboard. He has原创 2016-08-11 21:33:13 · 277 阅读 · 0 评论 -
hd 1286 找新朋友 (欧拉函数)
找新朋友 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 11071 Accepted Submission(s): 5881 Problem Description 新年快到了,“猪头帮协会”准备搞一个聚会原创 2016-07-23 22:58:20 · 184 阅读 · 0 评论 -
hd 5615 Jam's math problem(枚举)
Jam's math problem Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1317 Accepted Submission(s): 587 Problem Description Jam has原创 2016-07-23 23:26:21 · 158 阅读 · 0 评论 -
hd 5620 KK's Steel(斐波那契数列)
KK's Steel Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1009 Accepted Submission(s): 487 Problem Description Our lovely KK ha原创 2016-08-15 21:49:55 · 346 阅读 · 0 评论 -
郑轻 1899 985的最大和难题
1899: 985的最大和难题 Time Limit: 1 Sec Memory Limit: 128 MB Submit: 266 Solved: 23 SubmitStatusWeb Board Description 985有2 * n - 1个整数,他每次可以将其中n个数变号,操作次数不限,问他可以得到的最大和。 Input 第一行输入一个整数t,原创 2016-08-05 21:10:05 · 258 阅读 · 0 评论 -
LOJ 1305 - Area of a Parallelogram(数学j几何)
1305 - Area of a Parallelogram PDF (English) Statistics Forum Time Limit: 1 second(s) Memory Limit: 32 MB A parallelogram is a quadrilateral with two pairs原创 2016-08-27 13:40:07 · 508 阅读 · 0 评论 -
LOJ 1045 - Digits of Factorial(数学)
1045 - Digits of Factorial PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB Factorial of an integer is defined by the following f原创 2016-08-29 13:02:10 · 337 阅读 · 0 评论 -
zzuli 1893 985的数学难题
1893: 985的数学难题 Time Limit: 2 Sec Memory Limit: 128 MB Submit: 178 Solved: 44 SubmitStatusWeb Board Description 985有n个正整数,他想快速知道下面函数的返回值 int a[N+1]; long long Solve() { int i, j;原创 2016-08-19 17:18:26 · 221 阅读 · 0 评论 -
codeforces 707C Pythagorean Triples(数学)
C. Pythagorean Triples time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Katya studies in a fifth grade. Recen原创 2016-08-22 10:28:23 · 257 阅读 · 0 评论 -
light oj 1369 - Answering Queries
1369 - Answering Queries PDF (English) Statistics Forum Time Limit: 3 second(s) Memory Limit: 32 MB The problem you need to solve here is pretty simple. Yo原创 2016-08-11 10:07:17 · 193 阅读 · 0 评论 -
LightOJ 1236 Pairs Forming LCM (唯一分解定理)
1236 - Pairs Forming LCM PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB Find the result of the following code: long long pai原创 2016-08-11 16:16:23 · 393 阅读 · 0 评论 -
light oj 1213 - Fantasy of a Summation (数学计数)
1213 - Fantasy of a Summation PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB If you think codes, eat codes then sometimes you m原创 2016-08-11 17:51:45 · 273 阅读 · 0 评论 -
codeforces 710C Magic Odd Square(规律)
C. Magic Odd Square time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Find an n × n matrix with different numb原创 2016-08-23 21:46:25 · 393 阅读 · 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 · 290 阅读 · 0 评论