Detalii evaluare #43588455

Rezumat problemă

Dorel are o expresie aritmetică reprezentată ca un șir de caractere de lungime N, ce conține ca operanzi cifre nenule, iar ca operatori aritmetici adunarea și înmulțirea, operatori reprezentați prin + și *. Asupra expresiei aritmetice se pot efectua cel mult K operații de interschimbare între doi operatori. De exemplu, pentru expresia 2*3+5+7+1, a cărei valoare este 19, dacă efectuăm o operație de interschimbare între primul și cel de-al treilea operator obținem expresia 2+3+5*7+1, a cărei valoare este 41. Să se afle valoarea maximă a expresiei după efectuarea a cel mult K operații de interschimbare între doi operatori.

Detalii

Problema expresia Operații I/O expresia.in/expresia.out
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #43588455 Utilizator Imi Place Sa Mananc (lenghen_profesoru)
Fișier expresia.cpp Dimensiune 3.06 KB
Data încărcării 04 Mai 2023, 17:59 Scor / rezultat 0 puncte

Evaluare


Mesaj compilare


Rezultat evaluare

Test Timp Mesaj evaluare Scor posibil Scor obținut
1 0 secunde Exited with error status 251 3 0
2 0 secunde Exited with error status 208 3 0
3 0 secunde Exited with error status 214 2 0
4 0 secunde Exited with error status 213 2 0
5 0 secunde Exited with error status 19 2 0
6 0 secunde Exited with error status 186 4 0
7 0 secunde Exited with error status 242 4 0
8 0 secunde Exited with error status 110 3 0
9 0 secunde Exited with error status 230 3 0
10 0 secunde Exited with error status 230 3 0
11 0 secunde Exited with error status 22 4 0
12 0 secunde Exited with error status 25 4 0
13 0 secunde Exited with error status 27 3 0
14 0 secunde Exited with error status 24 3 0
15 0 secunde Exited with error status 29 3 0
16 0 secunde Exited with error status 30 3 0
17 0 secunde Exited with error status 19 2 0
18 0 secunde Exited with error status 152 2 0
19 0 secunde Exited with error status 60 2 0
20 0 secunde Exited with error status 13 2 0
21 0 secunde Exited with error status 115 2 0
22 0 secunde Exited with error status 214 2 0
23 0 secunde Exited with error status 213 2 0
24 0 secunde Exited with error status 97 2 0
25 0 secunde Exited with error status 197 2 0
26 0 secunde Exited with error status 3 1 0
27 0 secunde Exited with error status 27 1 0
28 0 secunde Exited with error status 81 1 0
29 0 secunde Exited with error status 103 1 0
30 0 secunde Exited with error status 171 1 0
31 0 secunde Exited with error status 203 1 0
32 0 secunde Exited with error status 213 1 0
33 0 secunde Exited with error status 213 1 0
34 0 secunde Exited with error status 213 1 0
35 0 secunde Exited with error status 213 1 0
36 0 secunde Exited with error status 213 1 0
37 0 secunde Exited with error status 213 1 0
38 0 secunde Exited with error status 213 1 0
39 0 secunde Exited with error status 213 1 0
40 0 secunde Exited with error status 86 2 0
41 0 secunde Exited with error status 151 2 0
42 0 secunde Exited with error status 59 2 0
43 0 secunde Exited with error status 252 2 0
44 0 secunde Exited with error status 150 2 0
45 0 secunde Exited with error status 50 2 0
46 0 secunde Exited with error status 214 2 0
47 0 secunde Exited with error status 213 2 0
48 0 secunde Exited with error status 213 2 0
49 0 secunde Exited with error status 213 1 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 expresia 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ă.