- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 1×2×3+2×3×4+4×5×6+...+28×29×30的算法
这里给出一个简便算法,不用循环:1×2×3=1/4×1×2×3×(4-0)2×3×4=1/4×2×3×4×(5-1)4×5×6=1/4×4×5×6×(7-3).........................................28×29×30=1/4×28×29×30×(31-27)原式=1/4×28×29×30×31=188790public class
2013-09-14 10:55:36 2777
转载 初二学生用c语言写的全排列
#include "stdio.h"int n,e,a[101],b[101]={0};void nima(d) int d; {int i,j,k; if(d==0) {for(i=1;i<=n;i++)printf("%d ",a[i]); printf("\n");e++;} else for(i=1;i<=n;i++) if(!b[i])
2013-09-07 23:09:59 575
原创 测试 b3log getQueryStringJSONObject
用http://localhost:8080/testQueryStringJson/queryStringJ?miGuo=bama&xigongDa=liusir访问,输出:INFO: Client is using QueryString[miGuo=bama&xigongDa=liusir]{"miGuo":"bama","xigongDa":"liusir"}import
2013-09-06 17:31:01 704
转载 srping event
import org.springframework.context.ApplicationContext;import org.springframework.context.support.ClassPathXmlApplicationContext;public class Main { public static void main(String args[]) throws
2013-09-05 23:46:29 461
原创 request.getQueryString的例子
用http://localhost:8080/testQueryString/chaXunZiFuChuan?name=liumingyuan&mother=zhangxiaoxue访问,输出:name=liumingyuan&mother=zhangxiaoxueimport java.io.IOException;import javax.servlet.ServletExce
2013-09-05 15:28:40 901
原创 获取请求行的相关信息getPathTranslated
getPathTranslated返回servlet名字之后,查询之前的路径信息request.getPathTranslated() returns null if there is no extra path information after the pattern which lead to the mapped servlet and the query string.getPa
2013-09-04 13:36:54 1660
原创 b3log之pathVariableValueMap(final String requestURI)
import java.net.URLDecoder;import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util.Map;import java.util.regex.Matcher;import java.util.regex.Pattern;//import
2013-09-03 16:46:51 945
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人