I was used to solving problems in UVA online judge around 2009. I uploaded the solutions in my old website sudiptakar.freetzi.com. That site was discontinued from 2012 and I’ve lost most of the codes. I didn’t move the codes on this site. After a long time, I could retrieve some of the codes (around 105 problems). They are available on Github.
You are welcome to watch the code for help. But try to solve the problem by yourself first. It will help your learning.