Detalii evaluare #64761211

Rezumat problemă

#4651

Fie x[1], x[2], ..., x[N] un șir de N numere naturale. Două poziții i și j, cu 1 ≤ i ≤ j ≤ N, definesc secvența [i, j] care va conține numerele x[i], x[i + 1], ..., x[j]. O secvență [i, j] cu proprietatea că suma tuturor elementelor din secvență are cifra de control egală cu 9 o vom denumi secv9. Scrieţi un program care, cunoscând N, numărul de elemente din șir, respectiv x[1], x[2], ..., x[N], elementele din șir, rezolvă următoarele două cerințe:

  • afișează lungimea maximă a unei secvențe secv9;
  • afișează numărul de secvențe secv9 din șir.

Detalii

Problema secv9 Operații I/O secv9.in/secv9.out
Limita timp 0.3 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #64761211 Utilizator Cristache Georgiana (georgiana_cristache)
Fișier secv9.py3 Dimensiune 558 B
Data încărcării 28 Mai 2026, 12:30 Scor/rezultat 0 puncte

Evaluare

Mesaj compilare



Rezultat evaluare

Test Timp Mesaj evaluare Scor posibil Scor obținut
1 0.027 secunde Exited with error status 1 1 0
2 0.022 secunde Exited with error status 1 1 0
3 0.019 secunde Exited with error status 1 1 0
4 0.025 secunde Exited with error status 1 1 0
5 0.02 secunde Exited with error status 1 2 0
6 0.02 secunde Exited with error status 1 2 0
7 0.02 secunde Exited with error status 1 2 0
8 0.02 secunde Exited with error status 1 2 0
9 0.021 secunde Exited with error status 1 3 0
10 0.02 secunde Exited with error status 1 3 0
11 0.023 secunde Exited with error status 1 3 0
12 0.033 secunde Exited with error status 1 3 0
13 0.025 secunde Exited with error status 1 4 0
14 0.027 secunde Exited with error status 1 4 0
15 0.027 secunde Exited with error status 1 4 0
16 0.026 secunde Exited with error status 1 4 0
17 0.019 secunde Exited with error status 1 2 0
18 0.02 secunde Exited with error status 1 2 0
19 0.02 secunde Exited with error status 1 2 0
20 0.029 secunde Exited with error status 1 2 0
21 0.027 secunde Exited with error status 1 2 0
22 0.028 secunde Exited with error status 1 2 0
23 0.025 secunde Exited with error status 1 2 0
24 0.02 secunde Exited with error status 1 2 0
25 0.02 secunde Exited with error status 1 2 0
26 0.019 secunde Exited with error status 1 3 0
27 0.019 secunde Exited with error status 1 3 0
28 0.019 secunde Exited with error status 1 3 0
29 0.019 secunde Exited with error status 1 8 0
30 0.02 secunde Exited with error status 1 8 0
31 0.024 secunde Exited with error status 1 8 0
32 0.025 secunde Exited with error status 1 9 0
Punctaj total 0

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema secv9 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

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ă.

Du-te sus!