I'm solving algorithm practice problems in Python.
But I think it's too difficult to input example values for the problem.

Reading from a file is no problem, but is there a way to quickly solve it by simply entering values like this?
If possible, I'm curious if there's a way to use it in both Python and Java.