#522
kSecventa1
Se dă un vector cu n
elemente, numere naturale, și un număr k
. Să se stabilească dacă în vector există două secvențe de lungime k
identice.
Problema | kSecventa1 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51731260 | Utilizator | |
Fișier | ksecventa1.cpp | Dimensiune | 1.74 KB |
Data încărcării | 10 August 2024, 10:58 | Scor / rezultat | Eroare de compilare |
ksecventa1.cpp:2:10: error: stray '#' in program Problema #522 – kSecventa1 – Rezolvari PBInfo ^ ksecventa1.cpp:2:1: error: stray '\342' in program Problema #522 – kSecventa1 – Rezolvari PBInfo ^ ksecventa1.cpp:2:1: error: stray '\200' in program ksecventa1.cpp:2:1: error: stray '\223' in program ksecventa1.cpp:2:1: error: stray '\342' in program ksecventa1.cpp:2:1: error: stray '\200' in program ksecventa1.cpp:2:1: error: stray '\223' in program ksecventa1.cpp:4:1: error: stray '\310' in program Cerința ^ ksecventa1.cpp:4:1: error: stray '\233' in program ksecventa1.cpp:5:1: error: stray '\304' in program Se dă un vector cu n elemente, numere naturale, și un număr k. Să se stabilească dacă în vector există două secvențe de lungime k identice. ^ ksecventa1.cpp:5:1: error: stray '\203' in program ksecventa1.cpp:5:1: error: stray '\310' in program ksecventa1.cpp:5:1: error: stray '\231' in program ksecventa1.cpp:5:1: error: stray '\304' in program ksecventa1.cpp:5:1: error: stray '\203' in program ksecventa1.cpp:5:1: error: stray '\304' in program ksecventa1.cpp:5:1: error: stray '\203' in program ksecventa1.cpp:5:1: error: stray '\304' in program ksecventa1.cpp:5:1: error: stray '\203' in program ksecventa1.cpp:5:1: error: stray '\304' in program ksecventa1.cpp:5:1: error: stray '\203' in program ksecventa1.cpp:5:1: error: stray '\303' in program ksecventa1.cpp:5:1: error: stray '\256' in program ksecventa1.cpp:5:1: error: stray '\304' in program ksecventa1.cpp:5:1: error: stray '\203' in program ksecventa1.cpp:5:1: error: stray '\304' in program ksecventa1.cpp:5:1: error: stray '\203' in program ksecventa1.cpp:5:1: error: stray '\310' in program ksecventa1.cpp:5:1: error: stray '\233' in program ksecventa1.cpp:8:1: error: stray '\310' in program Programul citește de la tastatură numerele n și k, iar apoi n numere naturale, reprezentând elementele vectorului. ^ ksecventa1.cpp:8:1: error: stray '\231' in program ksecventa1.cpp:8:1: error: stray '\304' in program ksecventa1.cpp:8:1: error: stray '\203' in program ksecventa1.cpp:8:1: error: stray '\310' in program ksecventa1.cpp:8:1: error: stray '\231' in program ksecventa1.cpp:8:1: error: stray '\303' in program ksecventa1.cpp:8:1: error: stray '\242' in program ksecventa1.cpp:10:1: error: stray '\310' in program Date de ieșire ^ ksecventa1.cpp:10:1: error: stray '\231' in program ksecventa1.cpp:11:1: error: stray '\310' in program Programul va afișa pe ecran numerele i j, i < j reprezentând pozițiile de început a două secvențe de lungime k identice, dacă există două astfel de secvențe, sau mesajul NU, dacă nu există două astfel de secvențe. ^ ksecventa1.cpp:11:1: error: stray '\231' in program ksecventa1.cpp:11:1: error: stray '\303' in program ksecventa1.cpp:11:1: error: stray '\242' in program ksecventa1.cpp:11:1: error: stray '\310' in program ksecventa1.cpp:11:1: error: stray '\233' in program ksecventa1.cpp:11:1: error: stray '\303' in program ksecventa1.cpp:11:1: error: stray '\256' in program ksecventa1.cpp:11:1: error: stray '\304' in program ksecventa1.cpp:11:1: error: stray '\203' in program ksecventa1.cpp:11:1: error: stray '\310' in program ksecventa1.cpp:11:1: error: stray '\233' in program ksecventa1.cpp:11:1: error: stray '\304' in program ksecventa1.cpp:11:1: error: stray '\203' in program ksecventa1.cpp:11:1: error: stray '\304' in program ksecventa1.cpp:11:1: error: stray '\203' in program ksecventa1.cpp:11:1: error: stray '\304' in program ksecventa1.cpp:11:1: error: stray '\203' in program ksecventa1.cpp:11:1: error: stray '\310' in program ksecventa1.cpp:11:1: error: stray '\233' in program ksecventa1.cpp:11:1: error: stray '\304' in program ksecventa1.cpp:11:1: error: stray '\203' in program ksecventa1.cpp:11:1: error: stray '\304' in program ksecventa1.cpp:11:1: error: stray '\203' in program ksecventa1.cpp:11:1: error: stray '\304' in program ksecventa1.cpp:11:1: error: stray '\203' in program ksecventa1.cpp:11:1: error: stray '\310' in program ksecventa1.cpp:11:1: error: stray '\233' in program ksecventa1.cpp:13:1: error: stray '\304' in program Dacă există mai multe perechi de secvențe identice se vor considera cele cu numerele de ordine i j minime. ^ ksecventa1.cpp:13:1: error: stray '\203' in program ksecventa1.cpp:13:1: error: stray '\304' in program ksecventa1.cpp:13:1: error: stray '\203' in program ksecventa1.cpp:13:1: error: stray '\310' in program ksecventa1.cpp:13:1: error: stray '\233' in program ksecventa1.cpp:15:1: error: stray '\310' in program Restricții și precizări ^ ksecventa1.cpp:15:1: error: stray '\233' in program ksecventa1.cpp:15:1: error: stray '\310' in program ksecventa1.cpp:15:1: error: stray '\231' in program ksecventa1.cpp:15:1: error: stray '\304' in program ksecventa1.cpp:15:1: error: stray '\203' in program ksecventa1.cpp:16:1: error: stray '\342' in program 1 ≤ n ≤ 1000 ^ ksecventa1.cpp:16:1: error: stray '\211' in program ksecventa1.cpp:16:1: error: stray '\244' in program ksecventa1.cpp:16:1: error: stray '\342' in program ksecventa1.cpp:16:1: error: stray '\211' in program ksecventa1.cpp:16:1: error: stray '\244' in program ksecventa1.cpp:17:1: error: stray '\342' in program 1 ≤ k ≤ 15 ^ ksecventa1.cpp:17:1: error: stray '\211' in program ksecventa1.cpp:17:1: error: stray '\244' in program ksecventa1.cpp:17:1: error: stray '\342' in program ksecventa1.cpp:17:1: error: stray '\211' in program ksecventa1.cpp:17:1: error: stray '\244' in program ksecventa1.cpp:18:1: error: stray '\303' in program cele n numere citite vor fi mai mici decât 1000 ^ ksecventa1.cpp:18:1: error: stray '\242' in program ksecventa1.cpp:25:1: error: stray '\310' in program Ieșire ^ ksecventa1.cpp:25:1: error: stray '\231' in program ksecventa1.cpp:2:1: error: 'Problema' does not name a type Problema #522 – kSecventa1 – Rezolvari PBInfo ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema kSecventa1 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.