简体   繁体   中英

How do I get rid of the TLE error in Python?

When am working with a Python code involving for loop, often am getting TLE (time limit exceed) error.

How can I overcome that error?

For example: in using a for loop of range n, if the loop goes to really very large value say, 10^8 am getting that error. Is there any efficient way which can replace for loops for faster execution?

在某些情况下可以使用 Break 语句来解决 TLE 错误。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM