自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 资源 (4)
  • 问答 (1)
  • 收藏
  • 关注

原创 hdu_5122_K.Bro Sorting

原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=5122思路:从最后一个开始,向前比较,维护最小值。#include using namespace std;int a[1000010];int main(int argc, char *argv[]){ int t; cin >> t; int c1 = 1; while(t--)

2014-12-30 21:05:02 458

原创 hdu_1008_Elevator

http://acm.hdu.edu.cn/showproblem.php?pid=1008

2014-12-29 12:05:48 462

原创 hdu_1708_Fibonacci String

原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1708区别格式:1)There is a blank line between output blocks. 2)Please output a blank line after each test case.使用字符串模拟是不行的,要学会想别的方法解决、、、、#include using n

2014-12-29 11:19:32 663

原创 hdu_1033_Edge(模拟)

原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1033#include #include using namespace std;const int MAX = 300;typedef struct{ int x,y;}point;int main(){ char str[MAX]=" "; while(c

2014-12-26 17:07:11 593

原创 hdu_1017_A Mathematical Curiosity(模拟)

原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1017#include using namespace std;int main(){ int s; cin >> s; while(s--) { int n,m; int cnt = 1; while(1)

2014-12-26 14:32:12 977

原创 hdu_1020_Encoding(模拟)

http://acm.hdu.edu.cn/showproblem.php?pid=1020#include #include using namespace std;void f(char *a,int len){ int i = 0; int j,cnt = 1; char temp; while(i < len) { te

2014-12-25 14:54:25 431

原创 hdu_1015_Safecracker(模拟)

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1015够暴力吧!先排序,然后循环找。。。#include #include using namespace std;int cmp( const void *a , const void *b ){ return *(char *)a - *(char *)b;}int

2014-12-25 14:45:35 419

原创 hdu_1029_Ignatius and the Princess IV(模拟)

http://acm.hdu.edu.cn/showproblem.php?pid=1029#include #include using namespace std;void f(int *a,int len){ int i = 0; int cnt = 1; while(i < len) { int temp = a[i];

2014-12-25 14:35:10 608

原创 hdu_1031_Design T-Shirt(模拟)

原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1031题意:输入n,m,k,n表示有多少个人,m表示共有多少个设计元素,k表示他要选择的设计元素的个数;n个人都对m中设计的元素做出评价,要求k个设计元素的满意度最大,输出元素的标号(降序输出)。#include #include using namespace std;typedef

2014-12-25 14:11:01 638

原创 hdu_1013_Digital Roots(模拟)

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1013题意:给一个大数,必须用数组存储,然后求它每个位数之和,如果小于10则输出结果,如果大于10,继续求它和的每位数之和。例如:1000个9,和为9000,9000>10,再求9000每位数上的和,结果为9,符合题意,则输出。#include #include using namesp

2014-12-21 23:08:38 581

原创 hdu_1013_A + B Problem II_(模拟)

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1002解题思路:利用数组进行大数的相加。内置数据类型不能满足整数位数的要求。样例: 1 999 999 1#include #include using namespace std;int num1[1010],num2[1010];int t[1010];int result[1010]

2014-12-21 23:02:34 520

原创 hdu_1022_Train Problem I_(模拟)

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1022题意:有n辆火车,给出入栈和出栈的顺序,编写程序判段出栈是否正确。样例:3 123 132 是可以的#include #include #include using namespace std;int main(int argc, char *argv[]){ in

2014-12-21 22:20:14 522

原创 hdu_1002_Let the Balloon Rise (模拟)

#include #include using namespace std;int num1[1010],num2[1010];int t[1010];int result[1010];char str1[1010],str2[1010];void add(int len1,int len2){ int i,j; for(i = 0;i < len1;i

2014-12-21 21:49:19 562

原创 hdu_2044_一只小蜜蜂...(递推专题)

http://acm.hdu.edu.cn/showproblem.php?pid=2044/*从1到3 和 从2到3的方法不同*/#include using namespace std;long long a[51];//打表 void fac(){ a[1] = 1; a[2] = 2; long long a1 = 1; long long a2

2014-12-14 16:48:02 679

原创 hdu_1241_Oil Deposits(DFS)

http://acm.hdu.edu.cn/showproblem.php?pid=1241#include using namespace std;int dx[] = {0,1,1,1,0,-1,-1,-1}, dy[] = {1,1,0,-1,-1,-1,0,1};char map[101][101];int r,c;void dfs(int x,int y){

2014-12-11 09:30:08 478

原创 poj_2386_lake counting(DFS)

原题链接:http://poj.org/problem?id=2386#include using namespace std;int dx[] = {0,1,1,1,0,-1,-1,-1}, dy[] = {1,1,0,-1,-1,-1,0,1};char map[101][101];int r,c;void dfs(int x,int y){ map[x][y] =

2014-12-11 09:16:55 476

拦截器spring mvc

拦截器spring mvc,非常经典,非常容易理解,结合例子。官方推荐

2018-03-11

《游戏开发技术》遵循路径走

《游戏开发技术》遵循路径走课本源码

2016-08-11

C++example

如果你想学会C++,必须多多实践,另外,合作愉快

2014-07-16

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

TA关注的人

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