美文网首页
LeetCode 减少运行时间的代码

LeetCode 减少运行时间的代码

作者: TFprime | 来源:发表于2019-03-06 09:31 被阅读0次

    下面的代码放到class Solution前面可以减少运行时间,具体原因不是很清楚。

    static int x = []() {
        std::ios::sync_with_stdio( false );
        std::cin.tie( NULL );
        std::cout.tie( NULL );
        return NULL;
    }();
    

    相关文章

      网友评论

          本文标题:LeetCode 减少运行时间的代码

          本文链接:https://www.haomeiwen.com/subject/nlizuqtx.html