时间超限问题处理(c++)

c++中 如果时间超上限 考虑关于二进制的方法 比如说

find your present (2)

 

这道题 可以用异或运算 

比如 c++ 的 >>(istream) 就不如scanf() 时间上速度

同样类比一下 << 不如printf 速度

有什么新发现我会继续写,勿喷,谢谢

猜你喜欢

转载自blog.csdn.net/ty_gyy/article/details/79841456