#3900
Myszkowski
Sa se cripteze sau sa se decripteze un mesaj folosind cifrul Myszkowski
.
cifrul Myszkowski
Problema | Myszkowski | Operații I/O |
myszkowski.in /myszkowski.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51080710 | Utilizator | |
Fișier | myszkowski.cpp | Dimensiune | 3.81 KB |
Data încărcării | 22 Mai 2024, 18:25 | Scor / rezultat | 70 puncte |
myszkowski.cpp: In function 'void swap_cols(int, int)': myszkowski.cpp:17:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0; i<mat.size(); i++) ^ myszkowski.cpp: In function 'int main()': myszkowski.cpp:37:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j=0; j<cheie.size(); j++) ^ myszkowski.cpp:39:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (ptr>=mesaj.size()) ^ myszkowski.cpp:46:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (ptr>=mesaj.size()) ^ myszkowski.cpp:51:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0; i<cheie.size(); i++) ^ myszkowski.cpp:53:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j=i+1; j<cheie.size(); j++) ^ myszkowski.cpp:62:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (st<cheie.size()) ^ myszkowski.cpp:64:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (dr+1<cheie.size() && mat[0][st]==mat[0][dr+1]) ^ myszkowski.cpp:68:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=1; i<mat.size(); i++) ^ myszkowski.cpp:85:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j=0;j<cheie.size();j++) ^ myszkowski.cpp:90:63: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0;i<=mesaj.size()/cheie.size()+(how_many!=0);i++) ^ myszkowski.cpp:93:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j=0;j<cheie.size();j++) ^ myszkowski.cpp:100:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (st<cheie.size()) ^ myszkowski.cpp:107:67: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=1;i<=mesaj.size()/cheie.size()+(how_many!=0);i++) ^ myszkowski.cpp:111:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (i>mesaj.size()/cheie.size()+(how_many!=0)) ^ myszkowski.cpp:116:66: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (i==mesaj.size()/cheie.size()+(how_many!=0) && how_many) ^ myszkowski.cpp:129:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j=0; j<cheie.size(); j++) ^ myszkowski.cpp:139:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=1; i<mat.size(); i++) ^ myszkowski.cpp:141:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int cautat=0; cautat<cheie.size(); cautat++) ^
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 | Raspuns gresit. | 10 | 0 | ||
6 | 0 secunde | OK. | 10 | 10 | ||
7 | 0 secunde | OK. | 10 | 10 | ||
8 | 0 secunde | OK. | 10 | 10 | ||
9 | 0 secunde | OK. | 10 | 10 | ||
10 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
Punctaj total | 70 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Myszkowski 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ă.