这题是二分+2SAT.总结一下SAT题的特征。首先,可能会存在二选一的情况,然后会给出一些矛盾。据这些矛盾加边,再用SAT判定。这一道题好像不能直接用printf("%0.3lf"),因为这个是四舍五入的,这道题好像不能四舍五入,只好选减去0.0005再按这个格式输出了。 1 #include .....
分类:
其他好文 时间:
2014-07-22 22:49:32
阅读次数:
214
??
大家都知道EasyUI的Datagrid组件在加载大数据量时的优势并不是很明显,相对于其他一些框架,如果数据量达到几千,便会比较慢,特别是在IE下面。针对这种情况,我们首要做的是要相办法优化datagrid组件的各方面性能,不过任何事情都是可以变通解决的,virtualScrollView就是一种不错的解决方案。
virtualScrollView的准则就是尽量少画tr到table里,表...
分类:
Web程序 时间:
2014-07-22 22:49:13
阅读次数:
334
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">? <html xmlns="http://www.w3.org/1999/xhtml">? ?<head>? ? <title> new ...
分类:
Web程序 时间:
2014-07-22 08:10:34
阅读次数:
229
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> ? ? <met...
分类:
其他好文 时间:
2014-07-21 10:30:36
阅读次数:
221
<!DOCTYPE?html?PUBLIC?"-//W3C//DTD?XHTML?1.0?Strict//EN"?"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html?xmlns="http://www.w3.org/1999/xhtml"?xml:lang="en">
<head>
<style?type=...
分类:
其他好文 时间:
2014-07-21 10:28:33
阅读次数:
569
<table?class="r_line"?cellpadding="3"?cellspacing="1"?width="100%">
????<tr?class="r_title">
????????<td>编号</td>
????</tr>
<asp:Repeater?ID="rptRecord"?runat="server">
??...
分类:
其他好文 时间:
2014-07-21 10:09:35
阅读次数:
190
第一次做类似的题目,卡了好几天,最后看了爱酱的blog(http://blog.csdn.net/acm_cxlove/article/details/8679230)才会的,sad题意大概是这样,给你一个图,求起点1到N的最短时间,你有一双鞋子,可以加速,一次性花费0的时间行走M单位的路程,但是鞋...
分类:
其他好文 时间:
2014-07-21 10:00:38
阅读次数:
242
#include
#include
#include
#define ZERO 0
const int FIRST_CHAR = '0';
char num[11111][20] ;
typedef struct node
{
struct node *child[20]; /* 存储下一个字符 */
int n; /* 记录当前单词出现的次数 */
}node, *No...
分类:
其他好文 时间:
2014-07-20 11:32:38
阅读次数:
215
what's xxxIn machine learning, naive Bayes classifiers are a family of simple probabilistic classifiers based on applying Bayes' theorem with strong (...
分类:
其他好文 时间:
2014-07-20 10:11:07
阅读次数:
260
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><metahttp-equiv="Content-Type"content="text/html;charset=UTF-8"><title>你爸爸</title><!--CSS样式--><style..
分类:
Web程序 时间:
2014-07-20 03:24:36
阅读次数:
251