Блог пользователя Noam527

Автор Noam527, история, 7 лет назад, По-английски

This is a quick question; I'd like to know if there is any place (some online judge possibly) in which I could put 2 programs of mine to interact with each other, just like interactive problems work here (the judge's program interacts with the submitted program).

And if there seems to be none, I'm wondering what's the best way I could implement something to do this for me.

Thanks :).

  • Проголосовать: нравится
  • +26
  • Проголосовать: не нравится

»
7 лет назад, # |
Rev. 2   Проголосовать: нравится +54 Проголосовать: не нравится

If you are on Linux:

mkfifo fifo
(./solution < fifo) | (./interactor > fifo)
»
7 лет назад, # |
  Проголосовать: нравится +18 Проголосовать: не нравится

Here is a cross-platform runtwo tool used a while ago on a marathon contest. There are a D version and a Python version, both should work on Windows and Linux. We use a similar tool locally for problem setting.

Example scripts for batch testing can be found in the directory above.