Comments
On ParagonX97 → A Shortest Path Problem, 7 years ago
0

Sure sir! Here is the link to the contest where this problem appeared. This problem was the D. If you want to submit it, just use one of the users that appears in the page without a password. :)

On Adibov → unordered_map VS map, 8 years ago
+4

This might help :) The search time for an unordered map is of O(n) in the worst case.

Hi everyone! Could someone help me? I tried to solve problem C, but it gives me TLE and my computer runs the first test case in 31 ms. :( This is my submission.

The post-contest is working right now :)

Yoo!! Another comment by harrypotter0

Is DearMargaret going to have a bad rating change for first time?

On ParagonX97 → A Shortest Path Problem, 8 years ago
+8

Accepted!! :)

Yes, I had read it a little bit wrong, you have to apply modulo to the number of paths, not to the distance

Thanks Bodo!!! :)

A long time ago I found another implementation of Sieve of Eratosthenes, when I was comparing another implementations I found a little bit faster and it worked with some larger numbers.

Code: https://ide.geeksforgeeks.org/6BnpEzbrIP

Hi!!

Thank you for all your advices :)

I tried to implement what you said but i got TLE again :( maybe i need to use another data structure to prevent push the same coordinates.

Code: https://ide.geeksforgeeks.org/5tIdijntrN

So I tried to make a bfs where you find some store, another bfs to find the other store and another bfs to find the exit, but now it's give me WA and I don't know why :(

Code: https://ide.geeksforgeeks.org/TCBzqNyiPb

0

There is no score distribution?? :o