zhblue / hustoj

Popular Open Source Online Judge based on PHP/C++/MySQL/Linux for ACM/ICPC and NOIP training, with easy installation. 开源OJ系统
http://www.hustoj.com/?cat=2
GNU General Public License v2.0
3.22k stars 763 forks source link

请问是否可以说明一下RemoteOJ的使用方法? #923

Open Andy-qinyuhai opened 1 year ago

Andy-qinyuhai commented 1 year ago

有关RemoteOJ功能代码已经逐渐完善,能否简单写一份使用说明?感谢!

zhblue commented 1 year ago
  1. 编辑db_info.inc.php,设置$OJ_REMOTE_JUDGE=true;
  2. 编辑remote.php编辑数组,留下需要使用的模块
  3. 编辑include/remote_xxx.php配置远程账号密码。
  4. 后台菜单最下方的隐藏功能灰白色链接Copy_Problem,进入后使用对应的入口抓取题目。
  5. 编辑题目,确认RemoteOJ和RemoteID的值与2-3步骤中的一致。
  6. 尝试提交,刷新状态页,等待判题结果。
  7. 如果判题结果正常,则配置完成。
Andy-qinyuhai commented 1 year ago

感谢回复! 我尝试使用Luogu的RomoteOJ,但是没有成功。 我在第4步时,进入Copy_problem页面,但只抓取到了Title,Timelimit,Memory limit这三项,其余的如Description, input, output等都没有抓取到。这里是要手动复制这几项吗? 第5步,我没有找到RemoteOJ和RemoteID的值,请问在哪里确认这两个值? 第6步,尝试提交后仍然还是在本地编译和判题。

zhblue commented 1 year ago

洛谷官方似乎对本项目很反感,慎重考虑使用此功能去抓取他们的题面,如果一定要用,请更新到最新版本。 题面可以自行复制或者截屏,用普通题目的添加方式添加,之后编辑题目,填写题源、题号。如:luogu P1000 运行需要官方的账号密码,请注意配置。

zhblue commented 1 year ago

调试本功能,请优先调试pku, hdu 这两个模块,他们虽然老了,但是稳定可靠。