自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Silenceneo的ACM坎坷之路(已退役)

世界上没有救世主,凡事都要依靠自己。

  • 博客(31)
  • 收藏
  • 关注

原创 XTU 1247 Robb's Problem

XTU 1247 Robb's Problem之编程解答……

2016-05-29 23:17:20 3143 1

原创 XTU 1246 Matrix Transposition

XTU 1246 Matrix Transposition之编程解答……

2016-05-29 23:05:29 1573

原创 HDU 1856 More is better

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1856More is betterTime Limit: 5000/1000 MS (Java/Others)    Memory Limit: 327680/102400 K (Java/Others)Total Submission(s): 22471    Acce

2016-05-29 22:46:46 490

原创 CodeForces 321A Ciel and Robot

题目链接:http://codeforces.com/problemset/problem/321/ACiel and Robottime limit per test:1 secondmemory limit per test:256 megabytesinput:standard inputoutput:standard outp

2016-05-29 22:35:47 629

原创 HDU 4535 吉哥系列故事——礼尚往来

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4535吉哥系列故事——礼尚往来Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 1401    Accepted

2016-05-29 22:22:50 583

原创 HDU 1217 Arbitrage

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1217ArbitrageTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6555    Accepted Sub

2016-05-27 09:41:36 541

原创 HDU 1233 还是畅通工程

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1233还是畅通工程Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 38116    Accepted Submi

2016-05-27 08:37:49 487

原创 HDU 1102 Constructing Roads

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1102Constructing RoadsTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 19809    Ac

2016-05-27 08:06:52 455

原创 HDU 2955 Robberies

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2955RobberiesTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 19570    Accepted Su

2016-05-26 22:39:25 400

原创 POJ 1384 Piggy-Bank

题目链接:http://poj.org/problem?id=1384Piggy-BankTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 10143Accepted: 4966DescriptionBefore ACM can do an

2016-05-26 21:28:11 560

原创 HDU 2191 悼念512汶川大地震遇难同胞——珍惜现在,感恩生活

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2191悼念512汶川大地震遇难同胞——珍惜现在,感恩生活Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2339

2016-05-26 21:15:05 586

原创 HDU 1203 I NEED A OFFER!

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1203I NEED A OFFER!Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 23545    Accep

2016-05-25 12:05:59 462

原创 HDU 2602 Bone Collector

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2602Bone CollectorTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 48219    Accept

2016-05-25 11:46:46 462

原创 2016"百度之星" - 初赛(Astar Round2A)

题目链接:http://bestcoder.hdu.edu.cn/contests/contest_show.php?cid=7011001思路:m个x,展开为x*(10^0+10^1+......+10^(m-1))=(10^m-1)/9*x,要判断(10^m-1)/9*x mod k = c,根据同余性质,可得(10^m-1)*x mod 9*k = 9*c,最后只要判断它是否

2016-05-22 01:19:46 530

原创 2016"百度之星" - 资格赛(Astar Round1)

题目链接:http://bestcoder.hdu.edu.cn/contests/contest_show.php?cid=690Problem A思路:先预处理开始位置到每一个位置的结果。假设要求区间为[a,b],开始位置到位置i的结果为f(i),那么区间[a,b]所求结果为f(b)/f(a-1),但是不一定能整除,所以需要处理一下。因为模为p=9973,是一个素数。根据费马小

2016-05-21 10:53:32 456

原创 Gym 100712K Runtime Error

题目链接:http://codeforces.com/gym/100712/attachments将各数字计数一下,然后枚举判断。注:x,y为0,x,y相等时的情况。附上AC代码:#include //#pragma comment(linker, "/STACK:102400000, 102400000")using namespace std;cons

2016-05-15 22:07:28 553

原创 Gym 100712J Candy

题目链接:http://codeforces.com/gym/100712/attachments将各年龄的人数、各袋糖果个数相同的袋数统计一下,然后从糖果个数小的袋开始匹配年龄小的,如果能够匹配所有年龄,则成功,否则失败。附上AC代码:#include //#pragma comment(linker, "/STACK:102400000, 10240000

2016-05-15 22:00:40 675

原创 Gym 100712B Rock-Paper-Scissors

题目链接:http://codeforces.com/gym/100712/attachments先将前n次都出石头、剪刀、布的获胜次数预处理一下,然后分三段枚举一下即可。附上AC代码:#include //#pragma comment(linker, "/STACK:102400000, 102400000")using namespace std;c

2016-05-15 21:51:09 860

原创 Gym 100712G Heavy Coins

题目链接:http://codeforces.com/gym/100712/attachments枚举子集。枚举时判断不满足题目条件:拿掉某几个硬币仍足以支付车费。附上AC代码:#include //#pragma comment(linker, "/STACK:102400000, 102400000")using namespace std;const

2016-05-15 21:43:38 610

原创 Gym 100712F Travelling Salesman

题目链接:http://codeforces.com/gym/100712/attachments最小生成树的变体,kruskal算法搞定,答案即为最小生成树的最大边。附上AC代码:#include //#pragma comment(linker, "/STACK:102400000, 102400000")using namespace std;con

2016-05-15 21:34:09 570

原创 Gym 100712E Epic Professor

题目链接:http://codeforces.com/gym/100712/attachments大水题,排序找出最大的成绩,然后用100减去它,再将每个人的成绩加上这个差,判断即可。附上AC代码:#include //#pragma comment(linker, "/STACK:102400000, 102400000")using namespace

2016-05-15 21:28:30 518

原创 Gym 100712C Street Lamps

题目链接:http://codeforces.com/gym/100712/attachments水题,模拟一下就好了。附上AC代码:#include //#pragma comment(linker, "/STACK:102400000, 102400000")using namespace std;const int maxn = 105;char

2016-05-15 11:29:15 607

原创 Gym 100712A Who Is The Winner

题目链接:http://codeforces.com/gym/100712/attachments大水题一个,直接排序就好了。附上AC代码:#include //#pragma comment(linker, "/STACK:102400000, 102400000")using namespace std;const int maxn = 105;co

2016-05-15 11:23:59 742

原创 HDU 3723 Delta Wave

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3723Delta WaveTime Limit: 6000/3000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1069    Accepted Su

2016-05-11 11:54:38 769

原创 HDU 1130 How Many Trees?

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1130How Many Trees?Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3458    Accept

2016-05-11 11:25:24 585

原创 CodeForces 657B Bear and Polynomials

题目链接:http://codeforces.com/problemset/problem/657/BBear and Polynomialstime limit per test:2 secondsmemory limit per test:256 megabytesinput:standard inputoutput:standa

2016-05-11 11:11:46 490

原创 CodeForces 657A Bear and Forgotten Tree 3

题目链接:http://codeforces.com/problemset/problem/657/ABear and Forgotten Tree 3time limit per test:2 secondsmemory limit per test:256 megabytesinput:standard inputoutput:s

2016-05-11 10:45:11 2368

原创 HDU 2544 最短路

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2544最短路Time Limit: 5000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 50985    Accepted Submissi

2016-05-11 02:23:52 822

原创 HDU 3714 Error Curves

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3714Error CurvesTime Limit: 4000/2000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 4536    Accepted

2016-05-11 02:12:51 873

原创 POJ 3301 Texas Trip

题目链接:http://poj.org/problem?id=3301Texas TripTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 4935Accepted: 1543DescriptionAfter a day trip wi

2016-05-11 02:03:32 998

原创 CodeForces 286C Main Sequence

题目链接:http://codeforces.com/problemset/problem/286/CMain Sequencetime limit per test:2 secondsmemory limit per test:256 megabytesinput:standard inputoutput:standard output

2016-05-11 01:49:48 693

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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