#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 | #58457945 | Utilizator | |
Fișier | adfgvx.cpp | Dimensiune | 4.13 KB |
Data încărcării | 06 Iunie 2025, 13:13 | Scor / rezultat | 100 puncte |
adfgvx.cpp: In function 'void sirInMatrice2()': adfgvx.cpp:62:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < strlen(p); ++j) ^ adfgvx.cpp:56:9: warning: unused variable 'n' [-Wunused-variable] int n = strlen(mesaj_prelucrat); ^ adfgvx.cpp:57:9: warning: unused variable 'c' [-Wunused-variable] int c = strlen(key); ^ adfgvx.cpp: In function 'void afisareDecriptie()': adfgvx.cpp:142:28: warning: array subscript has type 'char' [-Wchar-subscripts] fout << cifru[idx[a]][idx[b]]; ^ adfgvx.cpp:142:36: warning: array subscript has type 'char' [-Wchar-subscripts] fout << cifru[idx[a]][idx[b]]; ^ adfgvx.cpp: In function 'void transformaMesaj()': adfgvx.cpp:39:33: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized] mesaj_prelucrat[j++] = y; ^ adfgvx.cpp:38:33: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized] mesaj_prelucrat[j++] = x; ^
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. | 20 | 20 | ||
6 | 0.016 secunde | OK. | 20 | 20 | ||
7 | 0 secunde | OK. | 10 | 10 | ||
8 | 0 secunde | OK. | 10 | 10 | ||
9 | 0 secunde | OK. | 5 | 5 | ||
10 | 0 secunde | OK. | 5 | 5 | ||
Punctaj total | 100 |
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ă.