会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
chaoswr
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2018年4月17日
操作系统实验 windows编程多线程 生产者消费者问题 画圆画方(内置bug版)
摘要: 实验3:随便写的 1 #include <windows.h> 2 #include <string> 3 #include <stdio.h> 4 #pragma warning(disable:4996) 5 6 CRITICAL_SECTION cs; 7 8 int cnt; 9 10 DW
阅读全文
posted @ 2018-04-17 13:58 LBNOQYX
阅读(1004)
评论(0)
推荐(0)
2018年4月14日
无向图连通分量
摘要: 割顶: POJ1144:求割顶的数量 1 #include <iostream> 2 #include <string.h> 3 #include <cstdio> 4 #include <queue> 5 #include <math.h> 6 #include <cstring> 7 #incl
阅读全文
posted @ 2018-04-14 16:38 LBNOQYX
阅读(247)
评论(0)
推荐(0)
2018年4月11日
数位DP
摘要: 萌新第一题:HDU2089 不要62 1 #include <iostream> 2 #include <string.h> 3 #include <cstdio> 4 #include <queue> 5 #include <math.h> 6 #include <string> 7 #inclu
阅读全文
posted @ 2018-04-11 22:25 LBNOQYX
阅读(125)
评论(0)
推荐(0)
2018年4月7日
状态压缩DP
摘要: 萌新第一题:POJ3524 注释都写了,转移方程那里没写 1 #include <iostream> 2 #include <string.h> 3 #include <cstdio> 4 #include <queue> 5 #include <string> 6 #include <algori
阅读全文
posted @ 2018-04-07 16:33 LBNOQYX
阅读(155)
评论(0)
推荐(0)
2018年4月3日
树形DP
摘要: ① 相邻节点不能同时选时 所得到权值最大:POJ2342 1 #include <iostream> 2 #include <string.h> 3 #include <cstdio> 4 #include <math.h> 5 #define SIGMA_SIZE 26 6 #pragma war
阅读全文
posted @ 2018-04-03 22:21 LBNOQYX
阅读(153)
评论(0)
推荐(0)
2018年3月31日
Broken Keyboard UVA 11988 数组实现链表
摘要: 这个构造十分巧妙,,,又学到一招,有点类似数组实现的邻接表
阅读全文
posted @ 2018-03-31 21:09 LBNOQYX
阅读(140)
评论(0)
推荐(0)
2018年3月30日
Trees in a Wood UVA - 10214 欧拉函数模板
摘要: 太坑惹,,,没用longlong各种WA
阅读全文
posted @ 2018-03-30 20:59 LBNOQYX
阅读(122)
评论(0)
推荐(0)
2018年3月28日
POJ1061 青蛙的约会 拓展欧几里得
摘要: 描述: 两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面为止。可是它们出发之前忘记了一件很重要的事情,既没有问清楚对方的特征,也没有约定见面的具体位置。不过青蛙们都是很乐观的,它们觉得只要一直朝着某个方向跳下去,总
阅读全文
posted @ 2018-03-28 21:42 LBNOQYX
阅读(121)
评论(0)
推荐(0)
UVA10215The Largest/Smallest Box(小数精度)
摘要: 本身很容易却因为评测机有毒的一道题,,,看网上题解说最后一个答案要加一个很小的数才能AC,据说是因为没有speci judge
阅读全文
posted @ 2018-03-28 19:50 LBNOQYX
阅读(129)
评论(0)
推荐(0)
UVa 12034 Race 递推?
摘要: 一开始是想排列组合做的,排列组合感觉确实可以推出公式,但是复杂度嘛.. dp[i][j]表示有i只马,j个名次的方法数,显然j<=i,然后递推公式就很好写了,一只马新加进来要么与任意一个名次的马并行,则加进来后仍有j种名次,且有j个名次可选择,所以新增j*dp[i-1][j]种;要么这匹马插进j-1
阅读全文
posted @ 2018-03-28 14:14 LBNOQYX
阅读(96)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告