上一页 1 ··· 250 251 252 253 254 255 256 257 258 ··· 455 下一页
点击打开链接 // File Name: hdu3746.cpp// Author: bo_jwolf// Created Time: 2013年05月04日 星期六 19:54:29#include<vector>#include<list>#include<map>#include<set>#include<deque>#include<stack>#include<bitset>#include<algorithm>#include<functional>#include<n Read More
posted @ 2013-05-04 20:20 javawebsoa Views(172) Comments(0) Diggs(0)
贴过来做个模板。C为复数类,newArr和at为内存池。 void FFT(int n, C *x){ C W = C(cos(2 * M_PI / n), sin(2 * M_PI / n)), w = C(1), *u = newArr(n >> 1), *v = newArr(n >> 1); for (int i = 0; i < n >> 1; ++i) u[i] = x[i << 1], v[i] = x[i << 1 | 1]; if (n > 1) FFT(n >> 1, u), FFT(n & Read More
posted @ 2013-05-04 20:18 javawebsoa Views(318) Comments(0) Diggs(0)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1069题意:有n(n<=30)种不同的立方体(每种个数不限), 求能够堆多高. 分析: (1) 对于每一种立方体, 假设长,宽,高互不相等, 则它放置方法有6种不同的情况(长,宽,高全排列).(2)那么,实际上可以看成是6*n种不同的立方体. (3)对这6*n种立方体的长(如果长相等则以宽)小到大排序. (4)这里就等效于有很多的箱子排成了一列, 看怎么才能将它堆得最高, (5)从小的一边开始, 如果后面的箱子上面能放下前面较小的, 就放一个那种小的到那些大箱子上.(6)然后将这一堆看成... Read More
posted @ 2013-05-04 20:16 javawebsoa Views(218) Comments(0) Diggs(0)
格式化处理大额度金额:String.Format("{0:N}", "628310.03")628,310,03网上收集:int a = 12345678;C#数字格式化之格式为sring输出Label1.Text = string.Format("asdfadsf{0}adsfasdf",a);Label2.Text = "asdfadsf"+a.ToString()+"adsfasdf";Label1.Text = string.Format("asdfadsf{0:C}adsfa Read More
posted @ 2013-05-03 20:11 javawebsoa Views(345) Comments(0) Diggs(0)
运行 环境 delphi7原代码unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, FileCtrl;type TForm1 = class(TForm) Button1: TButton; FileListBox1: TFileListBox; DriveComboBox1: TDriveComboBox; DirectoryListBox1: TDirectoryListBox... Read More
posted @ 2013-05-03 20:09 javawebsoa Views(242) Comments(0) Diggs(0)
我们知道在开发工程的时候jsp文件是即修改即生效的,由于比较好奇就研究了一下tomcat对于jsp热部署的实现原理,总结沉淀一下吧。Tomcat jsp热部署的实现原理大体是这样的,每个JSP页面从上次访问到下次访问总是有默认几秒的缓存时间的,也就说并不是严格的即修改即生效,tocmat7默认是有4秒的缓存延迟的。这个默认的缓存延迟是在类EmbeddedServletOptions的private intmodificationTestInterval = 4;这个属性定义的。如果过了4秒缓存时间即失效,这个时候tomcat就会读取jsp的modified时间戳和work目录下编译好的clas Read More
posted @ 2013-05-03 20:07 javawebsoa Views(359) Comments(0) Diggs(0)
CVSListBox类的扩展使用2013-5-2flyfishwww.boboding.com一 在资源窗口中,选中资源右键-》资源包括-》输入如下代码#ifndef_AFXDLL#include"afxribbon.rc" #endif二 新建一个基于对话框的项目将工具箱中的MFCVSListBox Control直接拖到窗口中利用向导为该控件绑定一个变量CVSListBox m_List_ctlMain向导自动添加头文件#include"afxvslistbox.h"三 增加输入规则1 删除时,先弹出提示对话框,询问用户是否删除2 在新建和编辑Lis Read More
posted @ 2013-05-03 20:05 javawebsoa Views(855) Comments(0) Diggs(0)
Happy 2006Time Limit: 3000MSMemory Limit: 65536KTotal Submissions: 7874Accepted: 2551Description Two positive integers are said to be relatively prime to each other if the Great Common Divisor (GCD) is 1. For instance, 1, 3, 5, 7, 9...are all relatively prime to 2006. Now your job is easy: for t... Read More
posted @ 2013-05-03 20:03 javawebsoa Views(147) Comments(0) Diggs(0)
继u-boot-2012.04.01移植四支持NAND Flash,继续修改代码支持DM9000。最后直接用NOR Flash里的u-boot烧写自己移植的u-boot到NAND,方便电脑没有并口或手上没有openjtag,照样能移植u-boot,当然有openjtag更方便。以后就直接通过tftp下载程序了开发环境: 系统:ubuntu 10.04.4 单板:tq2440 NAND FLASH:K9F1216U0A 256MB NOR Flash:EN29LV160AB 2MB SDRAM:HY57V561620 x2 64MB NET:DM9000AEP 编译器:arm-linux-gcc Read More
posted @ 2013-05-03 20:02 javawebsoa Views(260) Comments(0) Diggs(0)
1983年5月2日,微软发布了其第一款 PC 鼠标产品,该产品尽管毫无特色,但足够简单。今天,微软在其官方的Twitter 页面发布了一个简短的欢迎信息,庆祝其鼠标产品 30 周年纪念。该微博显示了如上图所示的 30 年前的鼠标,30年后,整个电脑鼠标行业已经进化到放弃“滚球”设备,采用激光和光学传感器。使用 USB 或者是无线连接方式。而且微软的鼠标产品也采用了全新的设计,例如 Wedge 鼠标和Arc Touch Mouse。此外大多数人还是在使用键盘+鼠标的组合,短期内鼠标不可能消失。 Read More
posted @ 2013-05-03 20:00 javawebsoa Views(145) Comments(0) Diggs(0)
上一页 1 ··· 250 251 252 253 254 255 256 257 258 ··· 455 下一页