#4017
Să se cripteze sau să se decripteze un mesaj folosind cifrul Skip.
cifrul Skip
| Problema | Skip | Operații I/O |
skip.in/skip.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #63916307 | Utilizator | |
| Fișier | skip.cpp | Dimensiune | 2.25 KB |
| Data încărcării | 26 Martie 2026, 12:34 | Scor/rezultat | 100 puncte |
skip.cpp: In function 'std::string criptare(std::string)': skip.cpp:20:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i<b.size()) ^ skip.cpp:22:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(i<c.size()) ^ skip.cpp:8:9: warning: unused variable 'y' [-Wunused-variable] int y=n-n/2; ^ skip.cpp: In function 'std::string decript(std::string)': skip.cpp:42:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(A.size() < lenA) ^ skip.cpp:34:9: warning: unused variable 'lenB' [-Wunused-variable] int lenB = n - lenA; ^ skip.cpp: In function 'int main()': skip.cpp:67:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<s.size(); i++) ^ skip.cpp:97:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<s.size(); i++) ^
| 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 | OK. | 10 | 10 | ||
| 5 | 0 secunde | OK. | 10 | 10 | ||
| 6 | 0 secunde | OK. | 10 | 10 | ||
| 7 | 0.016 secunde | OK. | 10 | 10 | ||
| 8 | 0.012 secunde | OK. | 10 | 10 | ||
| 9 | 0 secunde | OK. | 2 | 2 | ||
| 10 | 0 secunde | OK. | 3 | 3 | ||
| 11 | 0 secunde | OK. | 2 | 2 | ||
| 12 | 0 secunde | OK. | 3 | 3 | ||
| 13 | 0 secunde | OK. | 2 | 2 | ||
| 14 | 0 secunde | OK. | 3 | 3 | ||
| 15 | 0 secunde | OK. | 2 | 2 | ||
| 16 | 0 secunde | OK. | 3 | 3 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Skip 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ă.