摘要:
Source: PAT A1038 Recover the Smallest Number (30 分) Description: Given a collection of number segments, you are supposed to recover the smallest numb 阅读全文
摘要:
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 阅读全文
摘要:
Source: PAT A1070 Mooncake (25 分) Description: Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of 阅读全文
摘要:
Date:2019-07-22 19:33:09 总是选择当前最优的策略,来获得全局最优的解 Sample: 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
Source: PAT A1050 String Subtraction (20 分) Description: Given two strings S1 and S2, S=S1−S2 is defined to be the remaining string after 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文