LeetCode加快程序运行时间

版权声明:版权声明:本文为博主原创文章,博客地址:http://blog.csdn.net/weixin_41969587,未经博主允许不得转载。 https://blog.csdn.net/weixin_41969587/article/details/82870125

大家应该刷过不少LeetCode题吧。
写好的程序,在类外面添加以下代码会加快程序的运行速度喔,嘻嘻!

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

猜你喜欢

转载自blog.csdn.net/weixin_41969587/article/details/82870125
今日推荐