MAXEXPR Solution

In, Maximize an expression whenever I use fast io with printf, some of the test files give WA while with cout it gives AC.
Here is link to my solution.

1 Like

Try using only scanf/printf or only cin/cout.

You shouldn’t mixed them when you use this line : “ios_base::sync_with_stdio(false);”