2017年5月15日

hdoj-1197-Specialized Four-Digit Numbers

摘要: Specialized Four-Digit Numbers Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 4963 Accepted Sub 阅读全文

posted @ 2017-05-15 12:43 wgwyanfs 阅读(221) 评论(0) 推荐(0)

struts中文件的上传和下载

摘要: 首先我们还是新建一个新的web project 取名为upload_test 然后在WebRoot中新建两个jsp页面 upload.jsp 和result.jsp 代码分别例如以下: upload.jsp Jsp代码 <%@ page language="java" import="java.ut 阅读全文

posted @ 2017-05-15 12:13 wgwyanfs 阅读(180) 评论(0) 推荐(0)

HDU 1695 GCD 莫比乌斯第二发

摘要: 题意:求[1,b]和[1,d]内公约数为k的对数(错了N发之后才看到a和c为1。。。) 解一:容斥原理和欧拉函数 http://www.cnblogs.com/kuangbin/p/3269182.html 參考大神的文章吧,我没写 解二:莫比乌斯 设f[x]为GCD(a,b)=k的对数 F[x]为 阅读全文

posted @ 2017-05-15 11:38 wgwyanfs 阅读(88) 评论(0) 推荐(0)

leetcode - Count and Say

摘要: The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, ... 1 is read off as "one 1" or 11. 11 is read o 阅读全文

posted @ 2017-05-15 10:31 wgwyanfs 阅读(91) 评论(0) 推荐(0)

mac下.gitconfig配置别名alias

摘要: 在多人协作开发时,一般用git来进行代码管理。git有一些命令如:git pull 、 git push等等,这些命令能够设置alias。也就是缩写。如:git pull 是 git pl。 git push 是 git ps。能够依据个人习惯进行改动。 改动别名alias过程例如以下: 1,进入根 阅读全文

posted @ 2017-05-15 08:56 wgwyanfs 阅读(243) 评论(0) 推荐(0)

导航