Detalii evaluare #57924348

Rezumat problemă

#4651 secv9

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 #57924348 Utilizator Raileanu Alexandru (AlexandruR2008)
Fișier secv9.py Dimensiune 857 B
Data încărcării 01 Mai 2025, 20:34 Scor / rezultat 0 puncte

Evaluare


Mesaj compilare



Rezultat evaluare

Test Timp Mesaj evaluare Scor posibil Scor obținut
1 0.008 secunde Exited with error status 1 1 0
2 0.008 secunde Exited with error status 1 1 0
3 0.008 secunde Exited with error status 1 1 0
4 0.008 secunde Exited with error status 1 1 0
5 0.008 secunde Exited with error status 1 2 0
6 0.008 secunde Exited with error status 1 2 0
7 0.008 secunde Exited with error status 1 2 0
8 0.008 secunde Exited with error status 1 2 0
9 0.008 secunde Exited with error status 1 3 0
10 0.008 secunde Exited with error status 1 3 0
11 0.008 secunde Exited with error status 1 3 0
12 0.008 secunde Exited with error status 1 3 0
13 0.008 secunde Exited with error status 1 4 0
14 0.008 secunde Exited with error status 1 4 0
15 0.008 secunde Exited with error status 1 4 0
16 0.008 secunde Exited with error status 1 4 0
17 0.008 secunde Exited with error status 1 2 0
18 0.008 secunde Exited with error status 1 2 0
19 0.008 secunde Exited with error status 1 2 0
20 0.008 secunde Exited with error status 1 2 0
21 0.008 secunde Exited with error status 1 2 0
22 0.008 secunde Exited with error status 1 2 0
23 0.008 secunde Exited with error status 1 2 0
24 0.008 secunde Exited with error status 1 2 0
25 0.008 secunde Exited with error status 1 2 0
26 0.008 secunde Exited with error status 1 3 0
27 0.008 secunde Exited with error status 1 3 0
28 0.008 secunde Exited with error status 1 3 0
29 0.008 secunde Exited with error status 1 8 0
30 0.008 secunde Exited with error status 1 8 0
31 0.008 secunde Exited with error status 1 8 0
32 0.008 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ă.