A Sweep the answer from left to right. If it is equal to n, output n, otherwise sweep from right to left again, and then the original Add the answer to the answer
#include #include using nam
A Sweep the answer from left to right. If it is equal to n, output n, otherwise sweep from right to left again, and then the original Add the answer to the answer
#include #include using nam