Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок+ 4
which language should I use for competitive programming? Is it ok if I use python?
I am a beginner and want to go for competitive programming but not clear about which language to choose.
6 ответов
+ 6
I would recommend learning C++ for competitive due to same reasons written by Arsenic, python is good when too large numbers are involved but in most contests constraints are made to not give any unfair advantage by language.
Also, it is easier to get C++ solutions as most of competitive programmers are using C++ only(probably around 80%).
+ 2
Python is generally not recommended for competitive programming as it is way slower as compared to C++ and java.
C++ is by far the the most popular language of choice for competitive programmers across the world because of its speed and powerful standard template library
+ 2
People who suggests c++ really did not think it through !
If you are a beginner and try c++ you will just ended up quiting or it will take years to really master the language.
Python has is cons, but when it comes to understanding coding and problem solving, python is the best.
Once you master one language, sure, go learn java or c++
+ 2
Gaëtan Grond that's not always the case. My first language was C++ and did not found any difficulty in learning it.
+ 2
It varies from person to person.
You should try any of these and after trying for few days.
Select one in which you are comfortable.
+ 1
The languages you can use for competitive programming are Java, C++.