原创 NoClassDefFoundError 可能出現的情況

NoClassDefFoundError可能出現的情況 一種情況就是因爲靜態變量加載不到原因 工程裏沒有將jar添加到classpath,maven項目的,需要根據項目情況排查

原创 CodeForces 1323D Present

一、內容 Catherine received an array of integers as a gift for March 8. Eventually she grew bored with it, and she star

原创 CodeForces - 1323 C Unusual Competitions

一、內容 A bracketed sequence is called correct (regular) if by inserting "+" and "1" you can get a well-formed mathema

原创 HDU 3336 Count the string kmp

一、內容 It is well known that AekdyCoin is good at string problems as well as number theory problems. When given a st

原创 HDU 4300 Clairewd’s message exkmp

一、內容 Clairewd is a member of FBI. After several years concealing in BUPT, she intercepted some important messages

原创 tomcat啓動時啓動窗口出現亂碼的解決方案

本質原因就一個:字節流解碼爲字符串時,使用了錯誤的字符集(和編碼所用字符集不一致)! 我們來到tomcat目錄的conf子目錄中,找到一個名爲 "logging.properties" 的文件,打開這個文本文件,找到如下配置

原创 POJ 3080 Blue Jeans kmp

一、內容 The Genographic Project is a research partnership between IBM and The National Geographic Society that is anal

原创 HDU 1272小希的迷宮 並查集

一、內容 上次Gardon的迷宮城堡小希玩了很久(見Problem B),現在她也想設計一個迷宮讓Gardon來走。但是她設計迷宮的思路不一樣,首先她認爲所有的通道都應該是雙向連通的,就是說如果有一個通道連通了房間A和B,那麼既

原创 POJ 1308 Is It A Tree?

一、內容 A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more no

原创 POJ 1417 True Liars 帶權並查集 + 揹包

一、內容 After having drifted about in a small boat for a couple of days, Akira Crusoe Maeda was finally cast ashore on

原创 ZOJ 3261 Connections in Galaxy War 並查集刪邊

一、內容 In order to strengthen the defense ability, many stars in galaxy allied together and built many bidirectional

原创 POJ 1456 Supermarket 貪心+並查集

一、內容 A supermarket has a set Prod of products on sale. It earns a profit px for each product x∈Prod sold by a deadl

原创 POJ 2492 A Bug's Life 帶權並查集

一、內容 Background Professor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they

原创 POJ 2912 Rochambeau 帶權並查集

一、內容 N children are playing Rochambeau (scissors-rock-cloth) game with you. One of them is the judge. The rest chil

原创 POJ 1984 Navigation Nightmare 多權值並查集

一、內容 Farmer John's pastoral neighborhood has N farms (2 <= N <= 40,000), usually numbered/labeled 1..N. A series of