键盘上的舞者
码龄10年
  • 2,547,114
    被访问
  • 994
    原创
  • 705,992
    排名
  • 1,914
    粉丝
关注
提问 私信
  • 加入CSDN时间: 2012-10-20
博客简介:

ACM!荣耀之路!

博客描述:
【已退役】
查看详细资料
个人成就
  • 获得841次点赞
  • 内容获得471次评论
  • 获得369次收藏
创作历程
  • 189篇
    2015年
  • 186篇
    2014年
  • 616篇
    2013年
  • 9篇
    2012年
TA的专栏
  • 水
    330篇
  • CF
    17篇
  • STL
    18篇
  • KMP
    15篇
  • 模拟
    32篇
  • 排序
    30篇
  • 高精度
    10篇
  • DP
    117篇
  • 搜索
    89篇
  • 并查集
    18篇
  • 线段树
    43篇
  • 贪心
    14篇
  • 递推
    33篇
  • 哈希
    9篇
  • 快速幂取模
    3篇
  • 二叉树
    4篇
  • 背包
    49篇
  • 二分&三分
    22篇
  • 数据结构
    10篇
  • 数学、几何
    31篇
  • 博弈
    16篇
  • 最短路
    27篇
  • 后缀数组
    20篇
  • 树状数组
    11篇
  • RMQ
    1篇
  • 最小生成树
    1篇
  • 【算法之路】
    3篇
  • ==赛后总结==
    2篇
  • &&资料学习&&
    5篇
  • 【模板啊模板】
    14篇
  • ACM成长之路
    1篇
  • 蓝桥杯
    12篇
  • 最近
  • 文章
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

BAPC2014 J&&HUNNU11590:Jury Jeopardy

题意:一个迷宫,人一开始处在出口位置,要求遍历一次迷宫之后,回到初始位置,现在给出行走的方案,要出画出迷宫人一开始面向右边F:往前走一步R:右转并往前走一步L:左转并往前走一步B:后转并往前走一步思路:直接模拟即可#include #include #include #include #include #include #includ
原创
发布博客 2015.08.13 ·
3436 阅读 ·
4 点赞 ·
0 评论

BAPC2014 G&&HUNNU11587:Growling Gears

题意:给出N个开口向下的抛物线的a,b,c,要求输出顶点最高的抛物线是哪一条思路:直接抛物线公式算得#include #include #include #include #include #include #include #include #include #include #include #include using namespac
原创
发布博客 2015.08.13 ·
1942 阅读 ·
1 点赞 ·
0 评论

BAPC2014 K&&HUNNU11591:Key to Knowledge(中途相遇法)

题意:有N个学生,有M题目然后对应N行分别有一个二进制和一个整数二进制代表该同学给出的每道题的答案,整数代表该同学的答案与标准答案相符的个数要求判断标准答案有几个,如果标准答案只有一种,则输出标准答案思路:很容易想到状态压缩,但是很明显1变成1也就是说,对于一个串,我们分半处理首先处理前一半,讨论前一半与标准答案相符的状况,然后再讨论后半串,看与标准答案相符
原创
发布博客 2015.08.12 ·
1793 阅读 ·
2 点赞 ·
0 评论

BAPC2014 I&&HUNNU11589:Interesting Integers

题意:对于我们已知的斐波那契数列,现在给出一个n,要我们求出一个新的斐波那契数列起始项,使得n能在新的斐波那契数列中,要求起始项y最小思路:我们知道a3 = a1+a2a4 = a1+2*a2a5 = 2*a1+3*a2a6 = 3*a1+5*a2可以得到an = fib[n-2]*a[1]+fib[n-1]*a[2]然后我们只需要枚举就可以
原创
发布博客 2015.08.12 ·
1414 阅读 ·
0 点赞 ·
0 评论

BAPC2014 E&&HUNNU11585:Excellent Engineers(线段树)

题意:有n个程序员,每个程序员有三个能力值,当一个程序员三个能力值都小于另外一个程序员的时候,那么就可以淘汰那个程序员,问经过淘汰之后,还剩下几个程序员。思路:我们首先按照x排序,那么我们就只需要考虑y,z的情况了,这个时候可以用线段树,我们以y作为区间,以z作为值,每次查询只需要看1~y-1区间内是否已经存在小于z的值,如果存在,那么这个人就要淘汰#include
原创
发布博客 2015.08.12 ·
1571 阅读 ·
0 点赞 ·
0 评论

BAPC2014 C&&HUNNU11583:Citadel Construction(几何)

题意:给出一系列的点,要求寻找最多4个点,使得组成一个面积最大的多边形思路:很显然只有两种情况,要么是三角形,要么是四边形首先不难想到的是,先要把最外面的点都找出来,其实就是找凸包但是并没有做过凸包,那么怎么办?我们知道,ab与ac向量相乘得到ab*ac>=0的情况下,可以知道所有符合这个条件的,都固定在顺时针,那么我们可以通过这个,来求得所有外层的点得到这些点
原创
发布博客 2015.08.12 ·
1210 阅读 ·
0 点赞 ·
1 评论

BAPC2014 B&&HUNNU11582:Button Bashing(BFS)

题意:给出n,m,代表微波炉有n个按钮,要求达到总时间为m然后给出n个数,代表n个按钮能增加的时间,问最少几步,能够使得按出的总时间大于等于要求的时间,并且相差最小输出最小的步数与相差的最小值要求,当总时间小于0时,时间为0,大于3600时,时间为3600思路:直接暴力BFS,用VIS记录步数#include #include #include #
原创
发布博客 2015.08.12 ·
1354 阅读 ·
0 点赞 ·
0 评论

HNU13383:The Big Painting

Problem descriptionSamuel W. E. R. Craft is an artist with a growing reputation. Unfortunately, the paintings he sells do not provide him enough money for his daily expenses plus the new suppl
原创
发布博客 2015.08.10 ·
1913 阅读 ·
0 点赞 ·
0 评论

HNU13377:Book Club(DFS)

Problem descriptionPorto’s book club is buzzing with excitement for the annual book exchange event! Every year, members bring their favorite book and try to find another book they like that is
原创
发布博客 2015.08.10 ·
1619 阅读 ·
0 点赞 ·
1 评论

HNU11376:Golf Bot

Problem descriptionInputThe first line has one integer: N, the number of different distances the Golf Bot can shoot. Each of the following N lines has one integer, ki, the di
原创
发布博客 2015.08.10 ·
1334 阅读 ·
0 点赞 ·
0 评论

HNU11374:GREAT+SWERC=PORTO(DFS)

Problem descriptionWe want to have a great SWERC at Porto this year and we approached this challenge in several ways. We even framed it as a word addition problem, similar to the classic SEND+
原创
发布博客 2015.08.10 ·
1699 阅读 ·
2 点赞 ·
1 评论

hunnu11562:The Triangle Division of the Convex Polygon(第n个卡特兰数取模)

Problem description  A convex polygon with n edges can be divided into several triangles by some non-intersect diagonals. We denote d(n) is the number of the different ways to divide the convex
原创
发布博客 2015.08.08 ·
1670 阅读 ·
0 点赞 ·
0 评论

HDU5363:Key Set

Problem Descriptionsoda has a set S with n integers {1,2,…,n}. A set is called key set if the sum of integers in the set is an even number. He wants to know how many nonempty subsets of S are
原创
发布博客 2015.08.07 ·
1676 阅读 ·
0 点赞 ·
1 评论

HDU5353:Average(贪心)

Problem DescriptionThere are n soda sitting around a round table. soda are numbered from 1 to n and i-th soda is adjacent to (i+1)-th soda, 1-st soda is adjacent to n-th soda.Each so
原创
发布博客 2015.08.07 ·
2319 阅读 ·
2 点赞 ·
0 评论

HDU4647:Another Graph Game(贪心)

Problem DescriptionAlice and Bob are playing a game on an undirected graph with n (n is even) nodes and m edges. Every node i has its own weight Wv, and every edge e has its own weight We.They
原创
发布博客 2015.07.17 ·
1712 阅读 ·
0 点赞 ·
0 评论

HDU4649:Professor Tian(概率)

Problem DescriptionTimer took the Probability and Mathematical Statistics course in the 2012, But his bad attendance angered Professor Tian who is in charge of the course. Therefore, Professor Tia
原创
发布博客 2015.07.17 ·
1293 阅读 ·
0 点赞 ·
0 评论

HDU4634:Swipe Bo(BFS+状压)

Problem Description“Swipe Bo” is a puzzle game that requires foresight and skill. The main character of this game is a square blue tofu called Bo. We can swipe up / down / left / right to move B
原创
发布博客 2015.07.14 ·
1288 阅读 ·
0 点赞 ·
0 评论

HDU4638:Group(线段树离线处理)

Problem DescriptionThere are n men ,every man has an ID(1..n).their ID is unique. Whose ID is i and i-1 are friends, Whose ID is i and i+1 are friends. These n men stand in line. Now we select an
原创
发布博客 2015.07.14 ·
1679 阅读 ·
0 点赞 ·
0 评论

HDU4642:Fliping game

Problem DescriptionAlice and Bob are playing a kind of special game on an N*M board (N rows, M columns). At the beginning, there are N*M coins in this board with one in each grid and every coin ma
原创
发布博客 2015.07.14 ·
1526 阅读 ·
0 点赞 ·
0 评论

HDU4639:Hehe

Problem DescriptionAs we all know, Fat Brother likes MeiZi every much, he always find some topic to talk with her. But as Fat Brother is so low profile that no one knows he is a rich-two-generatio
原创
发布博客 2015.07.14 ·
1533 阅读 ·
0 点赞 ·
0 评论
加载更多