Closed minhducsun2002 closed 3 years ago
@minhducsun2002, what do you mean? The verdict parsing is actually a function, giving you the freedom of parsing the score to your liking. No need to enforce bitmask or anything
I mean the responses from the API.
I suggest using 1
, 2
, 4
, ... instead of CE
, WA
, TLE
or so.
In case of multiple verdicts, values representing each distinct verdict can be OR
-ed (like 1
OR
2
= 3
).
Much easier than hardcoding strings like CE
, WA
and TLE
.
It's gonna be hard to extend, and such optimization is not necessary for now. You may want to prototype idea first, since it is not easy to quickly adapt.
Verdicts should be expressed as bit patterns
OR
ed together, allowing quicker checks and easier parsing compared to hardcoded strings.