会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
午夜阳光~
在美国的最北边巴罗小镇,北极圈以北,530公里北冰洋岸边,在那的大街上都可以看到北极熊,每年的5.11到8.1这83天里,太阳都不会落到地平线下面。那里的午夜都有阳光……
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
10
11
12
13
14
15
下一页
2015年6月9日
在线判题 (模拟)http://202.196.1.132/problem.php?id=1164
摘要: #include#include#include#include#define N 200010void input(char s[]){ char str[N] = {0}; while(gets(str), strcmp(str, "START"));/****/ while(...
阅读全文
posted @ 2015-06-09 19:26 午夜阳光~
阅读(409)
评论(0)
推荐(0)
2015年5月29日
poj 1915 http://poj.org/problem?id=1915
摘要: /**#include #include #include #include #define N 310using namespace std;int d[8][2] = {{-2, -1}, {-2, 1}, {-1, -2}, {-1, 2}, {1, -2}, {1, 2}, {2, -1},...
阅读全文
posted @ 2015-05-29 09:00 午夜阳光~
阅读(260)
评论(0)
推荐(0)
2015年5月27日
HDU 1312 http://acm.hdu.edu.cn/showproblem.php?pid=1312
摘要: #include#include#include#include#define max(a, b)(a > b ? a : b)#define N 30char maps[N][N];int m, n, ans;int d[4][2] = {{0, 1}, {0, -1}, {1, 0}, {-1,...
阅读全文
posted @ 2015-05-27 19:26 午夜阳光~
阅读(184)
评论(0)
推荐(0)
HDU1518 Square
摘要: #include#include#include#include#define max(a, b)(a > b ? a : b)#define N 30int a[N], vis[N], n, k, f;void DFS(int s, int m, int d)//s为搜索起点 m为已组成的正方体的...
阅读全文
posted @ 2015-05-27 18:22 午夜阳光~
阅读(140)
评论(0)
推荐(0)
2015年5月20日
HDU 1455 http://acm.hdu.edu.cn/showproblem.php?pid=1455
摘要: #include#include#include#include#define N 70int f, vis[N], v, n, a[N];int cmp(const void *a, const void *b){ return *(int *)b - *(int *)a;}void DFS...
阅读全文
posted @ 2015-05-20 20:14 午夜阳光~
阅读(136)
评论(0)
推荐(0)
2015年5月18日
UVA 11300 Spreading the Wealth
摘要:
阅读全文
posted @ 2015-05-18 12:32 午夜阳光~
阅读(150)
评论(0)
推荐(0)
2015年5月8日
HDU 1702 http://acm.hdu.edu.cn/showproblem.php?pid=1702
摘要: #include#include#include#include#define N 10using namespace std;void Q(int n){ int m; char s[N]; queueQ; while(n--) { scanf("%s"...
阅读全文
posted @ 2015-05-08 10:51 午夜阳光~
阅读(255)
评论(0)
推荐(0)
2015年5月7日
栈的简单应用 HDU 1022 http://acm.hdu.edu.cn/showproblem.php?pid=1022
摘要: #include#include#include#define N 20using namespace std;int main(){ stackS; int n, i, j, k, a[N]; char s1[N], s2[N]; while(scanf("%d", &n)...
阅读全文
posted @ 2015-05-07 17:59 午夜阳光~
阅读(132)
评论(0)
推荐(0)
HDU 1702 队列与栈的简单运用http://acm.hdu.edu.cn/showproblem.php?pid=1702
摘要: #include#include#include#include#define N 10using namespace std;void Q(int n){ int m; char s[N]; queueQ; while(n--) { scanf("%s"...
阅读全文
posted @ 2015-05-07 16:51 午夜阳光~
阅读(187)
评论(0)
推荐(0)
背包模板(01背包,完全背包,多重背包)
摘要: 背包模板(01背包,完全背包,多重背包)一、01背包:#define N ..///N这个值是根据具体的题目来定的int v; ///v为总的容量int dp[N];void ZeroOnePack(int cost,int weight){ for(int j=v;j>=cost;j--...
阅读全文
posted @ 2015-05-07 15:59 午夜阳光~
阅读(356)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
下一页
公告