#3561
Playfair
Să se cripteze sau să se decripteze un mesaj folosind cifrul Playfair
.
cifrul Playfair
Problema | Playfair | Operații I/O |
playfair.in /playfair.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #39190649 | Utilizator | |
Fișier | playfair.cpp | Dimensiune | 2.50 KB |
Data încărcării | 01 Noiembrie 2022, 21:46 | Scor / rezultat | 70 puncte |
playfair.cpp: In function 'int main()': playfair.cpp:84:8: warning: variable 'h1' set but not used [-Wunused-but-set-variable] bool h1 = false, h2 = false; ^ playfair.cpp:116:27: warning: 'c2' may be used uninitialized in this function [-Wmaybe-uninitialized] fout << mat[l2][c2 - 1]; ^ playfair.cpp:111:25: warning: 'c1' may be used uninitialized in this function [-Wmaybe-uninitialized] fout << mat[l1][c1-1] ; ^ playfair.cpp:126:23: warning: 'l2' may be used uninitialized in this function [-Wmaybe-uninitialized] fout << mat[l2 - 1][c2]; ^ playfair.cpp:122:21: warning: 'l1' may be used uninitialized in this function [-Wmaybe-uninitialized] fout << mat[l1-1][c1] ; ^ playfair.cpp:64:25: warning: 'c2' may be used uninitialized in this function [-Wmaybe-uninitialized] fout << mat[l1][c2] << mat[l2][c1]; ^ playfair.cpp:64:40: warning: 'c1' may be used uninitialized in this function [-Wmaybe-uninitialized] fout << mat[l1][c2] << mat[l2][c1]; ^ playfair.cpp:64:40: warning: 'l2' may be used uninitialized in this function [-Wmaybe-uninitialized] playfair.cpp:64:25: warning: 'l1' may be used uninitialized in this function [-Wmaybe-uninitialized] fout << mat[l1][c2] << mat[l2][c1]; ^ playfair.cpp:11:30: warning: 'lipsa' may be used uninitialized in this function [-Wmaybe-uninitialized] char mat[8][8],s[10004],car,lipsa; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
2 | 0 secunde | OK. | 10 | 10 | Exemplu | |
3 | 0 secunde | OK. | 10 | 10 | ||
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
5 | 0 secunde | OK. | 10 | 10 | ||
6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
7 | 0 secunde | OK. | 10 | 10 | ||
8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
9 | 0 secunde | OK. | 10 | 10 | ||
10 | 0 secunde | OK. | 10 | 10 | ||
Punctaj total | 70 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Playfair 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ă.