Hong Kong Olympiad in Informatics

Sample Solution 2


Pascal version


C version


C++ version