码迷,mamicode.com
首页 > 其他好文 > 详细

Homework 1

时间:2018-03-09 13:14:47      阅读:191      评论:0      收藏:0      [点我收藏+]

标签:several   pac   work   ems   case   ali   not   complete   sim   

Briefly describe an error from your past projects that you have recently completed or an error from other projects which impress you most.

State the reason, impact of the error and how did you find it.

 

As I had made a string of mistakes in my projects, the most impressive error is the one during an ACM simulation when I was a new member.

I tried the test case many times and the answer is always right, so I submit my code again and again. But I always get an wrong answer feedback. At last I input several test cases and get the wrong answer from the second case to the last case. The fault is that I use “memset” to clear an array, but I put it out of the loop statement, which made it useless after the first case, and the array will not be cleared, and the data would be wrong and get an wrong answer.

I move it into the loop again and Accepted. It is a small low-grade mistake, but it wastes my precious time to solve other questions.

Homework 1

标签:several   pac   work   ems   case   ali   not   complete   sim   

原文地址:https://www.cnblogs.com/hotarufuni/p/8533232.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!