Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

算法题测试

算法测试旨在检验语言的功能和编译器实现的完备性。你需要使用你设计的编程语言实现指定算法,并使用你实现的编译器编译执行。我们的算法题测试采用 ACM 模式。

我们在公开资料的 public-tests/ 目录下放置了算法测试需要用到的测试集。Grader 脚本读取 public-tests/suite.yaml 文件来获取测试集信息,并读取你的项目中的 compilerlab.yaml 文件来确认算法程序的编译方式。

你需要在 compilerlab.yaml 中声明 algorithms 字段,并严格匹配算法题的 ID。

(我们将在 10 月 23 日发布全部算法题。)