Skip to content

How to use the template to take input where the input is supposed to be EOF terminated? #1

Closed
@leimath

Description

@leimath

I am using this template and I was trying to solve this https://open.kattis.com/problems/countingstars.
The problem is that it is expected that the input will end at EOF. Can it be done solely with the code in the template? Or do I have to make a new method to detect (e.g, like Scanner's .hasNext())?

I apologize if this is something trivial. I am new to java.

Edit: Also any tips on how to practice/in what sequence to do topics to be able to solve more difficult problems?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions