I am trying to set up a custom checker on HackerRank for an interactive problem(like the one here : https://mirror.codeforces.com/blog/entry/45307). Can anyone suggest how to go about handling the interaction with the judge? I have found a sample checker, which given the user's output, checks whether the participant has outputted 4 or more prime numbers. If so, the solution is accepted else rejected.
But, I cannot understand how to handle the interaction with the judge? What I want to do is write something to the test case input file and the user reads that and then performs computation with that value. Does writing to the test case input path work?
A sample interactive binary search checker if provided would be really helpful
Thank You