Answer the question
In order to leave comments, you need to log in
What is the best language for olympiads?
Hello!
Now I am in the 10th grade and next year I plan to participate in programming olympiads (not all-Russian), because. I learned that if you become a winner, you will get 100 points in the exam. I understand that it's just a dream for now, but I have +-a year to get WELL (hopefully) prepared and I'm ready to do it. The first thing that came up was the question of language. In the future (dada of dreams), I would like to enter a university and choose the direction (or just a profession) of Data Science, where Python (and R) is needed. But at the same time, I studied C ++ for about a month and I liked it, but gave it up, because. there was no motivation.
And here is the question before me: what language to study in order to use Python or C ++ at the Olympiads?
It will be unusual to switch to Python from C ++, and I don’t really like Python itself (at first glance), but at the same time, if I study C ++ and choose Data Science in the future, then I simply won’t need it ( I think so, if I'm wrong, then I apologize). Also, Python is faster to write code, but it is slow, and C ++ is just the opposite.
Dear experts, I would like to hear your opinions and suggestions with pleasure. Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Learn what you know better, if you know c++ but not paisan, then learn c++ better, you will get more knowledge and you can achieve something, otherwise read about paisan and c++ and you will understand
Programming olympiads require skills at the junior level. There, knowledge of solving various algorithms is more important than an in-depth study of a programming language.
Therefore, at a simple level, both C ++ and python can be mastered quickly. Learn both, write the same thing in both languages, you will get an idea of different approaches and possibilities.
Specialization is needed later.
Better than Python, because it is objectively simpler than pluses and will allow you to concentrate on solving the problem, and not on a solution formalization tool. This means that you will have more time to master typical algorithms and data structures.
It's no secret that the so-called sports programming is about the ability to understand what category a task belongs to, quickly see the pattern and write some low-quality code to pass the tests. That's all.
Don't worry about speed. In Olympiad problems, the complexity of the algorithm will play a big role. If you really need it, then read about how to optimize the execution of a program in Python from the point of view of the programming language.
With real practical problems, where C ++ will be more profitable to choose in terms of the speed of the program and the amount of resource consumption, you probably will not encounter the next 10 years, if at all.
In terms of DS/ML (and other fancy stuff in the field), Python is clearly more widely used than C++. Well, anything like R.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question