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

随手记录,持之以恒

Codeforces Round #368 (Div. 2) C. Pythagorean Triples (本原勾股数)

C. Pythagorean Triplestime limit per test 1 second memory limit per test 256 megabytes input standard input output standard outputKatya studie...

2016-08-21 15:00:18

阅读数:352

评论数:0

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

阅读数:380

评论数:0

POJ 2480 Longge's problem (欧拉函数)

Longge’s problem Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 8107 Accepted: 2680Description Longge is good at mathematics ...

2016-07-22 21:48:45

阅读数:316

评论数: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

阅读数:1806

评论数:1

Codeforces Round #360 (Div. 2) D. Remainders Game

D. Remainders Game time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output ...

2016-07-02 14:38:08

阅读数:507

评论数:0

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

阅读数:200

评论数: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

阅读数:295

评论数:0

LightOJ 1282 - Leading and Trailing (求n^k的前三位和后三位)

1282 - Leading and Trailing   PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB ...

2016-04-04 18:45:20

阅读数:560

评论数: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

阅读数:210

评论数: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

阅读数:418

评论数: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

阅读数:501

评论数:0

HDOJ 1205 吃糖果(抽屉原理)

吃糖果 Time Limit: 6000/3000 MS (Java/Others)    Memory Limit: 65535/32768 K (Java/Others) Total Submission(s): 32070    Accepted Submission(s): 9118 ...

2016-03-16 08:49:33

阅读数:218

评论数: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

阅读数:387

评论数: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

阅读数:404

评论数: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

阅读数:888

评论数:0

Codeforces Round #260 (Div. 2) B. Fedya and Maths (数学规律)

B. Fedya and Maths time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output ...

2016-03-08 16:53:00

阅读数:291

评论数: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

阅读数:564

评论数:0

LightOJ 1067 - Combinations (Lucas定理)

1067 - Combinations   PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB ...

2016-02-23 00:07:30

阅读数:444

评论数:0

HDOJ 3037 Saving Beans (Lucas定理)

Saving Beans Time Limit: 6000/3000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3533    Accepted Submission(s...

2016-02-23 00:02:18

阅读数:451

评论数:0

LightOJ 1213 - Fantasy of a Summation (排列组合+快速幂)

1213 - Fantasy of a Summation   PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB...

2016-02-15 00:50:45

阅读数:556

评论数:0

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