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.
№ | Пользователь | Рейтинг |
---|---|---|
1 | jiangly | 3898 |
2 | tourist | 3840 |
3 | orzdevinwang | 3706 |
4 | ksun48 | 3691 |
5 | jqdai0815 | 3682 |
6 | ecnerwala | 3525 |
7 | gamegame | 3477 |
8 | Benq | 3468 |
9 | Ormlis | 3381 |
10 | maroonrk | 3379 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 168 |
2 | -is-this-fft- | 165 |
3 | Dominater069 | 161 |
4 | Um_nik | 160 |
5 | atcoder_official | 159 |
6 | djm03178 | 157 |
7 | adamant | 153 |
8 | luogu_official | 151 |
9 | awoo | 149 |
10 | TheScrasse | 146 |
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.
Название |
---|
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 :(