#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 | #39191693 | Utilizator | |
Fișier | playfair.cpp | Dimensiune | 3.06 KB |
Data încărcării | 01 Noiembrie 2022, 22:23 | Scor / rezultat | 70 puncte |
playfair.cpp: In function 'int main()': playfair.cpp:98:8: warning: variable 'h1' set but not used [-Wunused-but-set-variable] bool h1 = false, h2 = false; ^ playfair.cpp:130:27: warning: 'c2' may be used uninitialized in this function [-Wmaybe-uninitialized] fout << mat[l2][c2 - 1]; ^ playfair.cpp:125:25: warning: 'c1' may be used uninitialized in this function [-Wmaybe-uninitialized] fout << mat[l1][c1-1] ; ^ playfair.cpp:140:23: warning: 'l2' may be used uninitialized in this function [-Wmaybe-uninitialized] fout << mat[l2 - 1][c2]; ^ playfair.cpp:136:21: warning: 'l1' may be used uninitialized in this function [-Wmaybe-uninitialized] fout << mat[l1-1][c1] ; ^ playfair.cpp:74:49: warning: 'c2' may be used uninitialized in this function [-Wmaybe-uninitialized] fout<<mat[l2][c2+1]; ^ playfair.cpp:70:27: warning: 'c1' may be used uninitialized in this function [-Wmaybe-uninitialized] fout << mat[l1][c1 + 1]; ^ playfair.cpp:84:46: warning: 'l2' may be used uninitialized in this function [-Wmaybe-uninitialized] fout<< mat[l2+1][c2]; ^ playfair.cpp:80:22: warning: 'l1' may be used uninitialized in this function [-Wmaybe-uninitialized] fout << mat[l1+1][c1] ; ^ playfair.cpp:11:31: warning: 'lipsa' may be used uninitialized in this function [-Wmaybe-uninitialized] char mat[8][8],s[100004],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ă.