utilities for programming contest problem setting