DEV Community

Cover image for Zeta offline judge
Ahmed Khaled MOhamed
Ahmed Khaled MOhamed

Posted on

Zeta offline judge

Zeta ๐Ÿ‰ is an offline judge for programming contests ๐Ÿ†.
Githup link : https://github.com/aa-ahmed-aa/Zeta

๐Ÿ’‚ Features

  • Contestants auto ranking.
  • Can add clarifications for problems.
  • Auto judging for c/c++ solutions (java comming soon).

๐Ÿšฉ Judging and Ranking

๐Ÿ“Œ Judging

after judging a problem the contestant can get one of 4 responses :-

  • AC => ACCEPTED
  • WA => WRONG ANSWER
  • TLE => TIME LIMIT EXCEEDED
  • CE => COMPILER ERROR

Alt text

green judge mean it is recommended to use this type of judging for this submmition

  • Automatic ๐Ÿ†š Manual Judging
    • Automatic judging It will run the contestant solution and compare it with the testcases given to that problem and respond to that user submition .
    • Manual Judging Adding the response manually to this submition because Sometimes users didn't follow the rules of the contest and read or write from i/o Stream Not File.

๐Ÿš– Ranking

  • Submition rank Submition are ranked according to time and problem rank so the ranking equation is :-
                                                     Tstart - Tsub
       submition_rank =   problem_rank    -    _________________________    -    (    wrongAnswerCount   *   5    )
                                                           60

       Minimum Submmition Rank is = 40% Of problem rank
  • User rank

    • Users are ranked according to the highest sum of the ACCEPTED problems rank.
    • Scoreboard Time is the time of the user last submition.

    Alt text

    Time is the Time of the user last Submmition

๐Ÿš€ PreRequirements

๐Ÿ”ฅ Installation

  • Download the Repo git clone https://github.com/aa-ahmed-aa/Zeta or via the download button.
  • Import the database file in the Database/zeta_4.sql to phpmyadmin.
  • Go to app/Config/database.php and update username and password to your credential
  • Download Mingw compiler and copy it to your Zeta path.
  • Now Goto http://localhost/Zeta and user username : ahmedkhaled, password : ahmedkhaled123 to login (this is the default admin account you can use it to add other admins and contestant then delete it later)

Before starting a contest you should go to Settings and set the starting time of the contest this time is used to ranks problems and contestant in the scoreboard

๐Ÿšง Contribution

Compilation and Running is based on this package (DORM) so feel free to have a look.

If you find any problem feel free to open issues with any error you find or features you think we can add to Zeta, if you have any problem while you are installing zeta please feel free to contact me at ahmedkhaled36@hotmail.com

Top comments (0)