原创 藍橋——Sticks(dfs+剪枝,POJ 1011)

試題 算法訓練 Sticks 資源限制 時間限制:1.0s   內存限制:999.4MB   Sticks Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 1135

原创 PAT 1098 Insertion or Heap Sort

1098 Insertion or Heap Sort (25分) According to Wikipedia: Insertion sort iterates, consuming one input element each rep

原创 藍橋——大臣的旅費(樹的直徑)

歷屆試題 大臣的旅費 資源限制 時間限制:1.0s   內存限制:256.0MB 問題描述 很久以前,T王國空前繁榮。爲了更好地管理國家,王國修建了大量的快速路,用於連接首都和王國內的各大城市。 爲節省經費,T國的大臣們經過思考,制定了一

原创 SSM整合(XML+註解方式)

SSM整合 文章目錄SSM整合環境搭建1.創建數據庫2.創建maven項目導入座標3.編寫實體類4.編寫持久層接口5.編寫業務層接口6.編寫業務層實現類配置Spring1.編寫spring配置文件並導入約束2.使用註解配置業務層和

原创 PAT 1129 Recommendation System

1129 Recommendation System (25分) Recommendation system predicts the preference that a user would give to an item. Now y

原创 PAT 1133 Splitting A Linked List

1133 Splitting A Linked List (25分) Given a singly linked list, you are supposed to rearrange its elements so that all t

原创 PAT 1140 Look-and-say Sequence

1140 Look-and-say Sequence (20分) Look-and-say sequence is a sequence of integers as the following: D, D1, D111, D113,

原创 PAT 1145 Hashing - Average Search Time

1145 Hashing - Average Search Time (25分) The task of this problem is simple: insert a sequence of distinct positive int

原创 PAT 1134 Vertex Cover

1134 Vertex Cover (25分) A vertex cover of a graph is a set of vertices such that each edge of the graph is incident to

原创 SpringMVC學習筆記02-響應數據&結果視圖&文件上傳&攔截器

SpringMVC 文章目錄SpringMVC響應數據和結果視圖返回值分類1. 返回字符串2. 返回值是void3.返回值是ModelAndView對象SpringMVC框架提供的轉發和重定向forward請求轉發redirect

原创 PAT 1130 Infix Expression

1130 Infix Expression (25分) Given a syntax tree (binary), you are supposed to output the corresponding infix expression

原创 PAT 1044 Shopping in Mars(連續子序列分割 / 二分)

1044 Shopping in Mars (25分) Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds.

原创 PAT 1051 Pop Sequence (25分)

1051 Pop Sequence (25分) Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N 

原创 PAT 1056 Mice and Rice

1056 Mice and Rice (25分) Mice and Rice is the name of a programming contest in which each programmer must write a piece

原创 PAT 1059 Prime Factors (素數篩)

1059 Prime Factors (25分) Given any positive integer N, you are supposed to find all of its prime factors, and write the