Leetcode C++提速

static const auto _ = []()
{
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    return nullptr;
}();

关于LeetCode C++提速的方法,在

class Solution

类之前加上 上面那段代码就能极大的提高速度

同样的代码,速度一下体现出来了。
在这里插入图片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章