滴水穿石,慢慢积累,总会有成果

随手记录,持之以恒

Codeforces Round #338 (Div. 2) D. Multipliers (求因子积)

D. Multiplierstime limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputAyrat has number n,...

2016-08-12 12:14:21

阅读数:393

评论数:0

hdu5726 GCD (线段树+区间gcd)

GCD Time Limit: 10000/5000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1587    Accepted Submission(s): 515 ...

2016-07-21 09:30:06

阅读数:1889

评论数:1

BZOJ 1607 Patting Heads 轻拍牛头 (素数筛应用)

题目链接:http://www.lydsy.com/JudgeOnline/problem.php?id=1607思路:和素数筛一样的原理,记录每个数出现的次数,然后筛一遍就好了ac代码:#include<stdio.h> #include<math.h> #include...

2016-05-21 11:58:36

阅读数:204

评论数:0

LightOJ 1340 - Story of Tomisu Ghost (求n!在b进制下末尾0)

题目链接:http://www.lightoj.com/volume_showproblem.php?problem=1340题意:给你一个n,一个t,n!在b进制下末尾0的个数要大于等于t,求最大的d思路:筛n之内的素数,然后依次看在素数p进制下0的个数,如果大于,快速幂优化ac代码:/*Lig...

2016-05-16 17:39:14

阅读数:317

评论数:0

LightOJ 1138 - Trailing Zeroes (III) (求末尾0为x的最小N---二分)

1138 - Trailing Zeroes (III)   PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB ...

2016-04-03 16:41:25

阅读数:217

评论数:0

LightOJ 1090 - Trailing Zeroes (II) (求式子结果0的个数)

1090 - Trailing Zeroes (II)   PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB Find the number of t...

2016-03-30 21:45:05

阅读数:419

评论数:0

LightOJ 1197 - Help Hanzo (模拟筛素法区间筛素)

1197 - Help Hanzo   PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB ...

2016-03-30 20:45:15

阅读数:523

评论数:0

LightOJ 1245 - Harmonic Number (II) (求n/1+n/2+n/2+....+n/n)

1245 - Harmonic Number (II)   PDF (English) Statistics Forum Time Limit: 3 second(s) Memory Limit: 32 MB ...

2016-03-09 21:50:48

阅读数:405

评论数:0

LightOJ 1278 - Sum of Consecutive Integers (求一个数能被分解为等差数列的方案数)

1278 - Sum of Consecutive Integers   PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: ...

2016-03-09 21:13:11

阅读数:416

评论数:0

LightOJ 1259 - Goldbach`s Conjecture (分解偶数为两个素数之和)

1259 - Goldbach`s Conjecture   PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB ...

2016-03-08 17:43:06

阅读数:1021

评论数:0

LightOJ 1054 - Efficient Pseudo Code (求n^m的因子和)

1054 - Efficient Pseudo Code   PDF (English) Statistics Forum Time Limit: 1 second(s) Memory Limit: 32 MB ...

2016-02-25 21:51:15

阅读数:594

评论数:0

Codeforces Round #326 (Div. 2) B. Duff in Love (分解质因子)

B. Duff in Love time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Du...

2016-02-13 23:56:04

阅读数:383

评论数:0

HDOJ 5150 Sum Sum Sum (素数和 水)

Sum Sum Sum Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 982    Accepted Submission(s):...

2016-02-12 23:04:47

阅读数:161

评论数:0

POJ 1845 Sumdiv (大数据因子和)

Sumdiv Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 17287   Accepted: 4343 Description Consider two natur...

2016-02-10 00:22:38

阅读数:231

评论数:0

LightOJ 1109 - False Ordering (因子数打表排列)

1109 - False Ordering   PDF (English) Statistics Forum Time Limit: 1 second(s) Memory Limit: 32 MB We define b is a Divisor...

2016-02-09 17:49:36

阅读数:364

评论数:0

LightOJ 1028 1028 - Trailing Zeroes (I) (求因子个数)

1028 - Trailing Zeroes (I)   PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB We know what a base o...

2016-02-07 18:49:40

阅读数:715

评论数:0

LightOJ 1024 - Eid (高精度求n个数的LCM)

1024 - Eid   PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB In a s...

2016-02-07 17:53:46

阅读数:467

评论数:0

LightOJ 1035 - Intelligent Factorial Factorization (求因子)

1035 - Intelligent Factorial Factorization   PDF (English) Statistics Forum Time Limit: 0.5 second(s) Memo...

2016-02-05 23:37:29

阅读数:246

评论数:0

LightOJ 1014 - Ifter Party (**求因子)

1014 - Ifter Party   PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB I have an Ifter party at the ...

2016-02-05 22:40:09

阅读数:523

评论数:0

NYOJ 476 谁是英雄 (唯一分解素数求因子个数)

谁是英雄 时间限制:1000 ms  |  内存限制:65535 KB 难度:3 描述 十个数学家(编号0-9)乘气球飞行在太平洋上空。当横越赤道时,他们决定庆祝一下这一壮举。于是他们开了一瓶香槟。不幸 的是,软木塞在气球上打了一个洞,氢气泄漏,气球开始下降,眼看就要落...

2016-01-28 12:45:19

阅读数:407

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭