ACM學習-POJ-1004-Financial Management
菜鳥學習ACM,紀錄自己成長過程中的點滴。 學習的路上,與君共勉。 ACM學習-POJ-1003-Financial Management
hdu 4717 The Moving Points(三分法)
大致題意:給定 n 個起點的二維坐標和速度的大小和方向;問在哪一時刻所有兩點間的最大距離最小。 // Time 78 ms; Memory
Longest Consecutive Sequence (最長連續序列)
題目: Given an unsorted array of integers, find the length of the longes
Longest Palindromic Substring (最長回文串)
題目: Given a string S, find the longest palindromic substring in S. You
[Leetcode]Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element a
hdu 4753 Fishhead’s Little Game
狀態壓縮dp解博弈問題(記憶化搜索)。比賽的時候最後才開始做這道題,而且當時不知道為什麼一直犯一些很2B的問題,導致沒能ac,晚上看了看原先的代碼,改了一
UVA 11401 - Triangle Counting (數學題)
題意:從1~n中選出3個整數,使得他們三邊能組成三角形,給定一個n,問能組成多少個不同的三角形? 題解:n最大能達到1000000,所以只能