Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

ABC305 Problem E: Why is this code giving TLE?

Правка en1, от WayBig, 2023-06-10 22:21:07

In today's ABC305, I used multisource BFS to solve problem E. But it is giving TLE. Can anyone please point out the mistake? Moreover, an almost similar question also happened to appear in Codechef STARTERS 93. And an almost similar code, written by me, got accepted in it.

Problem Link: https://atcoder.jp/contests/abc305/tasks/abc305_e

Solution Link: https://atcoder.jp/contests/abc305/submissions/42175490

Code
Теги atcoder, abc305, tle, codechef, graphs, bfs, multisource bfs

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский WayBig 2023-06-10 22:21:07 1758 Initial revision (published)