Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that there will be on...
分类:
其他好文 时间:
2014-07-08 00:47:33
阅读次数:
199
原题: ZOJ 3686http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3686这题本来是一个比较水的线段树,结果一个mark坑了我好几个小时。。哎。太弱。先DFS这棵树,树形结构转换为线性结构,每个节点有一个第一次遍历的时间...
分类:
其他好文 时间:
2014-07-08 00:46:56
阅读次数:
295
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication6{ class Program { static v...
分类:
其他好文 时间:
2014-07-08 00:44:25
阅读次数:
340
一、 游标:用数据库语言来描述:游标是映射在结果集中一行数据上的位置实体,有了游标用户就可以访问结果集中的任意一行数据了,将游标放置到某行后,即可对该行数据进行操作,例如提取当前行的数据等等。在Oracle9i之前,使用FETCH语句每次只能提取一行数据;从Oracle9i开始,通过使用FETCH…...
分类:
数据库 时间:
2014-07-08 00:43:49
阅读次数:
404
response.setContentType("text/html;charset=utf-8");response.setCharacterEncoding("utf-8");//获取绝对路径.通过ervletContext()String path= this.getServletContex...
分类:
其他好文 时间:
2014-07-08 00:42:25
阅读次数:
251
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.
分类:
其他好文 时间:
2014-07-08 00:41:49
阅读次数:
235
关于数据库死锁的检查方法一、 数据库死锁的现象程序在执行的过程中,点击确定或保存按钮,程序没有响应,也没有出现报错。 二、 死锁的原理当对于数据库某个表的某一列做更新或删除等操作,执行完毕后该条语句不提交,另一条对于这一列数据做更新操作的语句在执行的时候就会处于等待状态,此时的现象是这条语句一直在执...
分类:
数据库 时间:
2014-07-08 00:39:56
阅读次数:
389
1、使用nodemailer模块var nodemailer = require("nodemailer");2、代码如下exports.send_email = function(req,res) { //发件人信息设置 var smtpTransport = nodemailer.c...
分类:
Web程序 时间:
2014-07-08 00:39:18
阅读次数:
366
SharePoint Tips about Permissions: What you need to knowI have been writing tips about SharePoint from last two years now. After a great popularity an...
分类:
其他好文 时间:
2014-07-08 00:36:33
阅读次数:
262
原题: ZOJ 3675http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3675由m#include #include #include #include #include using namespace std;#defin...
分类:
其他好文 时间:
2014-07-08 00:31:26
阅读次数:
272