public static void analyseUserProByTime(String username) throws IOException{
		
		BufferedWriter bufWrite=new BufferedWriter(
				new OutputStreamWriter(
						new FileOutputStream(
								new File(username+"_problems.txt"))));
	
		String timeRegex="(\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2})";//匹配提交时间
		String statusRegex="<font color=.{3,8}>(.{5,50})</font>";//匹配题目状态
		String proIDRegex="pid=(\\d{4})";//匹配题目ID
		String nextRegex="href=\"(.{0,200})\">Next Page";//匹配下一页的URL
		
		Pattern timePattern=Pattern.compile(timeRegex);
		Pattern statusPattern=Pattern.compile(statusRegex);
		Pattern proIDPattern=Pattern.compile(proIDRegex);
		Pattern nextPattern=Pattern.compile(nextRegex);
		
		Matcher timeMatcher=null;
		Matcher statusMatcher=null;
		Matcher proIDMatcher=null;
		Matcher nextMatcher=null;
		
		count=0;//提交题目记录数
		String inputHtml=null;//存放html网页的内容
		String nextUrl=null;//下一页的URL
		String urlForLoop=null;
		boolean nextflag=true;//是否有下一页
		boolean firstflag=true;//是否是第一页，因为第一页的URL和其他页的不一样	
		
		while(nextflag){
			nextflag=false;
			if(firstflag){
				urlForLoop="http://acm.hdu.edu.cn/status.php?user="+username;
				firstflag=false;
			}else{
				urlForLoop="http://acm.hdu.edu.cn"+nextUrl;
			}
			inputHtml=GetHtml.getGetResponseWithHttpClient(urlForLoop,"GBK");

			timeMatcher=timePattern.matcher(inputHtml);
			statusMatcher=statusPattern.matcher(inputHtml);
			proIDMatcher=proIDPattern.matcher(inputHtml);
			nextMatcher=nextPattern.matcher(inputHtml);
			
			while(timeMatcher.find()&&proIDMatcher.find()&&statusMatcher.find()){
				count++;
				bufWrite.write(proIDMatcher.group(1) +"\t"+timeMatcher.group(1)+"\t"+statusMatcher.group(1));
				bufWrite.newLine();
			}
			while(nextMatcher.find()){
				nextUrl=nextMatcher.group(1);
				nextflag=true;
			}
			bufWrite.flush();
		}		
		bufWrite.close();
	}