Hong Kong Olympiad in Informatics

Sample Solution 1


Pascal version


C version


C++ version