In case you're not so familiar with partial-judged problems, this note intoduces this mechanism in brief.
Normally, on the online judge, you're asked to submit a piece of complete codes, say Main.c(pp)
, that contains the main()
function. The judge would compile your codes like:
and execute the binary with the testcases.
Nevertheless, for partial-judged problems, you would be given the partial judge header and code, say function.h
and parJudge.c(pp)
, and you're required to implement the functions (or the classes, …) declared in the header. The judge would compile your codes like:
Technically, the compiler would compile the partial judge code and the codes you submited to two object files respectively, and then link the objects to create the binary. You will learn the detail in this course.
Suppose the partial judge header function.h
:
And the partial judge code parJudge.c
:
You should implement the function hello()
in another .c
file: