#3616
adfgx
Cifrul ADFGX
este un cifru care folosește o matrice pătratică 5x5
și o cheie
. În matricea pătratică, liniile și coloanele vor fi numerotate cu litere. Avem această matrice ca exemplu.
A D F G X A a b c d e D f g h i j F k l m n o G p q r s t X u v w x y
Problema | adfgx | Operații I/O |
adfgx.in /adfgx.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #46542425 | Utilizator | |
Fișier | adfgx.cpp | Dimensiune | 2.23 KB |
Data încărcării | 16 Noiembrie 2023, 16:16 | Scor / rezultat | 20 puncte |
adfgx.cpp: In function 'int main()': adfgx.cpp:83:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int k=0;k<mesaj.size();k++) ^ adfgx.cpp:107:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<cheieSort.size();i++) ^ adfgx.cpp:110:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0;j<cheie.size();j++) ^ adfgx.cpp:116:40: warning: NULL used in arithmetic [-Wpointer-arith] if(pula[k][j]!=NULL) ^ adfgx.cpp: In function 'char cacat(int)': adfgx.cpp:40:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ adfgx.cpp: In function 'int cod(char)': adfgx.cpp:56:20: warning: 'jLit' may be used uninitialized in this function [-Wmaybe-uninitialized] return iLit*10+jLit; ^ adfgx.cpp:56:16: warning: 'iLit' may be used uninitialized in this function [-Wmaybe-uninitialized] return iLit*10+jLit; ^ adfgx.cpp: In function 'int main()': adfgx.cpp:56:20: warning: 'jLit' may be used uninitialized in this function [-Wmaybe-uninitialized] return iLit*10+jLit; ^ adfgx.cpp:44:14: note: 'jLit' was declared here int iLit,jLit; ^ adfgx.cpp:56:16: warning: 'iLit' may be used uninitialized in this function [-Wmaybe-uninitialized] return iLit*10+jLit; ^ adfgx.cpp:44:9: note: 'iLit' was declared here int iLit,jLit; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | 0 secunde | OK. | 10 | 10 | ||
1 | 0 secunde | OK. | 10 | 10 | ||
2 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
3 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
4 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
9 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
Punctaj total | 20 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema adfgx 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ă.