首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
villa专题
uva321 The New Villa
好久好久没一次ac了。。。。 隐式图搜索,直接可以用数组记录是否访问,bfs中保存每个状态之前的状态下标,便于打印路径。 依然出现了一些不该出现的错误,还是要加强基本功。 #include<cstdio>#include<cstring>#include<algorithm>#define HASHSIZE 110000#define MAX 1000000#define
阅读更多...
UVa 321 The New Villa,2B青年怒找卧室
题目链接: UVA : http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=257 POJ 1137: http://poj.org/problem?id=1137 ZOJ 1301: http://acm.zju.edu.c
阅读更多...