Pair of roses(stl)

why i am getting wrong answer for thi?

@sarthak051999
hello sarthak,
your code is fine .just print ans1 before ans2 it will pass all test case

1 Like