事实证明不写using namespace std;然后把所有cin,cout,max一类在std里面的东西前面加上std:: 就像 std::cin std::cout 这样就比原来快 https://www.luogu.com.cn/record/166358245 AC https://www.luogu.com.cn/record/166357713 TLE 而且快了将近4秒
using namespace std;
cin
cout
max
std::
std::cin
std::cout