知周所众,1e6 的输入输出用 cin/cout 就很容易爆了,printf/scanf 更快,快读能够进一步提高效率。
1e6
cin/cout
printf/scanf
但是我在本机测试时发现,freopen 之后 cin/cout 会明显加快,(大概百分之四十)这是为什么呢?
freopen