#3900
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 | #62894014 | Utilizator | |
| Fișier | myszkowski.cpp | Dimensiune | 1.08 KB |
| Data încărcării | 05 Februarie 2026, 13:16 | Scor/rezultat | 20 puncte |
myszkowski.cpp: In function 'void encrypt()': myszkowski.cpp:11:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < key.size(); i++) { ^ myszkowski.cpp:20:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (j < key.size()) { ^ myszkowski.cpp:22:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = pos[k].second; i < msg.size(); i += key.size()) { ^ myszkowski.cpp:28:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] do k++; while (k < key.size() && pos[k].first == pos[j].first); ^ myszkowski.cpp: In function 'int main()': myszkowski.cpp:40:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("myszkowski.in", "r", stdin); ^ myszkowski.cpp:41:43: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("myszkowski.out", "w", stdout); ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
| 2 | Depășit | Limita de timp depășită | 10 | 0 | Exemplu | |
| 3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | Depășit | Limita de timp depășită | 10 | 0 | ||
| 5 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | Depășit | Limita de timp depășită | 10 | 0 | ||
| 7 | 0 secunde | OK. | 10 | 10 | ||
| 8 | Depășit | Limita de timp depășită | 10 | 0 | ||
| 9 | 0 secunde | OK. | 10 | 10 | ||
| 10 | Depășit | Limita de timp depășită | 10 | 0 | ||
| Punctaj total | 20 | |||||
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ă.