-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Judger): ✨ add compile and assert logic for language
- Loading branch information
Showing
13 changed files
with
269 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
use super::stage::{AssertionMode, StatusCode}; | ||
|
||
pub struct JudgeArgs { | ||
pub(super) mem: u64, | ||
pub(super) cpu: u64, | ||
pub(super) input: Vec<u8>, | ||
pub(super) output: Vec<u8>, | ||
pub(super) mode: AssertionMode, | ||
pub(super) source: Vec<u8>, | ||
} | ||
|
||
pub struct ExecuteArgs { | ||
pub(super) mem: u64, | ||
pub(super) cpu: u64, | ||
pub(super) input: Vec<u8>, | ||
pub(super) source: Vec<u8>, | ||
} | ||
|
||
pub struct JudgeResult { | ||
pub status: StatusCode, | ||
pub time: u64, | ||
pub memory: u64, | ||
} | ||
|
||
pub struct ExecuteResult { | ||
pub time: u64, | ||
pub memory: u64, | ||
pub output: Vec<u8>, | ||
pub code: i32, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
mod builder; | ||
mod daemon; | ||
mod plugin; | ||
mod spec; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.