1039. Course List for Student (25)
本文共 1563 字,大约阅读时间需要 5 分钟。
倒排索引题
这道题目好像是为数不多的一道卡时题,你在PAT刷的很happy的时候,还是要注意下string的滥用的。
因为string的拷贝以及比较操作都要比char数组相同操作的效率低。
另外其实vector的频繁改变数组大小其实也比较耗时,不过在PAT上还是都可以用vector的。
#include #include #include #include
转载地址:http://aaxti.baihongyu.com/