#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 | #51414443 | Utilizator | |
Fișier | adfgx.cpp | Dimensiune | 1.62 KB |
Data încărcării | 14 Iunie 2024, 01:05 | Scor / rezultat | 30 puncte |
adfgx.cpp: In function 'int main()': adfgx.cpp:19:27: warning: array subscript has type 'char' [-Wchar-subscripts] v1[a[f][g]]=f*10+g; ^ adfgx.cpp:24:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(k<strlen(m)) ^ adfgx.cpp:27:18: warning: array subscript has type 'char' [-Wchar-subscripts] n=v1[m[k]]; ^ adfgx.cpp:28:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(t>=strlen(c)) ^ adfgx.cpp:43:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(t<strlen(c)) ^ adfgx.cpp:45:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(t>=strlen(c)) ^ adfgx.cpp:60:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(t<strlen(c)) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | 0 secunde | OK. | 10 | 10 | ||
1 | 0 secunde | OK. | 10 | 10 | ||
2 | 0 secunde | OK. | 10 | 10 | ||
3 | Depășit | Limita de timp depășită | 10 | 0 | ||
4 | Depășit | Limita de timp depășită | 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.068 secunde | Raspuns gresit. | 10 | 0 | ||
Punctaj total | 30 |
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ă.