對(duì)于C++程序員
需要知道為什么默認(rèn)情況下cin/cout比scanf/printf慢敛滋,要知道如何優(yōu)化。參考 《cin.tie與sync_with_stdio加速輸入輸出》一文。
[1] http://www.hankcs.com/program/cpp/cin-tie-with-sync_with_stdio-acceleration-input-and-output.html
需要知道如何檢測(cè)C++的運(yùn)行耗時(shí)。
https://stackoverflow.com/questions/375913/how-can-i-profile-c-code-running-on-linux