Closed GoogleCodeExporter closed 8 years ago
it seems that some of your test data is using DOS-Style text format which end
each line with \r\n
try to do this in your /home/judge/data/1001
{{{
cd /home/judge/data/1001
find . -name *.in -exec fromdos -d {} \;
find . -name *.out -exec fromdos -d {} \;
}}}
and rejudge your solution in Admin menu
if this works, you might want to do it in you /home/judge/data
{{{
cd /home/judge/data
find . -name *.in -exec fromdos -d {} \;
find . -name *.out -exec fromdos -d {} \;
}}}
this might take a while, it depends on the test data size of your system.
it's safe to do that more than once,but you might want to backup data files
before trying.
{{{
tar cvzf data.tar.gz /home/judge/data
}}}
Original comment by newsc...@gmail.com
on 6 Nov 2010 at 4:53
This situation is generally because new version judge_client is using ZOJ's
compare funciton for output data judge. By doing that , it allows unlimited
size of output files.
Original comment by newsc...@gmail.com
on 6 Nov 2010 at 4:56
But pls notice that the 1001 problem has an empty output file. See:
Code:
int main(){}
Description:
nothing but test the mem base fix
However the older judge client (6 month ago) returned right.
I think there's something no better than the original HUSTOJ judge_client in
the ZOJ judge core...
Original comment by cn-...@china.com.cn
on 7 Nov 2010 at 1:09
if you prefer the old version try comment out the following line:
#define ZOJ_COM
http://code.google.com/p/hustoj/source/browse/trunk/core/judge_client/judge_clie
nt.cc#62
and recompile, that should keep you with latest core but old compare function.
I'll reconsider this issue.
Original comment by newsc...@gmail.com
on 7 Nov 2010 at 2:37
after a test with the latest core, my instance report correct result with empty
test data.
i'd like to see what files are in your /home/judge/data/1001.
you can upload them with a tar package here.
Original comment by newsc...@gmail.com
on 7 Nov 2010 at 7:33
this code AC
{{{
#include <stdio.h>
int main(){
printf("\n");
}
/**************************************************************
Problem: 1001
User: zhblue
Language: C++
Result: Accepted
Time:20 ms
Memory:800 kb
****************************************************************/
}}}
i believe your test data is not ZERO-size but 1 byte file of "\n".
if you want an empty file under linux, try use "touch" command.
Original comment by newsc...@gmail.com
on 7 Nov 2010 at 7:41
Sorry, it's my careless.
It's okay now.
ThanQ.
Original comment by cn-...@china.com.cn
on 7 Nov 2010 at 12:42
Original comment by newsc...@gmail.com
on 7 Nov 2010 at 1:01
Original issue reported on code.google.com by
cn-...@china.com.cn
on 6 Nov 2010 at 2:46