#3257
Dan vrea să transforme un număr scris cu cifre romane într-un număr scris cu cifre arabe.
proprie
| Problema | cifre_romane1 | Operații I/O |
cifre_romane1.in/cifre_romane1.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #39039161 | Utilizator | |
| Fișier | cifre_romane1.cpp | Dimensiune | 1.09 KB |
| Data încărcării | 26 Octombrie 2022, 19:54 | Scor/rezultat | 80 puncte |
cifre_romane1.cpp: In function 'int main()': cifre_romane1.cpp:13:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( i=0; i<strlen(s); i++) ^ cifre_romane1.cpp:42:15: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses] if(v[i]==v[i+1]==v[i+2]==v[i+3] and v[i+1]!=0 and v[i+2]!=0 and v[i+3]!=0) ^ cifre_romane1.cpp:42:23: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses] if(v[i]==v[i+1]==v[i+2]==v[i+3] and v[i+1]!=0 and v[i+2]!=0 and v[i+3]!=0) ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | OK. | 5 | 5 | Exemplu | |
| 2 | 0 secunde | OK. | 5 | 5 | Exemplu | |
| 3 | 0 secunde | OK. | 10 | 10 | ||
| 4 | 0 secunde | OK. | 10 | 10 | ||
| 5 | 0 secunde | OK. | 10 | 10 | ||
| 6 | 0 secunde | OK. | 10 | 10 | ||
| 7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0 secunde | OK. | 10 | 10 | ||
| 9 | 0 secunde | OK. | 10 | 10 | ||
| 10 | 0 secunde | OK. | 10 | 10 | ||
| 11 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 12 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| Punctaj total | 80 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema cifre_romane1 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ă.