>_ Collaborare

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.

103 probleme disponibile

Este palindrom? (OJI 8)

Antrenament OJI · clasa a 8-a

Subprograme

2s · 256 MB · 20 teste

★★★★★

Factorialul (OJI 8)

Antrenament OJI · clasa a 8-a

Subprograme

2s · 256 MB · 20 teste

★★★★★

Frecvența literelor · set 2 (OJI 8)

Pregătire OJI · clasa a 8-a

Șiruri de caractere

2s · 256 MB · 20 teste

★★★★★

Pătrat perfect (OJI 8)

Antrenament OJI · clasa a 8-a

Subprograme

2s · 256 MB · 20 teste

★★★★★

Produsul cifrelor (OJI 8)

Antrenament OJI · clasa a 8-a

Subprograme

2s · 256 MB · 20 teste

★★★★★

Suma a două fracții · set 2 (OJI 8)

Pregătire OJI · clasa a 8-a

Matematică

2s · 256 MB · 20 teste

★★★★★

Suma cifrelor (OJI 8)

Antrenament OJI · clasa a 8-a

Subprograme

2s · 256 MB · 20 teste

★★★★★

Cifre alternante · set 2 (OJI 8)

Pregătire OJI · clasa a 8-a

Subprograme

2s · 256 MB · 20 teste

★★★★★

Comprimarea unui cuvânt (OJI 8)

Antrenament OJI · clasa a 8-a

Șiruri de caractere

2s · 256 MB · 20 teste

★★★★★

Divizorii comuni

Antrenament OJI · clasa a 8-a · setul 3

CMMDC

1s · 64 MB · 10 teste

★★★★★

Masa rotundă

Antrenament OJI · clasa a 8-a · setul 3

Vectori

1s · 64 MB · 10 teste

★★★★★

Numere perfecte (OJI 8)

Antrenament OJI · clasa a 8-a

Matematică

2s · 256 MB · 20 teste

★★★★★

Permutare de cifre · set 2 (OJI 8)

Pregătire OJI · clasa a 8-a

Subprograme

2s · 256 MB · 20 teste

★★★★★

Rotirile numărului

Antrenament OJI · clasa a 8-a · setul 3

Cifre

1s · 64 MB · 10 teste

★★★★★

Suma divizorilor (OJI 8)

Antrenament OJI · clasa a 8-a

Matematică

2s · 256 MB · 20 teste

★★★★★

algocoin

OJI 2026 · clasa 8 · subiect oficial

Subiecte oficiale OJI 2026

0.2s · 8 MB · 24 teste

★★★★★

Factori primi distincți (OJI 8)

Antrenament OJI · clasa a 8-a

Subprograme

2s · 256 MB · 20 teste

★★★★★

Numere cu exact k factori primi distincți

Antrenament OJI · clasa a 8-a · setul 3

Ciurul lui Eratostene

1s · 64 MB · 10 teste

★★★★★

pisicesc

OJI 2026 · clasa 8 · subiect oficial

Subiecte oficiale OJI 2026

0.1s · 8 MB · 26 teste

★★★★★

Superprim (OJI 8)

Antrenament OJI · clasa a 8-a

Subprograme

2s · 256 MB · 20 teste

★★★★★

A k-a cifră

Antrenament OJI/OLI

Matematică

1s · 64 MB · 10 teste

★★★★★

Atinge pragul repede

Antrenament OJI/OLI · Secvențe 2026

secvențe

2s · 128 MB · 20 teste

★★★★★

Câte drumuri ating pragul

Antrenament OJI/OLI · Secvențe 2026

secvențe

2s · 128 MB · 20 teste

★★★★★

Câte drumuri în buget

Antrenament OJI/OLI · Secvențe 2026

secvențe

2s · 128 MB · 20 teste

★★★★★

Câte ferestre cu K culori

Antrenament OJI/OLI · Secvențe 2026

secvențe

2s · 128 MB · 20 teste

★★★★★

Câte secvențe de sumă S

Secvențe (antrenament) · Set 2026

secvențe

2s · 128 MB · 20 teste

★★★★★

Câte secvențe fără duplicat

Secvențe (antrenament) · Set 2026

secvențe

2s · 128 MB · 20 teste

★★★★★

Cea mai lungă secvență de sumă S

Secvențe (antrenament) · Set 2026

secvențe

2s · 128 MB · 20 teste

★★★★★

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

★★★★★

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

★★★★★

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

★★★★★

Numărătoarea

Antrenament OJI/OLI

Simulare

1s · 64 MB · 10 teste

★★★★★

Perechi în dezordine

Antrenament OJI/OLI · Secvențe 2026

secvențe

2s · 128 MB · 20 teste

★★★★★

Selecție fără coborâri

Antrenament OJI/OLI · Secvențe 2026

secvențe

2s · 128 MB · 20 teste

★★★★★

Selecție în creștere

Antrenament OJI/OLI · Secvențe 2026

secvențe

2s · 128 MB · 20 teste

★★★★★

Șterge k cifre

Antrenament OJI/OLI

Stivă

1s · 64 MB · 10 teste

★★★★★

Submatricea de sumă maximă

Antrenament OJI/OLI

Kadane

1s · 64 MB · 10 teste

★★★★★

Subșir crescător maximal

Antrenament OJI/OLI

Programare dinamică

1s · 64 MB · 10 teste

★★★★★

Suma exactă

Secvențe (antrenament)

Sume parțiale + vector de frecvență

0.3s · 64 MB · 10 teste

★★★★★

Suma minimelor

Antrenament OJI/OLI

Deque

1s · 64 MB · 10 teste

★★★★★

Suma tuturor divizorilor

Antrenament OJI/OLI

Divizori

1s · 64 MB · 10 teste

★★★★★

Terenul dreptunghiular

Antrenament OJI/OLI

Stivă

1s · 64 MB · 10 teste

★★★★★

Transportul

Antrenament OJI/OLI

Căutare binară

1s · 64 MB · 10 teste

★★★★★

Traseu pe cerc

Antrenament OJI/OLI · Secvențe 2026

secvențe

2s · 128 MB · 20 teste

★★★★★

Triunghiuri

Antrenament OJI/OLI

Doi pointeri

1s · 64 MB · 10 teste

★★★★★

Turnuri de cuburi

Antrenament OJI/OLI

Căutare binară

1s · 64 MB · 10 teste

★★★★★

Următorul palindrom

Antrenament OJI/OLI

Cifre

1s · 64 MB · 10 teste

★★★★★

Valori consecutive în interval

Antrenament OJI/OLI · Secvențe 2026

secvențe

2s · 128 MB · 20 teste

★★★★★