public static void main(String[] args) { String s = "GET /index.html HTTP/1.1";//字符串s由“GET”、“/index.html”和“HTTP/1.1”组成,中间有一个或多个空格 St...
分类:
编程语言 时间:
2014-11-25 16:15:46
阅读次数:
231
第一次写博客练习下1 定义个文件比较类 public class FilesNameComparerClass :IComparer { [DllImport("shlwapi.dll", CharSet = CharSet.Unicode)] private st...
分类:
编程语言 时间:
2014-11-25 16:07:27
阅读次数:
192
/**
?*?@brief?Codeforces?Round?#278?(Div.?2)?c
?*?@file?c.c
?*?@author?面码
?*?@created?2014/11/25?14:15
?*?@edited??2014/11/25?14:15
?*?@type?brute
?*
?*/
#include?<st...
分类:
其他好文 时间:
2014-11-25 14:39:53
阅读次数:
150
1 多态是只针对方法,而不是属性的,但是写法上,子类重写父类的属性,编译器是不会报错的class Person{ String name = "person" ; public void shout(){ System.out.println(name); }}class St...
分类:
编程语言 时间:
2014-11-25 12:38:01
阅读次数:
517
积分第一中值定理. 若 $f$ 在 $[a,b]$ 上连续, 则 $$\bex \exists\ \xi\in (a,b),\st \int_a^b f(x)\rd x=f(\xi)(b-a). \eex$$
分类:
其他好文 时间:
2014-11-25 12:09:05
阅读次数:
90
题目大意:给出一个地图,如果经过两个不同的区块,需要花费1,否则不需要花费。问从st到ed最小需要花费多少。
思路:签到题。
#include
#include
#include
#include
#include
#define MAX 510
#define MAXP 250010
#define MAXE 2000010
using namespace std;...
分类:
其他好文 时间:
2014-11-25 10:49:17
阅读次数:
165
这个题目相对有点奇怪,题目如下: Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". 可能是我思路的问题吧,我之前是在考虑先将st...
分类:
其他好文 时间:
2014-11-25 00:01:55
阅读次数:
180
A. 不可变字符串 1 void stringCreate() 2 { 3 //Don't need to release memory by this way 4 NSString *str1 = @"String Sample"; 5 6 NSString *st...
分类:
其他好文 时间:
2014-11-24 20:34:14
阅读次数:
175
第1到3题解答如下:
public enum QuestionType
{
Text = 0,
MultipleChoice = 1
}
public interface IQuestion
{
st...
分类:
Web程序 时间:
2014-11-24 13:25:35
阅读次数:
300
1 #include "iostream" 2 using namespace std; 3 class complex //声明complex类 4 { 5 public: 6 complex(); 7 void display(); 8 private: 9 st...
分类:
其他好文 时间:
2014-11-24 11:22:42
阅读次数:
188