Leetcode C++提速

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

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

class Solution

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

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

发布了19 篇原创文章 · 获赞 15 · 访问量 2456

猜你喜欢

转载自blog.csdn.net/qq_41829380/article/details/104793420