Testing Interactive Problems??

Revision en1, by low_, 2019-01-18 04:49:21

Recently, I find there are many interesting interactive problems on many platforms, including Codeforces. Usually, the example testcases and generated cases are rather small and it is easy for me to type in and test it directly on the C++ IDE console. But, if the tests are as big as in 1100D - Dasha and Chess, I can't afford to spend hours typing that in (who does that anyway ==). Of course test it directly by submitting it is a solution to this problem, but what if there is a small bug in my code, how can I find it?

I find this blog rather interesting: https://mirror.codeforces.com/blog/entry/49490. It said something about the Croupier (the Interactor), which is exactly what I'm looking for. But it is implemented in Python, so there are many unknown syntax for me, and I'm unable to translate it to C++ to use. Can anyone help me out?

Tags interactive, interactive problem, competitive programming, testing, interactive testing

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English low_ 2019-01-18 04:49:21 863 Initial revision (published)