上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 455 下一页
畅通工程续Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 19989 Accepted Submission(s): 6912 Problem Description 某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不好,每次要从一个城镇到另一个城镇时,都有许多种道路方案可以选择,而某些方案要比另一些方案行走的距离要短很多。这让行人很困扰。 现在,已知起点和终点,请你计算出要从起点到终点,最短需要行... Read More
posted @ 2013-08-05 19:56 javawebsoa Views(256) Comments(0) Diggs(0) Edit
帐户: 密码: 显示结果: Read More
posted @ 2013-08-05 19:53 javawebsoa Views(378) Comments(0) Diggs(0) Edit
1、按照网上的方式设置Mysql编码:修改/etc/mysql/my.cnf 在[mysqld]字段下面添加default_character_set=utf8添加完之后重启mysql,发现无法启动:start: Job failed to start改为如下方式:在[mysqld]字段下面添加: character_set_server=utf8 collation-server=utf8_general_ci 2、Mysql设置不区分大小写:[mysqld]后添加添加lower_case_table_names=1 lower_case_table_names参数详解: lower_cas Read More
posted @ 2013-08-05 19:51 javawebsoa Views(452) Comments(0) Diggs(0) Edit
LinuxFor Ubuntu Linux (tested on a barebone install of Ubuntu 10.04 Lucid Lynx, Ubuntu 11.04 Natty Narwhal, Ubuntu 12.04 Precise Pangolin):sudo apt-get updatesudo apt-get install build-essential chrpath git-core libssl-dev libfontconfig1-devgit clone git://github.com/ariya/phantomjs.gitcd phantomj.. Read More
posted @ 2013-08-05 19:49 javawebsoa Views(649) Comments(0) Diggs(0) Edit
大致可以分为四个主要的类ScanResult wifiConfiguration WifiInfo WifiManager (1)ScanResult,主要是通过wifi 硬件的扫描来获取一些周边的wifi 热点的信息。 在我们进行wifi 搜索的时候,一般会搜到这些信息,首先是接入点名字、接入点信息的强弱、还有接入点使用的安全模式,是WPA、WPE。 打开这个类,我们可以看到以下几个信息 BSSID 接入点的地址,这里主要是指小范围几个无线设备相连接所获取的地址,比如说两台笔记本通过无线网卡进行连接,双方的无线网卡分配的地址。 SSID 网络的名字,当我们搜索一个网络时,... Read More
posted @ 2013-08-05 19:47 javawebsoa Views(693) Comments(0) Diggs(0) Edit
首先计算出k至少为第几位,如果m小于这个数,那么输出0还有一种情况, 就是10的i次方的这种情况,如果i+1等于m,那么直接输出k,否则输出0其他的情况,就是二分,然后判断计算其插入到k之前的数的个数与k至少的位数之和#include #include #define LL unsigned long longLL d[20],k,m,s;int t;void init(){ d[0]=1; for(int i=1;iy-d[p-1]){ans+=y-d[p-1];} else {ans+=x*d[i-t]-d[p-1];} } } ... Read More
posted @ 2013-08-05 19:45 javawebsoa Views(239) Comments(0) Diggs(0) Edit
在DELPHI下读取与设置系统时钟 很多朋友都想在自己的程序中显示系统时间 这在DELPHI中十分容易 利用DateToStr(Date)及TimeToStr(Time)函数即可实现。 二者的函数原型如下: functionDateToStr(Date:TDateTime):string; functionTimeToStr(Time:TDateTime):string; 其返回值均为String型。 在程序中我们可以这样使用: Label1.Caption:=DateToStr(Date); Lable2.Caption:=TimeToStr(Time); 二者分别调用了D... Read More
posted @ 2013-08-05 19:43 javawebsoa Views(493) Comments(0) Diggs(0) Edit
A Short problemTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1110Accepted Submission(s): 436 Problem Description According to a research, VIM users tend to have shorter fingers, compared with Emacs users. Hence they prefer problems sh... Read More
posted @ 2013-08-05 19:41 javawebsoa Views(209) Comments(0) Diggs(0) Edit
http://damoqiongqiu.iteye.com/blog/1920191 Read More
posted @ 2013-08-05 19:39 javawebsoa Views(134) Comments(0) Diggs(0) Edit
/***********************************************************************//* * Initialize the NVIC to enable the specified IRQ. * * NOTE: The function only initializes the NVIC to enable a single IRQ. * Interrupts will also need to be enabled in the ARM core. This can be * done using the EnableInt... Read More
posted @ 2013-08-05 19:37 javawebsoa Views(340) Comments(0) Diggs(0) Edit
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 455 下一页