A trick to reduce the running time of your code

I found this piece of code in some fastest submission and tried to add it to my code. It actually reduced the running time a lot LOL

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

I have no idea of how it works. But I find it interesting and hopefully some expert can give an explanation :-)

Comments (2)