Description 一个 \(n*n\) 行列式,\((i,j)=gcd(i,j)\) Sol 线性筛. 这道题神奇的筛出来 \(phi\) ... 打表可以发现,一个数会被他所有的因子减掉因子的 \(phi\) ... 然后我就不会证明了... Code ...
分类:
其他好文 时间:
2016-12-19 22:08:33
阅读次数:
194
MVVM模式里面用户UI界面的数据返回问题,让我纠结了好几天,一直得不到数据,今天总算能取到UI界面的数据了! 我采用的是ListView显示数据和Prism模式,并且将数据显示成了大图标的样式,即水平显示,但是下面测试用的我就没有采用水平显示,做了简单Model。 XAML 代码: 这里绑定的数据 ...
分类:
其他好文 时间:
2016-12-19 19:07:12
阅读次数:
261
Tomcat 优化 java.lang.OutOfMemoryError: Java heap space 的解决方法 java.lang.OutOfMemoryError: Java heap space 的解决方法 关键字: tomcat outofmemoryerror permgen spa ...
分类:
编程语言 时间:
2016-12-18 23:23:31
阅读次数:
271
https://biancheng.love/problem/640/index 一直re 不是并查集吗 #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <algorithm> #in ...
分类:
其他好文 时间:
2016-12-18 23:12:56
阅读次数:
304
2120: 数颜色 Description 墨墨购买了一套N支彩色画笔(其中有些颜色可能相同),摆成一排,你需要回答墨墨的提问。墨墨会像你发布如下指令: 1、 Q L R代表询问你从第L支画笔到第R支画笔中共有几种不同颜色的画笔。 2、 R P Col 把第P支画笔替换为颜色Col。为了满足墨墨的要 ...
分类:
其他好文 时间:
2016-12-18 17:50:33
阅读次数:
178
所需架包 第一步:创建entity类 第二步:创建quartz 第三步:创建service 第四步:创建测试类 每隔三秒输出一次 ...
分类:
其他好文 时间:
2016-12-18 17:25:18
阅读次数:
157
http://codeforces.com/problemset/problem/744/A 题意:在一个图里面有n个点m条边,还有k个点是受限制的,即不能从一个受限制的点走到另外一个受限制的点(有路径相连),问在这样的图里面遵守这样的规则可以最多添加几条边。 思路:这种题之前在做强连通的时候很常见 ...
分类:
其他好文 时间:
2016-12-18 12:25:46
阅读次数:
226
Problem Description In the modern time, Search engine came into the life of everybody like Google, Baidu, etc.Wiskey also wants to bring this feature ...
分类:
其他好文 时间:
2016-12-18 12:16:19
阅读次数:
191
private void subreport1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { subreport1.ReportSource.Parameters["MasterID"].Value = ...
分类:
其他好文 时间:
2016-12-18 12:08:04
阅读次数:
347
Walk through the matrix. At the start of each non-wall-streak (row-wise or column-wise), count the number of hits in that streak and remember it. For ...
分类:
其他好文 时间:
2016-12-18 09:56:57
阅读次数:
245