Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
chore(types): add object ProblemVerdictMap
Browse files Browse the repository at this point in the history
  ## what
  - add object `ProblemVerdictMap`

  ## how

  ## why
  - will be used to convert verdict keys in `Problem` type into a
    readable string

  ## where
  - ./src/types/index.ts

  ## usage
  • Loading branch information
Clumsy-Coder committed Jan 6, 2024
1 parent 10aac7b commit e5bad4b
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,57 @@ export const ProblemStatus: Record<string, string> = {
2: "Special judge",
};

export const ProblemVerdictMap: Record<string, string> = {
/**
* Number of Accepted
*/
ac: "Accepted",
/**
* Number of Presentation Error
*/
pe: "Presentation error",
/**
* Number of Wrong Answer
*/
wa: "Wrong answer",
/**
* Number of Time Limit Exceeded
*/
tle: "Time limit exceeded",
/**
* Number of Memory Limit Exceeded
*/
mle: "Memory limit exceeded",
/**
* Number of Compilation Error
*/
ce: "Compile error",
/**
* Number of Runtime Error
*/
re: "Runtime error",
/**
* Number of Output Limit Exceeded
*/
ole: "Output limit exceeded",
/**
* Number of Submission Error
*/
// sube: "Submission Error",
/**
* Number of Can't be Judged
*/
// noj: "Can't be judged",
/**
* Number of In Queue
*/
// inq: number,
/**
* Number of Restricted Function
*/
// rf: "Restricted function",
}

/**
* Data structure returned when querying from url `https://uhunt.onlinejudge.org/api/p/num/:num`
*
Expand Down

0 comments on commit e5bad4b

Please sign in to comment.