Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give an solution of TLE #234

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,42 @@ brew install lemonlime --cask

请看 [LemonLime 构建指南](BUILD.md)。

## 前几个测试点TLE解决方案

经检查,发现Windows Defender会拦截g++刚生成的文件最多10s,导致至少一个测试点超时,因此,我们给出了一种临时的解决方案

我们给出如下解决方案(尤其是在比赛中):

1. **排除文件夹**:将用于编译和运行代码的文件夹添加到 Windows Defender 的排除列表中。步骤如下:
- 打开“Windows 安全中心”。

- 选择“病毒和威胁防护”。

- 点击“管理设置”下的“排除项”。

- 添加编译器输出目录或整个编译目录为排除项,这样 Windows Defender 将不再扫描该文件夹中的文件。


2. **排除特定进程**:将 `g++.exe` 或者与评测相关的进程排除在 Windows Defender 的扫描范围外。

- 打开“Windows 安全中心”。

- 选择“病毒和威胁防护”。

- 找到“排除项”,并添加 `g++.exe` 进程。

3. **关闭实时保护**(临时):在评测过程中可以暂时关闭 Windows Defender 的实时保护,这样可以避免实时扫描影响评测时间。

- 打开“Windows 安全中心”。

- 选择“病毒和威胁防护”。

- 关闭“实时保护”。(注意:关闭实时保护会有安全风险,建议只在评测期间短暂关闭。)

###### Updated By Mycbxzd1

---

## Credit
```
Copyright (c) 2019-2022 Project LemonLime.
Expand Down