#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 | #64559816 | Utilizator | |
| Fișier | polybius.cpp | Dimensiune | 977 B |
| Data încărcării | 14 Mai 2026, 11:56 | Scor/rezultat | 25 puncte |
polybius.cpp: In function ‘int main()’: polybius.cpp:17:13: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 17 | for(j=1;j<=5;j++) | ^~~ polybius.cpp:23:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 23 | fin>>s; | ^~~ polybius.cpp:43:13: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 43 | for(j=1;j<=5;j++) | ^~~ polybius.cpp:46:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 46 | fin>>s; | ^~~ polybius.cpp:48:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 48 | for(l=0;l+1<strlen(s);l+=2) | ~~~^~~~~~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 5 | 0 | Exemplu | |
| 2 | 0.001 secunde | OK. | 5 | 5 | Exemplu | |
| 3 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 4 | 0.002 secunde | OK. | 5 | 5 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 6 | 0.001 secunde | OK. | 5 | 5 | ||
| 7 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 8 | 0.001 secunde | OK. | 5 | 5 | ||
| 9 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 10 | 0.001 secunde | OK. | 5 | 5 | ||
| 11 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 12 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 13 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 14 | 0.003 secunde | Raspuns gresit. | 5 | 0 | ||
| 15 | 0.001 secunde | Caught fatal signal 11 | 5 | 0 | ||
| 16 | 0.001 secunde | Caught fatal signal 11 | 5 | 0 | ||
| 17 | 0.001 secunde | Caught fatal signal 11 | 5 | 0 | ||
| 18 | 0.001 secunde | Caught fatal signal 11 | 5 | 0 | ||
| 19 | 0.001 secunde | Caught fatal signal 11 | 5 | 0 | ||
| 20 | 0.002 secunde | Caught fatal signal 11 | 5 | 0 | ||
| Punctaj total | 25 | |||||
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ă.