Your program should always read/write to STDIN/STDOUT. Depending on the programming language, this can be done in multiple ways.
Here follows some examples how to handle input and output in Kattis.
APL
C
C++
C#
Java
JavaScript on Node.js
JavaScript on SpiderMonkey
PHP
Python 3:
TypeScript:
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article