https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4675
题意:
二维平面内给出若干矩形,平面被矩形的边分为若干个区域,求一共有多少区域。
分析:
由于矩形只有50个,离散化后的平面大约是100*100的。不妨对于每个矩形覆盖...
分类:
其他好文 时间:
2014-09-26 02:36:08
阅读次数:
198
英文原文:What Programmers Say vs. What They Mean 你是否听到过同事说“这段代码不言自明”?你的同事的这句话的实际意思是这段代码不需要写注释。 你也许注意到了,很多时候,程序员所说的话的字面意思和其真实的意思是完全不同的。不用惊异,下面你将很快知道这些暧...
分类:
其他好文 时间:
2014-09-25 22:59:27
阅读次数:
220
11,含不同数字的三位数: public class ThridNum { public static void main(String[] args) { int count = 0; for (int x = 1; x < 5; x++) { for (int y = 1; y < 5; y++...
分类:
其他好文 时间:
2014-09-25 21:35:07
阅读次数:
178
Problem:Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transac...
分类:
其他好文 时间:
2014-09-25 21:10:47
阅读次数:
171
插件地址:http://blog.csdn.net/never_say_goodbye/article/details/8598521先上个效果图:相比来说,效果还是很不错的使用MVC3做服务器端的处理时遇到的一大问题是HttpPostedFileBase为null,request.file也为nu...
分类:
Web程序 时间:
2014-09-25 16:47:09
阅读次数:
535
列表模版嵌套select option模版 count为返回数据长度,需要定义变量
分类:
Web程序 时间:
2014-09-25 14:30:19
阅读次数:
265
"; while($row = mysql_fetch_array($result)) { echo""; $num=count($row); for ($x=0; $x"; echo $row[$x]; echo ""; } echo""; } echo""; mysq...
分类:
数据库 时间:
2014-09-25 08:46:38
阅读次数:
188
1 char *strcpy(char *dest,char *src) 2 { 3 char *d=dest;//输入的参数进行备份 4 char *s=src; 5 6 int count=0; 7 8 assert(dest!=NULL && src!=N...
分类:
其他好文 时间:
2014-09-24 23:31:47
阅读次数:
167
这段时间一直在做office报表开发总结一下!Aspose操作遇到的难点.
读取出excel中的图片保存为静态图
public void ReadPic(string path, string toPath)
{
Common com = new Common();
int count = 1;
...
分类:
Web程序 时间:
2014-09-24 22:41:08
阅读次数:
539
首先来看看如何创建线程:
Console.WriteLine(Process.GetCurrentProcess().Threads.Count);
Thread t1 = new Thread(() =>
{
Thread.Sleep(1000);
Thread t = Thread.CurrentThread;
Console.Writ...
分类:
编程语言 时间:
2014-09-24 18:46:17
阅读次数:
400