#16357: Avoid TLE in Python


inthewing (Hsu)

學校 : 國立中正大學
編號 : 29488
來源 : [39.15.2.129]
最後登入時間 :
2023-04-02 00:15:55
a565. 2.p&q的邂逅 -- 101學年度台北市資訊學科能力競賽 | From: [180.217.242.212] | 發表日期 : 2018-12-23 01:34

As title, after a few hours' efforts, I finally find out the magical trick.

I thought it was my IO method too slow and had tried a lot of IO method, but did not work at all.

The devil is hidden in the details. 

Let's see this post: https://python3-cookbook.readthedocs.io/zh_CN/latest/c14/p14_make_your_program_run_faster.html

Have a nice day^^

 
ZeroJudge Forum