#3856
Să se cripteze sau să se decripteze un mesaj folosind cifrul Scytale.
cifrul Scytale
| Problema | Scytale | Operații I/O |
scytale.in/scytale.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64171112 | Utilizator | |
| Fișier | scytale.cpp | Dimensiune | 1.26 KB |
| Data încărcării | 21 Aprilie 2026, 14:02 | Scor/rezultat | 80 puncte |
scytale.cpp: In function ‘int main()’: scytale.cpp:22:38: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 22 | if(p < a.size()) | ~~^~~~~~~~~~ scytale.cpp:30:38: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 30 | if(p < a.size()) | ~~^~~~~~~~~~ scytale.cpp:52:46: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 52 | if(p < a.size()) | ~~^~~~~~~~~~ scytale.cpp:55:59: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 55 | if(j < t - 1 && p < a.size()) | ~~^~~~~~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | OK. | 10 | 10 | Exemplu | |
| 2 | 0.001 secunde | OK. | 10 | 10 | Exemplu | |
| 3 | 0.001 secunde | OK. | 10 | 10 | ||
| 4 | 0.001 secunde | OK. | 10 | 10 | ||
| 5 | 0.001 secunde | OK. | 10 | 10 | ||
| 6 | 0.001 secunde | OK. | 10 | 10 | ||
| 7 | 0.002 secunde | OK. | 5 | 5 | ||
| 8 | 0.001 secunde | OK. | 5 | 5 | ||
| 9 | 0.001 secunde | OK. | 5 | 5 | ||
| 10 | 0.002 secunde | OK. | 5 | 5 | ||
| 11 | 0.001 secunde | Raspuns gresit. | 5 | 0 | ||
| 12 | 0.002 secunde | Raspuns gresit. | 5 | 0 | ||
| 13 | 0.002 secunde | Raspuns gresit. | 5 | 0 | ||
| 14 | 0.002 secunde | Raspuns gresit. | 5 | 0 | ||
| Punctaj total | 80 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Scytale 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ă.