题目大意:给定一个有坏点的网格图,从A点走到B点,要求拐弯最少
裸SPFA……在状态那里记录下方向就好了
水水更健康~~
#include
#include
#include
#include
#define M 10100
#define P(x,y) ((x)*n-n+(y))
using namespace std;
const int dx[]={0,0,1,-1};
con...
分类:
其他好文 时间:
2015-02-23 22:29:08
阅读次数:
191
1 #include 2 using namespace std; 3 4 class Test 5 { 6 public: 7 Test(int n = 1) 8 { 9 val = n;10 cout << "Con." << endl;11 }12 13 ...
分类:
其他好文 时间:
2015-02-16 23:26:51
阅读次数:
244
原文:SharePoint 2013 Ajax 造成页面无法编辑 1、如下图,在编辑页面的时候,出现如下错误“此网页自上次打开后已被修改,必须再次打开该网页”,页面上没有什么特别的设置,就是default.aspx; 2、编辑之前页面,只有一个内容编辑器部件,和若干关闭部件,如下图: 3、加上con...
分类:
Web程序 时间:
2015-02-16 12:50:32
阅读次数:
142
Toast.makeText(this.getApplication(), "hello toast^^^^^^", 1).show();
1特点:
(1)没有焦点
(2)显示的时间有限,会自动消失。
2:参数说明:
第一个参数:应用的上下文Context
Context提供了关于应用环境全局信息的接口。它是一个抽象类,它的实现由
Android系统所提供。通过con...
分类:
移动开发 时间:
2015-02-14 11:03:56
阅读次数:
171
Given a sorted array, remove the duplicates in place such that eachelement appear only once and return the new length.
Do not allocate extra space for another array, you must do this in placewith con...
分类:
其他好文 时间:
2015-02-12 22:52:00
阅读次数:
143
Error -26359: Function not allowed within a concurrent group 疑问:基于url录制的脚步能用检查点么?疑问:web_set_max_html_param_len("9999999");这个函数在基于url录制的脚本中,应该写在web_con...
分类:
其他好文 时间:
2015-02-11 15:50:41
阅读次数:
548
到年终了,手里活不多了,平时就想着将平时一些常用的命令整合一下,于是下面的一个小小脚本就出来了。。。。好了,直接上菜:@echo offcolor 0amode con cols=90 lines=25:beginecho -------------------------工具使用说明-------...