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.
https://www.codechef.com/viewsolution/25819530

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);”

1 Like