我在做一道站外题的时候,只要输出下面的代码就real_time_limit_exceeded
cout<<s[l]+2ll*k*(m-l)-s[n]+s[n-m+l]<<endl;
但是只要把endl改成"\n"就AC了
cout<<s[l]+2ll*k*(m-l)-s[n]+s[n-m+l]<<"\n";
想知道为什么,大佬帮忙看看呗