#3142
Dându-se un șir de caractere, să se cripteze/decripteze șirul dat folosind un tabel polybius.
| Problema | polybius | Operații I/O |
polybius.in/polybius.out
|
|---|---|---|---|
| Limita timp | 0.05 secunde | Limita memorie |
Total: 2 MB
/
Stivă 1 MB
|
| Id soluție | #62786011 | Utilizator | |
| Fișier | polybius.cpp | Dimensiune | 487 B |
| Data încărcării | 02 Februarie 2026, 14:21 | Scor/rezultat | 0 puncte |
polybius.cpp: In function 'int main()': polybius.cpp:13:12: warning: array subscript has type 'char' [-Wchar-subscripts] l[x]=i%5; ^ polybius.cpp:14:12: warning: array subscript has type 'char' [-Wchar-subscripts] c[x]=i/5+1; ^ polybius.cpp:15:15: warning: array subscript has type 'char' [-Wchar-subscripts] if(l[x]==0){l[x]=5;c[x]--;} ^ polybius.cpp:15:24: warning: array subscript has type 'char' [-Wchar-subscripts] if(l[x]==0){l[x]=5;c[x]--;} ^ polybius.cpp:15:31: warning: array subscript has type 'char' [-Wchar-subscripts] if(l[x]==0){l[x]=5;c[x]--;} ^ polybius.cpp:16:14: warning: array subscript has type 'char' [-Wchar-subscripts] a[l[x]][c[x]]=x; ^ polybius.cpp:16:20: warning: array subscript has type 'char' [-Wchar-subscripts] a[l[x]][c[x]]=x; ^ polybius.cpp:19:32: warning: array subscript has type 'char' [-Wchar-subscripts] while(fin>>x) fout<<c[x]<<l[x]; ^ polybius.cpp:19:38: warning: array subscript has type 'char' [-Wchar-subscripts] while(fin>>x) fout<<c[x]<<l[x]; ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | Raspuns gresit. | 5 | 0 | Exemplu | |
| 2 | 0 secunde | Raspuns gresit. | 5 | 0 | Exemplu | |
| 3 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 4 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 5 | 0 secunde | Raspuns gresit. | 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 secunde | Raspuns gresit. | 5 | 0 | ||
| 10 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 11 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 12 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 13 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 14 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 15 | 0.004 secunde | Raspuns gresit. | 5 | 0 | ||
| 16 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 17 | 0.016 secunde | Raspuns gresit. | 5 | 0 | ||
| 18 | 0.008 secunde | Raspuns gresit. | 5 | 0 | ||
| 19 | Depășit | Limita de timp depășită | 5 | 0 | ||
| 20 | 0.028 secunde | Raspuns gresit. | 5 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema polybius 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ă.