r/javahelp 15d 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 15d 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/VacationGullible5716 15d ago

Thanks. I haven't solved a single problem on codeforces though I'm doing leetcode regularly and solved around 400 qs + 12 contest. As you've suggested based on my situation i should go with java. However, main question isn't about language instead I'm struggling to transit from classic leetcode problem to codeforces story line problem, i don't know why but i struggle to understand the problem so thinking about the solution is way too far. Any help with this?

2

u/Sure-Willow5490 15d ago

yeah totally , but i think it comes with practise.