use LWP::UserAgent;
use constant PAGE_SIZE => 10;
+use constant FORMAT_EXTENSION => {
+ C => 'c',
+ CPP => 'cpp',
+ MONO => 'cs',
+ JAVA => 'java',
+ PASCAL => 'pas',
+ PERL => 'pl',
+ PYTHON => 'py',
+};
##################################################
$meta->{tests} = decode_json $jobr->problem->tests if $meta->{runner} eq 'File';
$meta->{files}{ver} = {
- name => 'ver.cpp',
+ name => 'ver.' . FORMAT_EXTENSION->{$jobr->problem->verformat},
format => $jobr->problem->verformat,
content => $jobr->problem->versource,
} if $jobr->problem->verformat;