I submitted solution 77669161 for problem 2B - The least round way and got TLE at test case 31 and not able to find reason. Could anyone help me in finding why it is getting tle error.
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3773 |
3 | Radewoosh | 3646 |
4 | ecnerwala | 3624 |
5 | jqdai0815 | 3620 |
5 | Benq | 3620 |
7 | orzdevinwang | 3612 |
8 | Geothermal | 3569 |
8 | cnnfls_csy | 3569 |
10 | gyh20 | 3447 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 161 |
2 | maomao90 | 160 |
3 | awoo | 159 |
4 | atcoder_official | 157 |
5 | -is-this-fft- | 155 |
5 | nor | 155 |
5 | adamant | 155 |
8 | Um_nik | 152 |
8 | maroonrk | 152 |
10 | djm03178 | 146 |
I submitted solution 77669161 for problem 2B - The least round way and got TLE at test case 31 and not able to find reason. Could anyone help me in finding why it is getting tle error.
Название |
---|
Hey, I couldn't figure out why you TLE (I've been looking at your code for 15+ mins). Instead, I'll share my code that ACed, and hopefully you can compare and figure out.
PS: I really liked this problem when I first read it (maybe last month), and it's been one of my favourites till now.
thanks, I found out reason of tle as I didn't noticed numbers of grid can be zero also,my silly mistake :(