HDU2128Tempter of the Bone II(bfs+狀態壓縮),hdu2128tempterbfsTempter of the Bone IITime Limit: 10000/5000 MS (Java/Others) Memory Limit: 98304/32768 K (Java/Others)Total Submission(s): 1529 Accepted
中位元,中位元演算法數組第10題【描述】中位元定義:一組資料按從小到大的順序依次排列,處在中間位置的一個數或最中間兩個資料的平均值(如果這組數的個數為奇數,則中位元為位於中間位置的那個數;如果這組數的個數為偶數,則中位元是位於中間位置的兩個數的平均值)。給出一組無序整數,求出中位元,如果求最中間兩個數的平均數,向下取整即可(不需要使用浮點數)。【輸入】包含多組測試資料,每一組測試資料的第一行為n,代表該組測試資料包含的資料個數,1 <= n <=10000
Linux訊號量實踐(2),linux訊號量實踐訊號量API綜合實踐//實踐1:封裝PV原語union mySemUn{ int val; // Value for SETVAL// struct semid_ds *buf; // Buffer for IPC_STAT, IPC_SET// unsigned short *array; // Array for GETALL, SETALL// struct seminfo
poj 2752 Seek the Name, Seek the Fame【KMP】,poj2752點擊開啟題目Seek the Name, Seek the FameTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 12651 Accepted: 6214DescriptionThe little cat is so famous, that many couples
poj 2406 Power Strings【KMP】,poj2406點擊開啟題目Power StringsTime Limit: 3000MS Memory Limit: 65536KTotal Submissions: 33548 Accepted: 13935DescriptionGiven two strings a and b we define a*b to be their concatenation. For