#16780: C++優化輸出入問題


squaremelon (方形西瓜)


請問一下

在Dev C++中使用C++輸入優化

std::ios_base::sync_with_stdio(false);

std::cin.tie(0)

compile後執行

結果不能跑出答案

是正常的嘛?

#16785: Re:C++優化輸出入問題


detaomega (detaomega)


請問一下

在Dev C++中使用C++輸入優化

std::ios_base::sync_with_stdio(false);

std::cin.tie(0)

compile後執行

結果不能跑出答案

是正常的嘛?

這個是全部輸入完才跑出答案


所以建議是先debug完在加這兩行

 

#16804: Re:C++優化輸出入問題


squaremelon (方形西瓜)


請問一下

在Dev C++中使用C++輸入優化

std::ios_base::sync_with_stdio(false);

std::cin.tie(0)

compile後執行

結果不能跑出答案

是正常的嘛?

這個是全部輸入完才跑出答案


所以建議是先debug完在加這兩行

 



了解,原本還很困惑的說