#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 | #64690791 | Utilizator | |
| Fișier | scytale.cpp | Dimensiune | 1.11 KB |
| Data încărcării | 23 Mai 2026, 14:35 | Scor/rezultat | 100 puncte |
scytale.cpp: In function ‘int main()’: scytale.cpp:13:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 13 | for(int j=0;j<s.size();j++) | ~^~~~~~~~~ scytale.cpp:17:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 17 | for(int i=0;i<s.size();i++) | ~^~~~~~~~~ scytale.cpp:21:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 21 | if(col>=s.size()) | ~~~^~~~~~~~~~ scytale.cpp:25:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 25 | for(int i=0;i<s.size();i++) | ~^~~~~~~~~ scytale.cpp:37:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 37 | for(int i=0;i<s.size();i++) | ~^~~~~~~~~ scytale.cpp:46:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 46 | for(int j=0;j<s.size();j++) | ~^~~~~~~~~
| 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.001 secunde | OK. | 5 | 5 | ||
| 11 | 0.001 secunde | OK. | 5 | 5 | ||
| 12 | 0.001 secunde | OK. | 5 | 5 | ||
| 13 | 0.003 secunde | OK. | 5 | 5 | ||
| 14 | 0.003 secunde | OK. | 5 | 5 | ||
| Punctaj total | 100 | |||||
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ă.