原创 [dp]POJ 2229 Sumsets 解題報告

Sumsets Time Limit: 2000MS Memory Limit: 200000K Total Submissions: 15174 Accepted: 6031 Description

原创 codeforces 344 B. Print Check解題報告

B. Print Check time limit per test 1 second memory limit per test 256 megabytes input standard input output

原创 Codeforces Round #338 (Div. 2)B. Longtail Hedgehog解題報告

B. Longtail Hedgehog time limit per test 3 seconds memory limit per test 256 megabytes input standard input

原创 POJ水題1008Maya Calendar

Maya Calendar Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 72054 Accepted: 22171 Descr

原创 DB connection was not acquired. (Cannot create JDBC driver of class '' for connect URL 'null') 解決

最近在搭建UDDI服務器的時候解決一個BUG。 在根據一篇博客介紹的UDDI的使用教程操作之後,發現最後jUDDI DataSource Validation部分出了問題。jUDDI DataSource Validation的前兩個是對

原创 cf344C. Report

C. Report time limit per test 2 seconds memory limit per test 256 megabytes input standard input output stand

原创 getaddrinfo ENOTFOUND api.github.com api.github.com:443

系統:Ubuntu 14.04LTS 問題產生背景:命令行創建Vue項目: vue init webpack protectName 的時候,出現錯誤: getaddrinfo ENOTFOUND api.gith

原创 中國剩餘定理算法詳解(餘數互質和不互質)

參考: 中國剩餘定理: http://itdocument.com/7701006441/ http://www.cppblog.com/qywyh/archive/2007/08/27/30943.aspx 擴展歐幾里得算法:

原创 補碼,反碼深入理解

原文鏈接:http://hi.baidu.com/%D7%F6%B6%F8%C2%DB%B5%C0/blog/item/d92cc986c2a1523bc75cc380.html#comment 關於補碼,看過一些書籍和網文,基本都是在“

原创 Python write unicode into txt document as 中文

環境: Ubuntu 14.04 , Python 3.4 將unicode的中文,形如”u’你好” , 寫入txt文檔中,在文檔中能看到中文”你好”,而不是形如 “u’3x0#d” 這樣的亂碼 import codecs f = cod

原创 leetcode 371. Sum of Two Integers(不用+ -實現加法)

** 我的思路: ** 1、兩個數異或的結果A中,爲1的部分表示兩個數在該位一共只有一個1; 2、相與的結果B中,爲1的部分表示兩個數在該位有兩個1(即產生進位); 3、隨意舉個例子過一遍就清楚了。 public class Sol

原创 POJ 1988 Cube Stacking並查集

Cube Stacking Time Limit: 2000MS Memory Limit: 30000K Total Submissions: 22236 Accepted: 7803 Case Time

原创 Ubuntu 16.04 :shadowsockets + chrome 代理

Ubuntu 16.04 :shadowsockets + chrome 代理 最近lantern無法科學上網(FQ),以前自己懶,全靠lantern,現在必須花點時間解決這個問題。 首先安裝shadowsockets, 網上很多資料,例

原创 Win10下 Gulp,Browser-sync 入門

一定要按順序做 在網上看了很多博客,90%都是一樣的,而且並沒有實際的例子,所以做起來有很多困難。所以我建議,大家就不要轉載那種沒有加入新元素的文章了!對自己沒用,且對新學者簡直就是一種傷害,半天搜不到一篇有用的文章Orz…… 首先說技巧

原创 wamp+win10: php連接Mysql, delete update insert 詳細操作步驟

一、新建數據庫用戶 進入phpmyAdmin - 點擊“用戶”(Users) 點擊用戶列表下方的“添加用戶”(Add user) 如下圖操作 點擊“執行”(“Go”)之後,可以看到增加了user用戶。 注意:Grant