在cpp代码前面加一行
static const auto _ = []() { ios::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr); return nullptr; }();
这样可以加速输入输出速度。如果你的算法超过了89%的人,用了这个就超过99%啦!
在cpp代码前面加一行
static const auto _ = []() { ios::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr); return nullptr; }();
这样可以加速输入输出速度。如果你的算法超过了89%的人,用了这个就超过99%啦!