瀏覽代碼

add sync_with_stdio

Olivier Marty 8 年之前
父節點
當前提交
c5f2108d8d
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      code/Tips.cpp

+ 3 - 0
code/Tips.cpp

@@ -20,3 +20,6 @@ __builtin_ctz(unsigned int) // number of trailing 0-bits
 // __builtin_ctz(0) is undefined
 __builtin_popcount(int) // number of 1-bits
 // __builtin_popcount(0110b) = 2
+
+// desynchronise standard i/o
+ios::sync_with_stdio(false);