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 | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
9 | nor | 153 |
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 :(