iceorfire / hustoj

Automatically exported from code.google.com/p/hustoj
1 stars 0 forks source link

New Judge Core, 1001 problem, right code but returns PE #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. New Judge Core
2. problem 1001
3. right code but returns PE

What is the expected output? What do you see instead?
AC, PE

What version of the product are you using? On what operating system?
486-490

Please provide any additional information below.

http://acm.sie.edu.cn/new/status.php

Original issue reported on code.google.com by cn-...@china.com.cn on 6 Nov 2010 at 2:46

GoogleCodeExporter commented 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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
Sorry, it's my careless. 
It's okay now.

ThanQ.

Original comment by cn-...@china.com.cn on 7 Nov 2010 at 12:42

GoogleCodeExporter commented 8 years ago

Original comment by newsc...@gmail.com on 7 Nov 2010 at 1:01