算法练习
adfansong
这个作者很懒,什么都没留下…
展开
-
POJ-1010-STAMPS
// Input: STAMPS{TYPES 0}\nCUSTOMERS{NUMS 0}\n// Output: CUTSOMER_NUM (TYPE_NUM):{ TYPES | tie} | ---- none// max_type_num == 4,fewest TYPE_NUM best, the with highest single-value best// Method:原创 2013-09-29 22:15:22 · 594 阅读 · 0 评论 -
POJ-1013-Counterfeit Dollar
// Input: CASE_NUM\n CASE{A..L A..L w\n A..L A..L w\n A..L w\n}// w = up down even// Output: K is the counterfeit coin and it is light.// Method: 12 coins, 11 true#include #include #include #原创 2013-10-02 21:59:07 · 696 阅读 · 0 评论 -
POJ-1014-Dividing
// Input: n1 n2 n3 n4 n5 n6\n// max_n = 20000// Output: Collection #1:// Can't be divided.// Method: calc total sum, test get half#include #include #include #include // STRUCTS// VAR原创 2013-10-06 18:19:04 · 552 阅读 · 0 评论 -
POJ-1009-Edge Detection
// Input: imageNum * IMAGE{ width, PAIRS{ pixel, length} }// 1000 0-255 1-10^9// Output: max(pixel, pixelNear)// Method: get enough lines to calc current line#include #include #include原创 2013-09-26 12:03:33 · 689 阅读 · 0 评论