Since it seems that not all information (e.g. problem statements) can be extracted from polygon using the API, I would suggest to try to match the directory structure that polygon package files use. Then one can more easily combine using both.
For example, I would suggest to write test files using '%02d' since that matches the names exported in the polygon package files. Further, rename the directory 'src' to 'files' and move 'check.cpp' there.
Then again, I don't know how stable the polygon package format is.