dev-resources.site
for different kinds of informations.
Zeta offline judge
Published at
12/16/2018
Categories
php
computerscience
challenge
programmingcontests
Author
Ahmed Khaled MOhamed
Main Article
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
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.
Time is the Time of the user last Submmition
๐ PreRequirements
- xampp ( if you have any problem with the calss named String it is according to PHP version read this to fix the problem : https://github.com/cakephp/cakephp/issues/7573 )
- GCC Compiler ( i used Mingw )
๐ฅ 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 [email protected]
Articles
12 articles in total
Deploy Sylius to Heroku
read article
Slack Status Setter๐ฎ
read article
Your guide to Docker & Kubernetes ๐ณ
read article
Driven development
read article
Design patterns 101
read article
Zeta offline judge
currently reading
Dorm introducing multi-compiler package ๐ for php
read article
Difference between Heredoc and Nowdoc ๐ค
read article
My Git Hot Commands
read article
What is docker?
read article
create RestAPI for your python scripts using Flask with 15 line of code ๐
read article
Install Python Modules from *.whl file
read article
Featured ones: