bartkaw's blog

By bartkaw, history, 9 months ago, In English,

Hello guys!

Today I'm gonna share with you my code that can help you test your solutions for interactive problems. The checker creates two named pipes, then calls the child process and replaces 0/1 file descriptors to communicate with your solution using this two named pipes.

Here is sample task that I used in my checker: Ehab and another another xor problem

Interactive checker

You can check how this works with correct and incorrect solutions: IncorrectCorrect

This checker works on Ubuntu, and I'm not sure if on the other OS it also works. Please, fell free to comment and have a nice day ;)

  • Vote: I like it
  • +14
  • Vote: I do not like it