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

随手记录,持之以恒

AIM Tech Round 3 (Div. 2) C. Letters Cyclic Shift (字符串)

C. Letters Cyclic Shifttime limit per test 1 second memory limit per test 256 megabytes input standard input output standard outputYou are giv...

2016-08-25 17:13:26

阅读数:587

评论数:0

Codeforces Round #354 (Div. 2) C. Vasya and String (尺取法)

C. Vasya and Stringtime limit per test 1 second memory limit per test 256 megabytes input standard input output standard outputHigh school stu...

2016-08-22 21:29:14

阅读数:543

评论数:0

Codeforces Round #356 (Div. 2) C. Bear and Prime 100 (有趣的题目)

C. Bear and Prime 100time limit per test 1 second memory limit per test 256 megabytes input standard input output standard outputThis is an in...

2016-08-21 21:15:37

阅读数:360

评论数:0

Codeforces Round #367 (Div. 2) B. Interesting drink (二分)

B. Interesting drinktime limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputVasiliy likes...

2016-08-21 14:38:04

阅读数:281

评论数:0

Codeforces Round #364 (Div. 2) C. They Are Everywhere (尺取法)

C. They Are Everywheretime limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputSergei B., ...

2016-08-21 14:12:23

阅读数:312

评论数:0

hdu 5813 Elegant Construction (构造)

Elegant ConstructionTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 104 Accepted Submiss...

2016-08-09 19:07:11

阅读数:260

评论数:0

Codeforces Round #357 (Div. 2) C. Heap Operations (优先队列)

C. Heap Operations time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output ...

2016-06-26 10:17:48

阅读数:475

评论数:0

BZOJ 4511 Subsequences Summing to Sevens (前缀和)

题目链接:http://www.lydsy.com/JudgeOnline/problem.php?id=4511题意:给你n个数,求一个最长的区间,使得区间和能被7整除思路:求出前缀和mod7,然后遍历,查看,如果拥有相同的余数,说明这个区间是可以被7整除的,那么记录ac代码:#include&...

2016-05-21 11:46:52

阅读数:456

评论数:0

Codeforces Beta Round #11 B. Jumping Jack (数学)

题目链接:http://www.codeforces.com/contest/11/problem/B题意:给你一个目标点,初始点是0,初始跳跃距离为1,每次跳跃后跳跃距离+1,问最少几次可以跳到目标点,必须准确到达思路:如果跳过了的话,如果跳过的距离是偶数的话,可以通过使得(now-n)/2这一...

2016-05-02 21:09:39

阅读数:324

评论数:0

HDOJ 1418 抱歉 (规律)

抱歉 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 4421    Accepted Submission(s): 1924 ...

2016-03-16 08:32:43

阅读数:207

评论数:0

UESTC 758 P酱的冒险旅途

题目链接:http://acm.uestc.edu.cn/#/problem/show/758 思路:如果暴力搜索的话会超时,所以说有技巧,每一步可以选择走或者不走,所以说只需要查看所给字符串中是否含有能从原点到目标点的步伐就可以了,即记录L,R,U,D的数量,然后验证 ...

2016-03-16 08:30:51

阅读数:244

评论数:0

POJ 3061 Subsequence (尺取)

Language: Subsequence Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 10993   Accepted: 4545 Description A ...

2016-03-16 08:22:47

阅读数:193

评论数:0

Educational Codeforces Round 7 C. Not Equal on a Segment

C. Not Equal on a Segment time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are ...

2016-02-11 20:05:30

阅读数:284

评论数:0

LightOJ 1163 - Bank Robbery (思维方程式求解)

1163 - Bank Robbery   PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB ...

2016-02-09 22:32:23

阅读数:690

评论数:0

Codeforces AIM Tech Round (Div. 2) B. Making a String

B. Making a String time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given a...

2016-02-05 11:52:14

阅读数:419

评论数:0

Codeforces Round #341 (Div. 2) B. Wet Shark and Bishops (正副对角线规律)

B. Wet Shark and Bishops time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outpu...

2016-02-01 12:28:48

阅读数:555

评论数:0

HDOJ 5616 Jam's balance (暴力)

Jam's balance Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 299    Accepted Submission(s):...

2016-01-31 14:54:02

阅读数:544

评论数:0

Wunder Fund Round 2016 (Div. 1 + Div. 2 combined) B. Guess the Permutation

B. Guess the Permutation time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outpu...

2016-01-30 10:42:58

阅读数:541

评论数:0

UESTC 1272 Final Pan's prime numbers (规律)

题目链接:http://acm.uestc.edu.cn/#/problem/show/1272 思路:暴力发现规律 ac代码: #include #include #include #include #include #include #include #inclu...

2016-01-17 22:29:18

阅读数:190

评论数:0

UESTC 1269 ZhangYu Speech (预处理)

题目链接:http://acm.uestc.edu.cn/#/problem/show/1269 题意:给你一个序列,然后m次查询,输入k,k前面比k小的和k的差值加一块,比k大的数和k的差值加一块,比大小 思路:预处理前缀和,询问时只需要查看前缀和和所使用第k个数的次数*k的...

2016-01-17 22:27:17

阅读数:184

评论数:0

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