USACO第一道题Compiling...Compile:OKExecuting...> Run 1:Execution error:Your program did not produce an answerthat was judged as correct.The program stopped at 0.000 seconds;it used 3024 KB of memory.Here are the respective outputs:----- our outpu
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/23 19:53:20
USACO第一道题Compiling...Compile:OKExecuting...> Run 1:Execution error:Your program did not produce an answerthat was judged as correct.The program stopped at 0.000 seconds;it used 3024 KB of memory.Here are the respective outputs:----- our outpu
USACO第一道题
Compiling...
Compile:OK
Executing...
> Run 1:Execution error:Your program did not produce an answer
that was judged as correct.The program stopped at 0.000 seconds;
it used 3024 KB of memory.
Here are the respective outputs:
----- our output ---------
2
---- your output ---------
GO
--------------------------
Note that your output did not end in a newline!This is an error and
must be repaired.
------ Data for Run 1 ------
1 1
----------------------------
Test 1:BADCHECK 0.000 (0.000 secs,3024 KB)
USACO第一道题Compiling...Compile:OKExecuting...> Run 1:Execution error:Your program did not produce an answerthat was judged as correct.The program stopped at 0.000 seconds;it used 3024 KB of memory.Here are the respective outputs:----- our outpu
收到了你的留言.
我运行了你的代码,是正确的.
作为算法解答,你的代码已经是OK了.
运行时出现异常,是发生了fopen("ride.in","r")只读打开文件失败(比如文件没有找到),调用fscanf()时fin为非法指针,而引起的assertion failure.建议在调用fopen之后检查fin指针.