Hi, I fixed my algorithm so that it can output correctly for your input case and all cases from below links, but I still get WA. http://online-judge.uva.es/board/viewtopic.php?t=6354&highlight=459&sid=8a38bf425fc76f799d6f997467f8212e http://online-judge.uva.es/board/viewtopic.php?t=777&highlight ...
I have tried all the input cases of below threads. (my code got the the same output) http://online-judge.uva.es/board/viewtopic.php?t=6354&highlight=459&sid=8a38bf425fc76f799d6f997467f8212e http://online-judge.uva.es/board/viewtopic.php?t=777 ...