Competitive programming
Në shqip: Programimi garues
ShpjegimiSQ
Programimi garues janë garat ku zgjidh probleme algoritmike sa më shpejt dhe me kod sa më efikas — si olimpiadat e informatikës, Codeforces ose ICPC. C++ është gjuha më e përdorur aty, falë shpejtësisë dhe STL-së.
EnglishEN
Competitive programming is contests where you solve algorithm problems as fast as possible with code that's as efficient as possible — like informatics olympiads, Codeforces or ICPC. C++ is the most-used language there, thanks to its speed and the STL.
Si ta mendosh
Si gara e shahut me orë: s'mjafton të gjesh lëvizjen e duhur, duhet ta gjesh brenda kohës.
Lexoje në anglisht
Like speed chess: finding the right move isn't enough, you have to find it before the clock runs out.
Shembull kodicpp
#include <bits/stdc++.h>
using namespace std;
int main() { int n; cin >> n; cout << n * (n + 1) / 2; }