I submitted solution 77669161 for problem 2B - Наименее круглый путь 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.
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 150 |
I submitted solution 77669161 for problem 2B - Наименее круглый путь 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.
Name |
---|
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 :(