Vietnam ranked third out of the 31 countries and territories that entered the competition.
The gold medal went to Pham Duc Thang, a 12th grader from the Specialised High School of the Hanoi University of Science, under the Vietnam National University.
The silver and bronze medals were won by 11th and 12th graders from various gifted schools in Hanoi, Ho Chi Minh City, Thanh Hoa and Lam Dong.
Last year, the country finished seventh with five silver medals and one bronze medal.
The APIO is an online contest for the whole of the Asian Pacific region. The tasks are similar to those in the International Olympiad in Informatics (IOI) and focus on the design of algorithms.
The contest is held online, with students competing at contest sites within their own country or area.
This year, prizes were considered for 187 standout students in the region, 87 of whom brought home medals.