//#define DEBUG #ifdef DEBUG #define debug(...) printf( __VA_ARGS__) #else #define debug(...) #endif
这样的话在提交的时候也不用注释掉一些调试的时候需要打印的中间数据了,very good