It seems to speed up test cases input
int x = []() { std::ios::sync_with_stdio(false); std::cin.tie(nullptr); return 0; }();
or
static int x = []() { std::ios::sync_with_stdio(false); std::cin.tie(nullptr); return 0; }();