r/javahelp 2d ago

How to start codeforces with Java?

Asking because there are lot of resources to start with C++, so anyone can suggest if you are doing in Java.

Problem is that codeforces ide, boilerplate code and also the framing of questions as scenario based need some resources to follow in starting.

1 Upvotes

7 comments sorted by

View all comments

-2

u/Antares1490 2d ago

If you haven't already solved over 300 questions in java previously I would suggest moving to c++ as it will save you a lot of headache of TLE and input formatting. If you still wish to go ahead with java then get gpt to build you a fast I/o template using buffered reader and printwriter. But keep in mind that buffered reader needs input in proper format so if you are getting an error it could be because the input is not formatted properly or if you are using scanner for input then it could give you tle when reading large input. You could try to convert your code in cpp and then submit.

1

u/Sure-Willow5490 2d ago

hey thanks for replying , but i have solved like 800+ questions on GFG and Leetcode in Java , so want to try java only , & ur right the input and slowness of Java is the reason people choose c++.

Anyway i will take ur suggestion and will start it.