I tried to run the same code for this test case
1
2 1
1 2
everything is working fine but when I tried to run code it’s giving correct answer from dfs and power function. But when I am multiplying answer in line 63 it’s giving me an answer as 44 instead of 4.
here is the code: https://ide.codingblocks.com/s/238826
Beautiful Graph problem
@SWIFTY
Answer is 4 only buddy
print endl in line 64
One 4 is printed by 64
One is printed by 89
Since there is not gap they’re coming out together and its looking like 44