#4669
PPIfixata
Dându-se o expresie aritmetică prefixată, postfixată sau infixată, să se afișeze toate celelalte forme ale ei.
Problema | PPIfixata | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.2 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51118358 | Utilizator | |
Fișier | ppifixata.cpp | Dimensiune | 7.87 KB |
Data încărcării | 24 Mai 2024, 17:29 | Scor / rezultat | 45 puncte |
ppifixata.cpp: In function 'std::string removeBrackets(std::string)': ppifixata.cpp:248:17: warning: array subscript has type 'char' [-Wchar-subscripts] mp[x] = 0; ^ ppifixata.cpp:250:23: warning: array subscript has type 'char' [-Wchar-subscripts] sign[x] = p; ^ ppifixata.cpp:265:27: warning: array subscript has type 'char' [-Wchar-subscripts] if (sign[x] >= i) ^ ppifixata.cpp:267:25: warning: array subscript has type 'char' [-Wchar-subscripts] mp[x] = 1; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | 0 secunde | OK. | 5 | 5 | ||
1 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
2 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
3 | 0.004 secunde | Raspuns gresit. | 5 | 0 | ||
4 | Depășit | Limita de timp depășită | 5 | 0 | ||
5 | Depășit | Limita de timp depășită | 5 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
9 | 0.004 secunde | Raspuns gresit. | 5 | 0 | ||
10 | Depășit | Limita de timp depășită | 5 | 0 | ||
11 | Depășit | Limita de timp depășită | 5 | 0 | ||
12 | 0 secunde | OK. | 5 | 5 | ||
13 | 0 secunde | OK. | 5 | 5 | ||
14 | 0 secunde | OK. | 5 | 5 | ||
15 | 0 secunde | OK. | 5 | 5 | ||
16 | 0.004 secunde | OK. | 5 | 5 | ||
17 | 0.008 secunde | OK. | 5 | 5 | ||
18 | 0.008 secunde | OK. | 5 | 5 | ||
19 | 0.008 secunde | OK. | 5 | 5 | ||
Punctaj total | 45 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema PPIfixata 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ă.