Home
Problem
Status
Contest
Workbook
User
Group
Forum
Register
Login
{"managingGroups":{},"author":"Isun","updateTime":1680850461000,"title":"Submit with your own account","dislikeCnt":179,"content":"\u003cdiv class\u003d\"alert alert-info\" style\u003d\"white-space: pre-wrap\"\u003eVirutal Judge had been supporting only one method of judging for long time:\n1. User submits code to Virtual Judge;\n2. Virtual Judge submits code to the remote real OJ with bot account (probably named vjudge1, vjudge2, vjudge3, etc);\n3. Fetch verdict result from remote real OJ and translate to the Virtual Judge user.\n\nHowever this method is not suitable in some cases. Possible reasons are:\n1. The remote OJ is not happy with bot accounts or uses captcha techniques to reject machine submitting behaviour.\n3. Limited bot accounts of Virtual Judge result in frequent submit failure due to limit per account of the remote OJ.\n\nTo resolve that issue, we allow users to submit code with their own accounts on remote OJ.\n\u003c/div\u003e\n\u003cbr /\u003e\n\n##### How to\nTo accomplish that, Virtual Judge needs proof from a user that he/she owns a account of the remote OJ. It\u0027s usually by user providing the cookie info when he logged into the remote OJ. After that when you submit on Virtual Judge, your own account on remote OJ is used, instead of a bot account.\n\n* Demo video ([BiliBili](https://www.bilibili.com/video/BV16Y4y1h7XR) / [YouTube](https://www.youtube.com/watch?v\u003deCbe35rbVfs))\n* [Another tutorial (中文)](https://docs.qq.com/doc/DRnN5WWlRdVJEV2Np)\n* Overview for steps to get the required Cookie value (Baekjoon as example):\n![15601670815631_.pic.jpg](https://s2.loli.net/2022/12/12/gElfc8zm23oBZ6n.png \u003d70%x100%)\n\n\n**Note**: Revealing cookies to untrusted organization/person is risky. Please don\u0027t send cookie to others. \n\u003cbr\u003e\n\n\n##### Submit in contests\nObviously, allowing submitting with own account reveals the problem origin. In a contest sometime it\u0027s a matter, and sometime it\u0027s not. So it\u0027s up to a contest manager to decide whether \"submit use own account\" should be allowed in a contest. Formally, whether a contestant can manual submit in a contest is determined as:\n\u003ccenter\u003e\n![Manual_Submit_in_Contest.drawio _1_.png](https://s2.loli.net/2022/04/06/oS6NFRTpUCKvjOV.png)\n\u003c/center\u003e\u003cbr\u003e\n\n##### OJ supported\nThis feature is only supported in some remote OJs. Comment if you need it in some other OJs.","threadId":120614,"likeCnt":142,"createTime":1647696567000,"isWorkbook":false,"viewCnt":53257,"openness":2,"fav":false,"id":2790,"trustable":true}