Hi All,
Why should we choose C++ for Competitive Programming?
Please give the detailed explanation with reasons. Thanks In Advance
Warm Regards, Akshay Kumar Software Developer 9310279350
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
9 | nor | 153 |
Hi All,
Why should we choose C++ for Competitive Programming?
Please give the detailed explanation with reasons. Thanks In Advance
Warm Regards, Akshay Kumar Software Developer 9310279350
Название |
---|
It is very fast, noticeably faster than Java, C#, Python, Kotlin etc. Most competitions only have one time limit, and participating in C++ gives you an advantage. Even if competitions have separate time limits for slower languages, it is often less reliable (and from a problemsetter's POV, a major headache).
Some other fast languages like C and (or assembly :P) are unsuitable, because programming in them is much less convenient — you lose all of C++-s standard library, which is pretty important.
It is the industry standard, so to speak. Almost all CP-specific libraries, tutorials and code examples are written in C++. I can copy-paste someone else's FFT, dynamic CHT, geometry lib or whatever. If I participated in something else, there's a good chance that I'd have to implement a lot myself. Rust or D might be comparable to (or better than) C++ in terms of speed and standard library, but they have nothing like this kind of support.
It is supported on every platform.
Currently I see no reason to not choose C++. The only possible reason might be that other languages are more convenient to write in, but the benefits of C++ far outweigh this.