How sxyzccr/ccr-plus works
CCR Plus is a Qt-based contest judging environment for traditional and answer-only problems. The main workflow is to open a contest, configure problems and test cases, select submissions for judging, and view per-problem and aggregate results. The graph separates contest data, configuration, judging, and the UI. Source excerpts show the judge-thread dispatch and result updates; README statements support the documented configuration capabilities. Some configuration internals and persistence links are not shown, so those relationships are omitted.
Main entry points: mainwindow.cpp Main window · judgethread.cpp Judge coordinator · advancedconfiguredialog.cpp Advanced settings · contest.cpp Contest model
Components 17
Contest interface
- Main window
src/mainwindow/mainwindow.cpp - Scoreboard
src/mainwindow/boardtable.cpp - Judge details
src/mainwindow/detailtable.cpp
Problem configuration
- Problem settings
src/configure/configuretable.cpp - Configuration dialog
src/configure/configuredialog.cpp - Advanced settings
src/configure/advancedconfiguredialog.cpp - Compiler settings
src/configure/compiler/compilertabwidget.cpp - Test-case settings
src/configure/testcase/testcasetable.cpp
Contest data
- Contest model
src/common/contest.cpp - Players and results
src/common/player.cpp - Problem definitions
src/common/problem.cpp
Judging runtime
- Judge coordinator
src/judge/judgethread.cpp - Problem-type judgers
src/judge/judger/traditionaljudger.cpp - Compile and execute
src/judge/judger/basejudger.cpp - Output checker
src/judge/judger/basejudger.cpp - Process monitor
src/tools/monitor/monitor.c
Other components
- Contest operator
Connections 19
- Contest operator → Main window: uses
- Main window → Scoreboard: displays
src/mainwindow/mainwindow.cpp - Main window → Judge details: displays
src/mainwindow/mainwindow.cpp - Main window → Judge coordinator: starts
src/mainwindow/mainwindow.cpp - Main window → Configuration dialog: opens
src/mainwindow/mainwindow.cpp - Main window → Advanced settings: opens
src/mainwindow/mainwindow.cpp - Main window → Contest model: loads
- Contest model → Players and results: contains
- Contest model → Problem definitions: contains
- Configuration dialog → Problem settings: edits
- Advanced settings → Compiler settings: configures
- Advanced settings → Test-case settings: configures
- Judge coordinator → Problem-type judgers: dispatches
src/judge/judgethread.cpp - Judge coordinator → Players and results: updates
src/judge/judgethread.cpp - Judge coordinator → Players and results: saves HTML
src/judge/judgethread.cpp - Judge coordinator → Judge details: forwards details
- Problem-type judgers → Compile and execute: inherits
src/judge/judger/traditionaljudger.cpp - Compile and execute → Output checker: checks output
src/judge/judger/basejudger.cpp - Compile and execute → Process monitor: launches
src/judge/judger/basejudger.cpp