i have written code as video but it is showing wrong answer on coding block and tle on spoj please help
here is link of code
Holi problem graph getting wrong answer
Hey @S18CC-OL0033
Great work on the code. Just one issue.
In line 34, you’re multiplying to integers whose result is in range long long.
So change either your min value to long long or neighbour.second to long long.
If your doubt is resolved please mark it as closed.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.