会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Scale_the_heights
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
下一页
2014年10月25日
uva170-Clock patience
摘要: /*题目描述有问题,发牌是从k开始发到A 然后最上面一层是输入的第一行,第二层是第二行,以此类推*/#include #include #include #include using namespace std;struct card{ int vis,num; char color;}...
阅读全文
posted @ 2014-10-25 16:16 Scale_the_heights
阅读(223)
评论(0)
推荐(0)
2014年10月22日
bfs-poj-Bloxorz I
摘要: 存在的问题:用string 显示 runtime error 还有就是效率超低,1890ms险过,还是不够#include #include #include #include #include #include using namespace std;int n,m;struct node{ ...
阅读全文
posted @ 2014-10-22 20:42 Scale_the_heights
阅读(159)
评论(0)
推荐(0)
2014年10月18日
priority_queue-Card Game Cheater POJ, 2062
摘要: 水题,但是忘了清空队列结果就悲剧了。#include #include #include #include #include using namespace std;struct Card{ char num; int determin;};struct cmp{ bool ope...
阅读全文
posted @ 2014-10-18 13:26 Scale_the_heights
阅读(142)
评论(0)
推荐(0)
2014年10月16日
priority_queue poj2051 Argus
摘要: STL学习之priority_queue 题意就是在一段时间内有用户注册要求每行先输入命令(Register/"#")如果是Register就输入用户的id和输出这个id的时间间隔(每经过指定的时间间隔就输出该用户名),如果是#结束输入,最后输入一个数字ans,要求按照时间输出前ans个用户名,如果...
阅读全文
posted @ 2014-10-16 21:12 Scale_the_heights
阅读(154)
评论(0)
推荐(0)
2014年10月15日
uva 417 map暴力
摘要: 说是水题,代码还是有点烦人的,思想就是先打表再输出#include#include#include#include#include using namespace std;map wd;void dabiao(){ int cnt=1; char temp[6]; for(cha...
阅读全文
posted @ 2014-10-15 23:46 Scale_the_heights
阅读(205)
评论(0)
推荐(0)
2014年10月14日
uva 572 Oil Deposits
摘要: 水题#include #include #define N 103using namespace std;char w[N][N];int n,m;void dfs(int x,int y){ w[x][y]='.';//把现在所在位置替换为 . for(int dx=-1;dx>w[i...
阅读全文
posted @ 2014-10-14 18:48 Scale_the_heights
阅读(143)
评论(0)
推荐(0)
2014年10月10日
uva315/poj1144 network 求割点
摘要: 刚开始这道题读数据时用了stringstream和getline,结果超时了,也不知道哪里超了,改了半天最后才想到输入,改掉输入就ac了#include #include #include #include using namespace std;int n,ans;int way[150][150...
阅读全文
posted @ 2014-10-10 23:36 Scale_the_heights
阅读(144)
评论(0)
推荐(0)
2014年10月9日
poj 1011 dfs剪枝
摘要: 参考了http://blog.csdn.net/xuezhongfenfei/article/details/8523380//poj 1011 dfs#include #include #include #include using namespace std;int n,st[100];int ...
阅读全文
posted @ 2014-10-09 21:06 Scale_the_heights
阅读(169)
评论(0)
推荐(0)
2014年10月6日
dfs-uva 10926 How Many Dependencies
摘要: 再次证明严谨的思维是ac的保证,这次自以为考虑到了所有情况,却栽在了数组这块,处理时从0开始,而输入依赖的工作序号却是从一开始,wrong了一下,找错找了半天才反应过来,果然是菜。解题思路,简单dfs,看成一个有向图,不知道怎么描述,反正就是直接找每个点"依赖"的点有多少,输出最多的。附代码#inc...
阅读全文
posted @ 2014-10-06 23:21 Scale_the_heights
阅读(255)
评论(0)
推荐(0)
uva 10596 - Morning Walk
摘要: 题意:一个人想从家走遍整个城市,不走重复的路,问有没有可能。明显的欧拉问题。输入:第一行两个数字,前一个代表有N个点,后一个代表R条路,接着输入这r条路分别连着哪两个点。判断是否连通:任意一个点是否可以访问所有节点。判断是否欧拉回路:离散数学中有讲过,图论知识,判断每个点的度数是否为偶数度。这题坑的...
阅读全文
posted @ 2014-10-06 20:49 Scale_the_heights
阅读(202)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
下一页
公告