#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 | #54530174 | Utilizator | |
Fișier | adfgvx.cpp | Dimensiune | 3.59 KB |
Data încărcării | 01 Decembrie 2024, 18:46 | Scor / rezultat | 15 puncte |
adfgvx.cpp: In function 'void task1()': adfgvx.cpp:20:22: warning: array subscript has type 'char' [-Wchar-subscripts] v[m[i][j]].i='A'; ^ adfgvx.cpp:22:22: warning: array subscript has type 'char' [-Wchar-subscripts] v[m[i][j]].i='D'; ^ adfgvx.cpp:24:22: warning: array subscript has type 'char' [-Wchar-subscripts] v[m[i][j]].i='F'; ^ adfgvx.cpp:26:22: warning: array subscript has type 'char' [-Wchar-subscripts] v[m[i][j]].i='G'; ^ adfgvx.cpp:28:22: warning: array subscript has type 'char' [-Wchar-subscripts] v[m[i][j]].i='V'; ^ adfgvx.cpp:30:22: warning: array subscript has type 'char' [-Wchar-subscripts] v[m[i][j]].i='X'; ^ adfgvx.cpp:33:22: warning: array subscript has type 'char' [-Wchar-subscripts] v[m[i][j]].j='A'; ^ adfgvx.cpp:35:22: warning: array subscript has type 'char' [-Wchar-subscripts] v[m[i][j]].j='D'; ^ adfgvx.cpp:37:22: warning: array subscript has type 'char' [-Wchar-subscripts] v[m[i][j]].j='F'; ^ adfgvx.cpp:39:22: warning: array subscript has type 'char' [-Wchar-subscripts] v[m[i][j]].j='G'; ^ adfgvx.cpp:41:22: warning: array subscript has type 'char' [-Wchar-subscripts] v[m[i][j]].j='V'; ^ adfgvx.cpp:43:22: warning: array subscript has type 'char' [-Wchar-subscripts] v[m[i][j]].j='X'; ^ adfgvx.cpp:51:26: warning: array subscript has type 'char' [-Wchar-subscripts] b[k++]=v[a[i]].i; ^ adfgvx.cpp:52:26: warning: array subscript has type 'char' [-Wchar-subscripts] b[k++]=v[a[i]].j; ^ adfgvx.cpp: In function 'void task2()': adfgvx.cpp:91:23: warning: array subscript has type 'char' [-Wchar-subscripts] v[adfgvx[i]][adfgvx[j]]=m[i][j]; ^ adfgvx.cpp:91:34: warning: array subscript has type 'char' [-Wchar-subscripts] v[adfgvx[i]][adfgvx[j]]=m[i][j]; ^ adfgvx.cpp:150:23: warning: array subscript has type 'char' [-Wchar-subscripts] fout<<v[a[i-1]][a[i]]; ^ adfgvx.cpp:150:29: warning: array subscript has type 'char' [-Wchar-subscripts] fout<<v[a[i-1]][a[i]]; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0.004 secunde | Raspuns gresit. | 5 | 0 | Exemplu | |
2 | 0 secunde | OK. | 5 | 5 | Exemplu | |
3 | 0.004 secunde | Raspuns gresit. | 10 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
5 | 0.004 secunde | Raspuns gresit. | 20 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
7 | 0.004 secunde | Raspuns gresit. | 10 | 0 | ||
8 | 0 secunde | OK. | 10 | 10 | ||
9 | 0.004 secunde | Raspuns gresit. | 5 | 0 | ||
10 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
Punctaj total | 15 |
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ă.