关于输出的问题

P1443 马的遍历

为什么我用cout<<endl;输出换行就会wa 用printf("\n")就ac 请教一下
by 浮梦CalcuLus @ 2019-02-12 00:52:18


@[浮梦CalcuLus](/space/show?uid=165533) 因为`std::ios::sync_with_stdio(false);`会使得C++iostream和cstdio的同步关闭,所以你将printf和cout混用就会出错
by GKxx @ 2019-02-12 00:56:48


|