#3808
ADFGVX
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 | #51456218 | Utilizator | |
Fișier | adfgvx.cpp | Dimensiune | 3.07 KB |
Data încărcării | 19 Iunie 2024, 21:31 | Scor / rezultat | 5 puncte |
adfgvx.cpp: In function 'void codif()': adfgvx.cpp:18:19: warning: array subscript has type 'char' [-Wchar-subscripts] lin[ch] = i; ^ adfgvx.cpp:19:19: warning: array subscript has type 'char' [-Wchar-subscripts] col[ch] = j; ^ adfgvx.cpp:25:44: warning: array subscript has type 'char' [-Wchar-subscripts] m[linie][coloana] = cods[lin[msj[i]]]; ^ adfgvx.cpp:32:44: warning: array subscript has type 'char' [-Wchar-subscripts] m[linie][coloana] = cods[col[msj[i]]]; ^ adfgvx.cpp: In function 'void decod()': adfgvx.cpp:57:10: warning: unused variable 'ch' [-Wunused-variable] char ch, key[27], msj[300001]; ^ adfgvx.cpp:66:28: warning: unused variable 'l' [-Wunused-variable] int len = strlen(key), l = strlen(msj); ^ adfgvx.cpp: In function 'int main()': adfgvx.cpp:108:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("adfgvx.in", "r", stdin); ^ adfgvx.cpp:109:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("adfgvx.out", "w", stdout); ^
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. | 10 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
5 | 0 secunde | Caught fatal signal 11 | 20 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
7 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
9 | 0 secunde | OK. | 5 | 5 | ||
10 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
Punctaj total | 5 |
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ă.