#3495
Codificati un mesaj folosind cifrul Four Square.
cifrul Four Square
| Problema | FourSquare | Operații I/O |
foursquare.in/foursquare.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64132642 | Utilizator | |
| Fișier | foursquare.cpp | Dimensiune | 917 B |
| Data încărcării | 19 Aprilie 2026, 18:30 | Scor/rezultat | 100 puncte |
foursquare.cpp: In function ‘int main()’: foursquare.cpp:22:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 22 | px[a[l][co]]=l; | ~~~~~~~^ foursquare.cpp:23:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 23 | py[a[l][co]]=co; | ~~~~~~~^ foursquare.cpp:37:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 37 | qx[d[l][co]]=l; | ~~~~~~~^ foursquare.cpp:38:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 38 | qy[d[l][co]]=co; | ~~~~~~~^ foursquare.cpp:43:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 43 | for (i=0; i<s.size(); i+=2){ | ~^~~~~~~~~ foursquare.cpp:44:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] 44 | x=px[s[i]]; | ^ foursquare.cpp:45:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] 45 | y=py[s[i]]; | ^ foursquare.cpp:47:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] 47 | x1=qx[s[i+1]]; | ^ foursquare.cpp:48:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] 48 | y1=qy[s[i+1]]; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.003 secunde | OK. | 10 | 10 | Exemplu | |
| 2 | 0.001 secunde | OK. | 20 | 20 | ||
| 3 | 0.001 secunde | OK. | 30 | 30 | ||
| 4 | 0.001 secunde | OK. | 10 | 10 | ||
| 5 | 0.001 secunde | OK. | 30 | 30 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema FourSquare 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ă.