摘要:
Source: PAT A1038 Recover the Smallest Number (30 分) Description: Given a collection of number segments, you are supposed to recover the smallest numb 阅读全文
posted @ 2019-07-23 19:08
林東雨
阅读(164)
评论(0)
推荐(0)
摘要:
Source: PAT A1067 Sort with Swap(0, i) (25 分) Description: Given any permutation of the numbers {0, 1, 2,..., N−1}, it is easy to sort them in increas 阅读全文
posted @ 2019-07-23 18:46
林東雨
阅读(235)
评论(0)
推荐(0)
摘要:
Source: PAT A1070 Mooncake (25 分) Description: Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of 阅读全文
posted @ 2019-07-22 19:53
林東雨
阅读(172)
评论(0)
推荐(0)
摘要:
Date:2019-07-22 19:33:09 总是选择当前最优的策略,来获得全局最优的解 Sample: 阅读全文
posted @ 2019-07-22 19:34
林東雨
阅读(185)
评论(0)
推荐(0)
摘要:
Source: PAT A1041 Be Unique (20 分) Description: Being unique is so important to people on Mars that even their lottery is designed in a unique way. Th 阅读全文
posted @ 2019-07-21 20:29
林東雨
阅读(160)
评论(0)
推荐(0)
摘要:
Source: PAT A1048 Find Coins (25 分) Description: Eva loves to collect coins from all over the universe, including some other planets like Mars. One da 阅读全文
posted @ 2019-07-21 20:18
林東雨
阅读(455)
评论(0)
推荐(0)
摘要:
Source: PAT A1050 String Subtraction (20 分) Description: Given two strings S1 and S2, S=S1−S2 is defined to be the remaining string after 阅读全文
posted @ 2019-07-21 20:00
林東雨
阅读(212)
评论(0)
推荐(0)
摘要:
Source: PAT A1084 Broken Keyboard (20 分) Description: On a broken keyboard, some of the keys are worn out. So when you type some sentences, the charac 阅读全文
posted @ 2019-07-21 19:46
林東雨
阅读(159)
评论(0)
推荐(0)
摘要:
Source: PAT A1092 To Buy or Not to Buy (20 分) Description: Eva would like to make a string of beads with her favorite colors so she went to a small sh 阅读全文
posted @ 2019-07-21 19:29
林東雨
阅读(146)
评论(0)
推荐(0)
摘要:
Source: PAT A1112 Stucked Keyboard (20 分) Description: On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the 阅读全文
posted @ 2019-07-19 19:21
林東雨
阅读(194)
评论(0)
推荐(0)
浙公网安备 33010602011771号