static const auto _ = []()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
return nullptr;
}();
关于LeetCode C++提速的方法,在
class Solution
类之前加上 上面那段代码就能极大的提高速度
同样的代码,速度一下体现出来了。
static const auto _ = []()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
return nullptr;
}();
关于LeetCode C++提速的方法,在
class Solution
类之前加上 上面那段代码就能极大的提高速度
同样的代码,速度一下体现出来了。