File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,14 @@ sidebar_position: 2
3737
3838详见[ 提交题目] ( ./problem/submit.md )
3939
40+ ## 为什么我在本地/其他网站 AC 了,洛谷上却没过? {#why-unac}
41+
42+ - Linux 中换行符是 ` \n ` 而 Windows 中是 ` \r\n ` (多一个字符),有些数据在 Windows 中生成,而在洛谷评测机 Linux 环境下评测。这种情况在字符串输入中非常常见。
43+ - 评测系统运行在 Linux 下,可能由于使用了 Linux 的保留字而出现 CE,但在 Windows 下正常。
44+ - Linux 对内存的访问控制更为严格,因此在 Windows 上可能正常运行的无效指针或数组下标访问越界,在评测系统上无法运行。
45+ - 严重的内存泄露的问题很可能会引起系统的保护模块杀死你的进程。因此,凡是使用 ` malloc ` (或 ` calloc ` 、` realloc ` 、` new ` )分配而得的内存空间,请使用 ` free ` (或 ` delete ` )完全释放。
46+ - 数据可能真的有问题。但是,如果已有不止一个人通过了这道题,那最好不要怀疑是数据的锅。
47+
4048## 如何创建题目? {#problem-create}
4149
4250![ 点击创建题目] ( _image/create-problem.jpg )
Original file line number Diff line number Diff line change @@ -29,13 +29,7 @@ sidebar_position: 1
2929- OLE:Output Limit Exceeded,输出超过限制。
3030- UKE:Unknown Error,出现未知错误。
3131
32- ## 常见“我在本地/xxOJ AC了、洛谷却不过”的原因
33-
34- - Linux 中换行符是 ` \n ` 而 Windows 中是 ` \r\n ` (多一个字符),有些数据在 Windows 中生成,而在洛谷评测机 Linux 环境下评测。这种情况在字符串输入中非常常见。
35- - 评测系统运行在 Linux 下,可能由于使用了 Linux 的保留字而出现 CE,但在 Windows 下正常。
36- - Linux 对内存的访问控制更为严格,因此在 Windows 上可能正常运行的无效指针或数组下标访问越界,在评测系统上无法运行。
37- - 严重的内存泄露的问题很可能会引起系统的保护模块杀死你的进程。因此,凡是使用 ` malloc ` (或 ` calloc ` 、` realloc ` 、` new ` )分配而得的内存空间,请使用 ` free ` (或 ` delete ` )完全释放。
38- - 数据可能真的有问题。但是,如果已有不止一个人通过了这道题,那最好不要怀疑是数据的锅。
32+ 为什么在本地/其他网站 AC 了,洛谷上却没过?请[ 点击查阅常见问题] ( ../faq.md#why-unac ) 。
3933
4034## Special Judge
4135
@@ -388,4 +382,4 @@ ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [x86_64-linux]
388382```
389383# node --version
390384v20.9.0
391- ```
385+ ```
You can’t perform that action at this time.
0 commit comments