|
0
Hey can you please check my code I applied your logic it's getting WA in only 2 test cases! Here is the code:(https://atcoder.jp/contests/abc172/submissions/14823164) |
|
0
Totally it helps! Thank you so very much! Sorry for the late reply :) |
|
0
Ahh, so that means greedy will not give the optimal solution right?! Any help on how to solve the problem? The English editorial is going to take some days to come :( |
|
-8
Here is my solution to C. Can anyone tell me why the above code gets WA in 10 test cases. Isn't the problem solvable by 2 pointer kinda technique? |