力扣c++代码优化,直接在最前面加上以下代码
const auto sync_with_stdio = []() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
return 0;
}();
大约可以提高40%的时间耗时
力扣c++代码优化,直接在最前面加上以下代码
const auto sync_with_stdio = []() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
return 0;
}();
大约可以提高40%的时间耗时