此文档由 ACM 俱乐部(acmclub.com)原创,转载请注明出处!
3 / 156
一、真题再现 .......................................................................................................... 68
二、解法详述 .......................................................................................................... 69
三、细节注意 .......................................................................................................... 69
四、参考代码(C++) ............................................................................................. 69
五、题目练习 .......................................................................................................... 70
六、考点归纳 .......................................................................................................... 70
PAT20121216 ........................................................................................................................... 71
A. Shortest Distance (25) .................................................................................................. 71
一、真题再现 .......................................................................................................... 71
二、解法详述 .......................................................................................................... 72
三、细节注意 .......................................................................................................... 72
四、参考代码 .......................................................................................................... 72
五、题目练习 .......................................................................................................... 73
六、考点归纳 .......................................................................................................... 73
B. Student List for Course (25)........................................................................................... 73
一、真题再现 .......................................................................................................... 73
二、解法详述 .......................................................................................................... 75
三、细节注意 .......................................................................................................... 75
四、参考代码 .......................................................................................................... 76
五、题目练习 .......................................................................................................... 78
六、考点归纳 .......................................................................................................... 78
C. Find Coins (25) ............................................................................................................. 78
一、真题再现 .......................................................................................................... 78
二、解法详述 .......................................................................................................... 79
三、细节注意 .......................................................................................................... 80
四、参考代码 .......................................................................................................... 80
五、题目练习 .......................................................................................................... 81
六、考点归纳 .......................................................................................................... 81
D. Counting Ones (30) ....................................................................................................... 81
一、真题再现 .......................................................................................................... 81
二、解法详述 .......................................................................................................... 82
三、细节注意 .......................................................................................................... 83
四、参考代码 .......................................................................................................... 83
五、题目练习 .......................................................................................................... 83
六、考点归纳 .......................................................................................................... 84
PAT20130310 ........................................................................................................................... 85
A. String Subtraction (20) .................................................................................................. 85
一、真题再现 .......................................................................................................... 85
二、解法详述 .......................................................................................................... 86
三、细节注意 .......................................................................................................... 86
四、参考代码 .......................................................................................................... 86
五、题目练习 .......................................................................................................... 86
六、考点归纳 .......................................................................................................... 87
B. Pop Sequence (25)........................................................................................................ 87