1 At the first line in main function,add :std::ios_base::sync_with_stdio(false).which cancel theSynchronization between and ;
2 At the second line in main function,add: std::cin.tie(0).which leads to that cin ties nothing.cin ties cout at first.
3 For all endl, use ‘\n’ or”\n” instead.
注:1 printf 与 cout 不能一起用
2 必须在任何io操作之前取消同步