1. 刚开始做题极容易忽略的一个问题,对极端条件的判定,如果传进来的是空值,如空数组,空指针等如何处理,一般报错栈溢出,段错误除了非法访问,数组越界等,很可能是没有对空值这种极端情况进行处理。 2.测试数据可能有很多组,但是每组之间根本不会有EOF结尾,全部都是连在一起的,导致本地都对,在线测试怎么都错!!所以一般读取是否结束要根据它的数量来判定,最外层才是采用EOF判定。 3.内存超限,可能原因是忘了给函数返回值,导致测试端检查该值时发生非法访问等相关原因。...
Continue reading...Categories
Recent Posts
Archives
- November 2021
- October 2021
- August 2021
- July 2021
- June 2021
- May 2021
- April 2021
- March 2021
- January 2021
- November 2020
- August 2020
- July 2020
- June 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- October 2019
- September 2019
- August 2019
- July 2019
- June 2019
- May 2019
- April 2019
- March 2019
- January 2019
- December 2018
- November 2018
- October 2018