Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProblemPerPage = 50 ContestPerPage = 100 ExercisePerPage = 100 SolutionPerPage = 30 UserPerPage = 50 )
CONSTANT
View Source
const ( PageHeadLimit = 1 PageTailLimit = 1 PageMidLimit = 2 )
View Source
const ( JudgePD = 0 //Pending JudgeRJ = 1 //Running & judging JudgeCE = 2 //Compile Error JudgeAC = 3 //Accepted JudgeRE = 4 //Runtime Error JudgeWA = 5 //Wrong Answer JudgeTLE = 6 //Time Limit Exceeded JudgeMLE = 7 //Memory Limit Exceeded JudgeOLE = 8 //Output Limit Exceeded JudgePE = 9 //Presentation Error JudgeNA = 10 //System Error JudgeRPD = 11 //Rejudge Pending )
View Source
const ( LanguageNA = 0 //None LanguageC = 1 //C LanguageCPP = 2 //C++ LanguageJAVA = 3 //Java )
View Source
const ( ModuleNA = 0 //None ModuleP = 1 //Problem ModuleC = 2 //Contest ModuleE = 3 //Exercise )
View Source
const ( PrivilegeNA = 0 //None PrivilegePU = 1 //Primary User PrivilegeTC = 2 //Teacher PrivilegeAD = 3 //Admin )
View Source
const ( EncryptNA = 0 //None EncryptPB = 1 //Public EncryptPT = 2 //Private EncryptPW = 3 //Password )
View Source
const ( StatusReverse = 0 //不可用 StatusIncon = 1 //正在比赛中 StatusAvailable = 2 //可用 StatusPending = 3 //等待 StatusRunning = 4 //进行中 StatusEnding = 5 //结束 )
View Source
const ( AccessAdmin = 1 << iota //管理员页面 AddProblem //添加问题 DeleteProblem //删除问题 AddContest //添加竞赛 DeleteContest //删除竞赛 AddNews //添加新闻 DeleteNews //删除新闻 Testcase //测试数据管理 ReJudge //重判 ViewCode //查看代码 ViewSim //查看相似度 UseControl //用户控制 GenerateUse //生成用户 Notice //通知消息 )
权限分离
View Source
const CookieExpires = 1800
server
View Source
const Datapath = "../ProblemData/"
View Source
const JudgeHost = "http://127.0.0.1:8888"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.