#3808
Să se cripteze sau să se decripteze un mesaj folosind cifrul ADFGVX.
cifrul ADFGVX
| Problema | ADFGVX | Operații I/O |
adfgvx.in/adfgvx.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64392361 | Utilizator | |
| Fișier | adfgvx.cpp | Dimensiune | 1.18 KB |
| Data încărcării | 04 Mai 2026, 23:22 | Scor/rezultat | 0 puncte |
adfgvx.cpp: In function ‘int main()’: adfgvx.cpp:28:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] 28 | v[ch].lin=i; | ^~ adfgvx.cpp:29:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] 29 | v[ch].col=j; | ^~ adfgvx.cpp:35:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] 35 | lin=v[mesaj[i]].lin; | ~~~~~~~^ adfgvx.cpp:36:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] 36 | col=v[mesaj[i]].col; | ~~~~~~~^ adfgvx.cpp:41:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] 41 | pozitii[cheie[i]]=i; | ~~~~~~~^ adfgvx.cpp:46:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 46 | for (j=pozitii[cheie[i]]; j<=len; j+=lcheie) | ~~~~~~~^ adfgvx.cpp:33:55: warning: unused variable ‘k’ [-Wunused-variable] 33 | int lcheie=strlen(cheie),lmesaj=strlen(mesaj),k=1; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | Raspuns gresit. | 5 | 0 | Exemplu | |
| 2 | 0.002 secunde | Raspuns gresit. | 5 | 0 | Exemplu | |
| 3 | 0.003 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| 6 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 7 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 10 | 0.004 secunde | Raspuns gresit. | 5 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ADFGVX 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ă.