题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=2048一开始用的System.out.printf("%.2f%%\n", result)输出,PRESENTATION ERROR. 换成System.out.println(String.format...
分类:
编程语言 时间:
2014-07-26 17:02:31
阅读次数:
287
I could also have called this "wildcard .NET mapping in IIS Express from web.config."I'm sure that, like, everyone out there but me has figured this o...
分类:
其他好文 时间:
2014-07-26 13:58:34
阅读次数:
239
/**
*发送一个异步http协议的Get请求,不用关心结果
*@param$url
*@param$errno
*@param$errstr
*@param$time_out
*/
staticpublicfunctiongetAsn($url,$errno=‘‘,$errstr=‘‘,$time_out=5){
//移除url中的空格,如果可以格式化url,或许会更好
$url=str_replace(‘‘,‘‘,$url);
..
分类:
Web程序 时间:
2014-07-26 03:13:17
阅读次数:
262
我们在java中
Java中初始化的顺寻?
java代码:
package sru.love.c;
class Person
{
String name = "Person";
static
{
System.out.println("我是 Person 的 static 代码块");
}
{
System.out.println("我是 Person 构...
分类:
编程语言 时间:
2014-07-26 02:56:06
阅读次数:
185
今天对于内存的理解 又加深了一步:
对下面代码的理解:
class Person
{
private String name="xiaohong";
private int age=23;
private static String country="CN";
{
System.out.println(name+" "+age);
}
public Person(String...
分类:
其他好文 时间:
2014-07-26 02:11:03
阅读次数:
189
1-13#include #define OUT 0#define IN 1#define MAXHIST 15 //最大直方图#define MAXWORD 11 //最大单词长度int main(){ int c, i ,nc, state; //当前字符, , ,状态 int len; /.....
分类:
其他好文 时间:
2014-07-26 01:46:46
阅读次数:
227
//从键盘输入三个数,并对他们进行从小到大的排列
//引入数据获取的类
importjava.util.Scanner;
classTest2
{
publicstaticvoidmain(String[]args)
{
Scanners=newScanner(System.in);
System.out.println("请输入三个数:");
intm1=s.nextInt();
intm2=s.nextInt();
intm3=s...
分类:
其他好文 时间:
2014-07-25 19:15:42
阅读次数:
197
原本只安装了infinality的基本字体包,一切正常,除了看视频时“跳过广告”以及豆瓣fm的歌曲名等中文显示不正常猜想是缺少字体,于是装了infinality的extended字体包,结果问题虽然解决了,firefox标题栏字体却变丑了,明显不是设置好的系统字体。设置qtconfig-qt4,修改...
分类:
其他好文 时间:
2014-07-25 14:14:31
阅读次数:
380
比较裸的题了。分解因数后消元便行了,答案就是2的自由元数量次方减一(因为空集不算答案) \(2^k-1\)//{HEADS#define FILE_IN_OUT#include #include #include #include #include #include #include #includ...
分类:
其他好文 时间:
2014-07-25 14:08:11
阅读次数:
258
public class Thread1 extends Thread{ public void run(){ int i=0; while(i0){ i--; System.out.println(i); ...
分类:
编程语言 时间:
2014-07-25 13:49:21
阅读次数:
177