Loading

摘要: #include #include using namespace std; void hanor(int src,int mid,int desk,int count){ if(count==1){ printf("%c -> %c\n",src,desk); return; } hanor(src,desk,mid,count-1);... 阅读全文
posted @ 2019-03-28 22:56 菜の可怜 阅读(135) 评论(0) 推荐(0) 编辑
摘要: #include #include #define INF 65535 using namespace std; int vis[100][100]; //路径长度 int map[100][100]; //迷宫地图 typedef pair P; //节点坐标 P p; int dx[4] = {1,0,-1,0}; //四个方向 int dy[4] = {0,1,0,-1}; in... 阅读全文
posted @ 2019-03-27 00:19 菜の可怜 阅读(296) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int arr[5] = {5,4,1,3,6}; //待排序数组 void quick_sort(int left,int right){ int tmp = arr[left]; //找基准 if(left>=right){ //如果左边扫描大于右边扫描就结束 return; ... 阅读全文
posted @ 2019-03-26 22:39 菜の可怜 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 这么简单的题都能炸...我心态都崩了,已经没有什么想说的了,只有难受了 Ps更新: 我TM四道编程没写...摸了个三等奖...明年拿省一!!!!!!!!!!!!!!!!!! 阅读全文
posted @ 2019-03-24 21:57 菜の可怜 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 最长递增子序列模板(1) 最长递增子序列模板2 最长公共子序列模板 最长公共上升子序列和模板 阅读全文
posted @ 2019-03-15 15:47 菜の可怜 阅读(249) 评论(0) 推荐(0) 编辑
摘要: arr = [8,2,4,7,3,6] length = len(arr) for j in range(1,length): key = arr[j] i = j-1 while i>-1 and arr[i]>key: arr[i+1] = arr[i] i = i-1 arr[i+1] = key print(arr) 阅读全文
posted @ 2019-03-06 01:46 菜の可怜 阅读(129) 评论(0) 推荐(0) 编辑
摘要: ${pageContext.request.contextPath}”的作用是取出部署的应用程序名,这样不管如何部署,所用路径都是正确的 阅读全文
posted @ 2019-03-04 23:52 菜の可怜 阅读(470) 评论(0) 推荐(0) 编辑
摘要: 在servlet中获取的jsp表单内容 java.net.URLDecoder.decode(body,"UTF-8");用这个方法进行编码就能获取到中文字符了. 阅读全文
posted @ 2019-02-11 11:28 菜の可怜 阅读(176) 评论(0) 推荐(0) 编辑
摘要: println不是换行在网页中转化为一个空格了 如果页面上需要换行的话,需要用<br/>。 阅读全文
posted @ 2019-02-10 10:57 菜の可怜 阅读(386) 评论(0) 推荐(0) 编辑
摘要: JSP初学总结 什么是jsp? jsp页面实际上也是一个htnl页面,只不过它包含了产生动态网页内容的java 代码,这些代码可以是java Bean.SQL语句等等. 在jsp页面中,动态内容与静态内容相互分离,实现界面与业务逻辑的分离,从而使jsp代码的高度复用. jsp页面实际上也是一个htn 阅读全文
posted @ 2019-02-09 09:21 菜の可怜 阅读(216) 评论(0) 推荐(0) 编辑