BIT-Programming-Detect

通过提交C语言程序,逐字符确定测试用例。为符合编程人员的习惯,字符默认从第0个开始。文本框中输入Enter键可以直接开始探测。在结束文本框输入非数字时,会持续探测。探测到所有的测试用例都OF时探测会结束。支持的测试用例字符:ASCII -1, 8-13, 32-126。

As of 2024-10-10. See the latest version.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

نووسەر
YDX-2147483647
Ratings
0 0 0
وەشان
0.1.2
Created
2024-02-29
Updated
2024-10-10
Size
15.8 KB
مۆڵەت
GPL-3.0-or-later
Applies to

BIT-Programming-Detect

针对北京理工大学乐学平台的C语言测试题,通过提交C语言程序,逐字符确定测试用例。

  • 为符合编程人员的习惯,字符默认从第0个开始。
  • 文本框中输入Enter可以直接开始探测。
  • 在结束文本框输入非数字时,会持续探测。
  • 探测到所有的测试用例都OF时探测会结束。
  • 支持的测试用例字符(ASCII):-1 (OF)、8–13、32–126。

注意

  1. 这个程序会频繁向服务器发送固定模式的C语言代码,然后每秒检查一次是否编译完毕。因此,您不应该频繁或长时间使用此程序,否则可能给服务器造成巨大的压力。
  2. 这个程序仅在最新版 Microsoft Edge 中采用篡改猴和篡改猴测试版试验过,不保证在 IE、Firefox 等浏览器或其他脚本管理器中正确运行。
  3. 请在规定范围内使用程序。任何因使用不当而产生的后果责任自负,本人不承担任何相关责任。
  4. 本脚本采用 GPL 3.0 许可。
  5. 全凭兴致不定期维护和更新。

使用方法

  1. 您应当事先安装好脚本管理器扩展,例如 TamperMonkey,安装好此脚本,并赋予适当的权限。

    以下教程以 Microsoft Edge 中的篡改猴测试版版为例说明。

  2. 打开某一道尚未关闭提交入口的编程题,打开“查看”“提交”“结果”“提交历史”“报表”“相似度”的任意一项。

    此时网址形如:

    https://lexue.bit.edu.cn/mod/programming/*.php?id=*
    
  3. 单击浏览器的扩展按钮,找到脚本管理器(例如“篡改猴测试版”),单击。

    TamperMonkey

    单击“BIT-Programming-Detect”下方的“获取保密测试用例”。

    ContextMenu

  4. 出现弹窗,按提示输入参数并提交。

    若想全部探测,请保持第一个输入框为0或非数字,在第二个输入框输入非数字。

  5. 探测结束后,结果会自动下载为*.txt文件,同时用弹窗显示。

致谢及历史

@YDX-2147483647 提供了最初版本 Python 程序及其思路

JWJ 提供了通过运行时长来确定字符的 Python 程序及其思路。

@CJJ 用 JavaScript 升级改造为了浏览器用户脚本,并起草了文档。