Home > Back-end >  Time Limited Exceeded problem for help
Time Limited Exceeded problem for help

Time:06-10

Novice programming, how to optimize can't timeout

CodePudding user response:

First of all a suggestion with dynamic application space (new/delete, malloc/free); Because the length of the array input decision,

The second point, z function proposed increases in two parameters, respectively is the row, col used to receive the main function of n and m, because n, m value may be less than 900, 450
So, if less than, then z function with 900, 450 is not ok, because the extra element is a random number, overtime may be the result of this reason,

The third point: the function name is not recommended in a letters, so and a parameter name is basically no difference, not easy to understand the code;

CodePudding user response:

Screenshots are not full

CodePudding user response:

The other will be only two examples

CodePudding user response:

The
reference 3 floor fu-tai zhang z response:
other will be only two examples
each line less one or two words

CodePudding user response:


I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related