Pregătire informatică · gimnaziu și liceu
Scrie codul. Trimite-l. Vezi punctajul.
Fiecare sursă C++ e compilată și rulată pe toate testele, cu limită de timp și memorie — exact ca la concurs.
Clasa
Etapa
137 probleme disponibile
Cea mai lungă secvență divizibilă cu k
Antrenament OJI/OLI
Sume parțiale
1s · 64 MB · 10 teste
Cea mai lungă secvență palindrom
Antrenament OJI/OLI
Șiruri de caractere
1s · 64 MB · 10 teste
Cea mai lungă sumă divizibilă
Secvențe (antrenament) · Set 2026
secvențe
2s · 128 MB · 20 teste
Cea mai scurtă secvență de sumă S
Secvențe (antrenament) · Set 2026
secvențe
2s · 128 MB · 20 teste
Cel mai lung drum în buget
Antrenament OJI/OLI · Secvențe 2026
secvențe
2s · 128 MB · 20 teste
Cel mult k valori distincte
Antrenament OJI/OLI
Doi pointeri
1s · 64 MB · 10 teste
Cele mai puține viraje
Antrenament OJI · clasa a 8-a · setul 3
Grafuri
1s · 64 MB · 10 teste
Celule vizitate
Antrenament OJI/OLI
Simulare
1s · 64 MB · 10 teste
Colierul
Antrenament OJI/OLI
Secvențe
1s · 64 MB · 10 teste
Distanța Manhattan maximă
Antrenament OJI/OLI
Matematică
1s · 64 MB · 10 teste
Divizibil cu k
Secvențe (antrenament)
Sume parțiale modulo k
0.3s · 64 MB · 10 teste
dj
ONI 2026 · clasa VIII · subiect oficial
Subiecte oficiale ONI 2026
1.2s · 32 MB · 41 teste
Două ferestre
Secvențe (antrenament)
Fereastră + maxim pe prefix
0.3s · 64 MB · 10 teste
Drumul calului
Antrenament OJI/OLI
Algoritmul lui Lee
1s · 64 MB · 10 teste
Echilibru de paritate maxim
Secvențe (antrenament) · Set 2026
secvențe
2s · 128 MB · 20 teste
Echilibru par-impar
Secvențe (antrenament)
Sume parțiale + prima apariție
0.3s · 64 MB · 10 teste
Elimină un număr
Antrenament OJI/OLI
CMMDC
1s · 64 MB · 10 teste
Exact m impare
Secvențe (antrenament)
Sume parțiale + vector de frecvență
0.3s · 64 MB · 10 teste
Exact S, fără valori negative
Antrenament OJI/OLI · Secvențe 2026
secvențe
2s · 128 MB · 20 teste
Exponențiere rapidă
Antrenament OJI/OLI
Matematică
1s · 64 MB · 10 teste
Festival cu K culori
Antrenament OJI/OLI · Secvențe 2026
secvențe
2s · 128 MB · 20 teste
Întâlniri
Antrenament OJI/OLI
Doi pointeri
1s · 64 MB · 10 teste
Labirint
Antrenament OJI/OLI
Algoritmul lui Lee
1s · 64 MB · 10 teste
Lacuri închise
Antrenament OJI/OLI
Fill / BFS
1s · 64 MB · 10 teste
Lungimea reuniunii
Antrenament OJI/OLI
Sortare
1s · 64 MB · 10 teste
Masa rotundă
Secvențe (antrenament)
Kadane
0.3s · 64 MB · 10 teste
Maximele ferestrelor
Antrenament OJI/OLI · Secvențe 2026
secvențe
2s · 128 MB · 20 teste
Minimele ferestrelor
Antrenament OJI/OLI · Secvențe 2026
secvențe
2s · 128 MB · 20 teste
Muntele
Secvențe (antrenament)
Precalculare stânga/dreapta
0.3s · 64 MB · 10 teste
Numere semiprime
Antrenament OJI/OLI
Ciurul lui Eratostene
1s · 64 MB · 10 teste
Par și impar în echilibru
Secvențe (antrenament) · Set 2026
secvențe
2s · 128 MB · 20 teste
Pătrate și cuburi
Antrenament OJI/OLI
Matematică
1s · 64 MB · 10 teste
Perechi de anagrame
Antrenament OJI/OLI
Șiruri de caractere
1s · 64 MB · 10 teste
Puncte în dreptunghi
Antrenament OJI/OLI
Sume parțiale 2D
1s · 64 MB · 10 teste
Secvență fără duplicat
Secvențe (antrenament) · Set 2026
secvențe
2s · 128 MB · 20 teste
Secvențe cu suma cel mult S
Antrenament OJI/OLI
Doi pointeri
1s · 64 MB · 10 teste
Secvențe echilibrate
Antrenament OJI/OLI
Sume parțiale
1s · 64 MB · 10 teste
Șirul 1 2 2 3 3 3
Antrenament OJI/OLI
Matematică
1s · 64 MB · 10 teste
Șmenul lui Mars în matrice
Antrenament OJI/OLI
Mars 2D
1s · 64 MB · 10 teste
Suma cifrelor egală cu k
Antrenament OJI/OLI
Cifre
1s · 64 MB · 10 teste
Suma tuturor sumelor
Secvențe (antrenament)
Contribuția fiecărui element
0.3s · 64 MB · 10 teste
Suma zero
Secvențe (antrenament)
Sume parțiale + prima apariție
0.3s · 64 MB · 10 teste
Sume în submatrice
Antrenament OJI/OLI
Sume parțiale 2D
1s · 64 MB · 10 teste
Toate etichetele
Antrenament OJI/OLI · Secvențe 2026
secvențe
2s · 128 MB · 20 teste
Total divizibil
Secvențe (antrenament) · Set 2026
secvențe
2s · 128 MB · 20 teste
Un singur zero
Antrenament OJI/OLI · Secvențe 2026
secvențe
2s · 128 MB · 20 teste
Următoarea aranjare
Antrenament OJI/OLI
Permutări
1s · 64 MB · 10 teste
Următorul element mai mare
Antrenament OJI/OLI
Stivă
1s · 64 MB · 10 teste
Valori distincte în ferestre
Antrenament OJI/OLI
Fereastră glisantă
1s · 64 MB · 10 teste
zapada
ONI 2026 · clasa VIII · subiect oficial
Subiecte oficiale ONI 2026
0.29s · 8 MB · 33 teste
Amplitudine mică
Antrenament OJI/OLI
Deque
1s · 64 MB · 10 teste
Câte intervale stabile
Antrenament OJI/OLI · Secvențe 2026
secvențe
2s · 128 MB · 20 teste
Cel mai stabil interval
Antrenament OJI/OLI · Secvențe 2026
secvențe
2s · 128 MB · 20 teste
Cel puțin K zile
Antrenament OJI/OLI · Secvențe 2026
secvențe
2s · 128 MB · 20 teste
Două ferestre fără suprapunere
Antrenament OJI/OLI · Secvențe 2026
secvențe
2s · 128 MB · 20 teste
Dreptunghiul din histogramă
Antrenament OJI/OLI
Stivă
1s · 64 MB · 10 teste
Exact K culori
Antrenament OJI/OLI · Secvențe 2026
secvențe
2s · 128 MB · 20 teste
Fracția zecimală
Antrenament OJI/OLI
Simulare
1s · 64 MB · 10 teste
Frânghiile
Antrenament OJI/OLI
Căutare binară
1s · 64 MB · 10 teste
Maximul în fiecare fereastră
Antrenament OJI/OLI
Deque
1s · 64 MB · 10 teste
| Problemă | Sursă | Dificultate | Timp | Memorie | Teste |
|---|---|---|---|---|---|
| Cea mai lungă secvență divizibilă cu k | Antrenament OJI/OLI Sume parțiale | ★★★★★ | 1s | 64 MB | 10 |
| Cea mai lungă secvență palindrom | Antrenament OJI/OLI Șiruri de caractere | ★★★★★ | 1s | 64 MB | 10 |
| Cea mai lungă sumă divizibilă | Secvențe (antrenament) · Set 2026 secvențe | ★★★★★ | 2s | 128 MB | 20 |
| Cea mai scurtă secvență de sumă S | Secvențe (antrenament) · Set 2026 secvențe | ★★★★★ | 2s | 128 MB | 20 |
| Cel mai lung drum în buget | Antrenament OJI/OLI · Secvențe 2026 secvențe | ★★★★★ | 2s | 128 MB | 20 |
| Cel mult k valori distincte | Antrenament OJI/OLI Doi pointeri | ★★★★★ | 1s | 64 MB | 10 |
| Cele mai puține viraje | Antrenament OJI · clasa a 8-a · setul 3 Grafuri | ★★★★★ | 1s | 64 MB | 10 |
| Celule vizitate | Antrenament OJI/OLI Simulare | ★★★★★ | 1s | 64 MB | 10 |
| Colierul | Antrenament OJI/OLI Secvențe | ★★★★★ | 1s | 64 MB | 10 |
| Distanța Manhattan maximă | Antrenament OJI/OLI Matematică | ★★★★★ | 1s | 64 MB | 10 |
| Divizibil cu k | Secvențe (antrenament) Sume parțiale modulo k | ★★★★★ | 0.3s | 64 MB | 10 |
| dj | ONI 2026 · clasa VIII · subiect oficial Subiecte oficiale ONI 2026 | ★★★★★ | 1.2s | 32 MB | 41 |
| Două ferestre | Secvențe (antrenament) Fereastră + maxim pe prefix | ★★★★★ | 0.3s | 64 MB | 10 |
| Drumul calului | Antrenament OJI/OLI Algoritmul lui Lee | ★★★★★ | 1s | 64 MB | 10 |
| Echilibru de paritate maxim | Secvențe (antrenament) · Set 2026 secvențe | ★★★★★ | 2s | 128 MB | 20 |
| Echilibru par-impar | Secvențe (antrenament) Sume parțiale + prima apariție | ★★★★★ | 0.3s | 64 MB | 10 |
| Elimină un număr | Antrenament OJI/OLI CMMDC | ★★★★★ | 1s | 64 MB | 10 |
| Exact m impare | Secvențe (antrenament) Sume parțiale + vector de frecvență | ★★★★★ | 0.3s | 64 MB | 10 |
| Exact S, fără valori negative | Antrenament OJI/OLI · Secvențe 2026 secvențe | ★★★★★ | 2s | 128 MB | 20 |
| Exponențiere rapidă | Antrenament OJI/OLI Matematică | ★★★★★ | 1s | 64 MB | 10 |
| Festival cu K culori | Antrenament OJI/OLI · Secvențe 2026 secvențe | ★★★★★ | 2s | 128 MB | 20 |
| Întâlniri | Antrenament OJI/OLI Doi pointeri | ★★★★★ | 1s | 64 MB | 10 |
| Labirint | Antrenament OJI/OLI Algoritmul lui Lee | ★★★★★ | 1s | 64 MB | 10 |
| Lacuri închise | Antrenament OJI/OLI Fill / BFS | ★★★★★ | 1s | 64 MB | 10 |
| Lungimea reuniunii | Antrenament OJI/OLI Sortare | ★★★★★ | 1s | 64 MB | 10 |
| Masa rotundă | Secvențe (antrenament) Kadane | ★★★★★ | 0.3s | 64 MB | 10 |
| Maximele ferestrelor | Antrenament OJI/OLI · Secvențe 2026 secvențe | ★★★★★ | 2s | 128 MB | 20 |
| Minimele ferestrelor | Antrenament OJI/OLI · Secvențe 2026 secvențe | ★★★★★ | 2s | 128 MB | 20 |
| Muntele | Secvențe (antrenament) Precalculare stânga/dreapta | ★★★★★ | 0.3s | 64 MB | 10 |
| Numere semiprime | Antrenament OJI/OLI Ciurul lui Eratostene | ★★★★★ | 1s | 64 MB | 10 |
| Par și impar în echilibru | Secvențe (antrenament) · Set 2026 secvențe | ★★★★★ | 2s | 128 MB | 20 |
| Pătrate și cuburi | Antrenament OJI/OLI Matematică | ★★★★★ | 1s | 64 MB | 10 |
| Perechi de anagrame | Antrenament OJI/OLI Șiruri de caractere | ★★★★★ | 1s | 64 MB | 10 |
| Puncte în dreptunghi | Antrenament OJI/OLI Sume parțiale 2D | ★★★★★ | 1s | 64 MB | 10 |
| Secvență fără duplicat | Secvențe (antrenament) · Set 2026 secvențe | ★★★★★ | 2s | 128 MB | 20 |
| Secvențe cu suma cel mult S | Antrenament OJI/OLI Doi pointeri | ★★★★★ | 1s | 64 MB | 10 |
| Secvențe echilibrate | Antrenament OJI/OLI Sume parțiale | ★★★★★ | 1s | 64 MB | 10 |
| Șirul 1 2 2 3 3 3 | Antrenament OJI/OLI Matematică | ★★★★★ | 1s | 64 MB | 10 |
| Șmenul lui Mars în matrice | Antrenament OJI/OLI Mars 2D | ★★★★★ | 1s | 64 MB | 10 |
| Suma cifrelor egală cu k | Antrenament OJI/OLI Cifre | ★★★★★ | 1s | 64 MB | 10 |
| Suma tuturor sumelor | Secvențe (antrenament) Contribuția fiecărui element | ★★★★★ | 0.3s | 64 MB | 10 |
| Suma zero | Secvențe (antrenament) Sume parțiale + prima apariție | ★★★★★ | 0.3s | 64 MB | 10 |
| Sume în submatrice | Antrenament OJI/OLI Sume parțiale 2D | ★★★★★ | 1s | 64 MB | 10 |
| Toate etichetele | Antrenament OJI/OLI · Secvențe 2026 secvențe | ★★★★★ | 2s | 128 MB | 20 |
| Total divizibil | Secvențe (antrenament) · Set 2026 secvențe | ★★★★★ | 2s | 128 MB | 20 |
| Un singur zero | Antrenament OJI/OLI · Secvențe 2026 secvențe | ★★★★★ | 2s | 128 MB | 20 |
| Următoarea aranjare | Antrenament OJI/OLI Permutări | ★★★★★ | 1s | 64 MB | 10 |
| Următorul element mai mare | Antrenament OJI/OLI Stivă | ★★★★★ | 1s | 64 MB | 10 |
| Valori distincte în ferestre | Antrenament OJI/OLI Fereastră glisantă | ★★★★★ | 1s | 64 MB | 10 |
| zapada | ONI 2026 · clasa VIII · subiect oficial Subiecte oficiale ONI 2026 | ★★★★★ | 0.29s | 8 MB | 33 |
| Amplitudine mică | Antrenament OJI/OLI Deque | ★★★★★ | 1s | 64 MB | 10 |
| Câte intervale stabile | Antrenament OJI/OLI · Secvențe 2026 secvențe | ★★★★★ | 2s | 128 MB | 20 |
| Cel mai stabil interval | Antrenament OJI/OLI · Secvențe 2026 secvențe | ★★★★★ | 2s | 128 MB | 20 |
| Cel puțin K zile | Antrenament OJI/OLI · Secvențe 2026 secvențe | ★★★★★ | 2s | 128 MB | 20 |
| Două ferestre fără suprapunere | Antrenament OJI/OLI · Secvențe 2026 secvențe | ★★★★★ | 2s | 128 MB | 20 |
| Dreptunghiul din histogramă | Antrenament OJI/OLI Stivă | ★★★★★ | 1s | 64 MB | 10 |
| Exact K culori | Antrenament OJI/OLI · Secvențe 2026 secvențe | ★★★★★ | 2s | 128 MB | 20 |
| Fracția zecimală | Antrenament OJI/OLI Simulare | ★★★★★ | 1s | 64 MB | 10 |
| Frânghiile | Antrenament OJI/OLI Căutare binară | ★★★★★ | 1s | 64 MB | 10 |
| Maximul în fiecare fereastră | Antrenament OJI/OLI Deque | ★★★★★ | 1s | 64 MB | 10 |