Detalii evaluare #57917337

Rezumat problemă

Alina, managerul unui lanț de magazine, este responsabilă de gestiunea tranzacțiilor bancare din cadrul acestora. Ea lucrează cu conturi bancare și cunoaște sumele de bani (soldul) existente în fiecare dintre acestea. Se cunosc N, numărul tranzacțiilor și N numere întregi nenule a[1], a[2], …, a[N], reprezentând, în această ordine, sumele de tranzacționat (un număr pozitiv indică o sumă care urmează a fi depusă, iar un număr negativ reprezintă o sumă care urmează a fi retrasă). După procesarea celor N tranzacții, ajutați-o pe Alina să determine:
1) numărul de conturi rămase active.
2) soldul maxim care se găsește într-un cont dintre cele rămase active.

Detalii

Problema conturi1 Operații I/O conturi.in/conturi.out
Limita timp 1 secunde Limita memorie Total: 32 MB / Stivă 8 MB
Id soluție #57917337 Utilizator Raileanu Alexandru (AlexandruR2008)
Fișier conturi1.py Dimensiune 1.77 KB
Data încărcării 30 Aprilie 2025, 18:23 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 2 0
2 0.008 secunde Exited with error status 1 2 0
3 0.008 secunde Exited with error status 1 2 0
4 0.008 secunde Exited with error status 1 3 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 3 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 3 0
14 0.008 secunde Exited with error status 1 3 0
15 0.008 secunde Exited with error status 1 3 0
16 0.008 secunde Exited with error status 1 2 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 3 0
20 0.008 secunde Exited with error status 1 4 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 3 0
24 0.008 secunde Exited with error status 1 3 0
25 0.008 secunde Exited with error status 1 4 0
26 0.008 secunde Exited with error status 1 5 0
27 0.008 secunde Exited with error status 1 4 0
28 0.008 secunde Exited with error status 1 5 0
29 0.008 secunde Exited with error status 1 6 0
30 0.008 secunde Exited with error status 1 7 0
31 0.008 secunde Exited with error status 1 7 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 conturi1 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ă.