#329
Bila
Se consideră o tablă de joc de formă dreptunghiulară, împărţită în n
linii şi m
coloane. Se obţin astfel n*m
zone şi se cunoaște înălțimea fiecărei zone. La o poziție cunoscută – linia istart
, coloana jstart
se află o bilă care se poate deplasa pe o poziție vecină (sus, jos, stânga, dreapta) doar dacă înălțimea poziției vecine este strict mai mică decât înălțimea poziției curente.
Determinați numărul maxim de zone prin care poate să treacă bila pentru a ajunge pe una dintre marginile tablei de joc.
Problema | Bila | Operații I/O |
bila.in /bila.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #26223113 | Utilizator | |
Fișier | bila.cpp | Dimensiune | 1.39 KB |
Data încărcării | 27 Noiembrie 2020, 11:53 | Scor / rezultat | Eroare de compilare |
bila.cpp:10:1: error: stray '\342' in program const int di[] = {0 , 0 , 1 , -1}; ^ bila.cpp:10:1: error: stray '\200' in program bila.cpp:10:1: error: stray '\213' in program bila.cpp:10:1: error: stray '\342' in program bila.cpp:10:1: error: stray '\200' in program bila.cpp:10:1: error: stray '\213' in program bila.cpp:10:1: error: stray '\342' in program bila.cpp:10:1: error: stray '\200' in program bila.cpp:10:1: error: stray '\213' in program bila.cpp:10:1: error: stray '\342' in program bila.cpp:10:1: error: stray '\200' in program bila.cpp:10:1: error: stray '\213' in program bila.cpp:10:1: error: stray '\342' in program bila.cpp:10:1: error: stray '\200' in program bila.cpp:10:1: error: stray '\213' in program bila.cpp:10:1: error: stray '\342' in program bila.cpp:10:1: error: stray '\200' in program bila.cpp:10:1: error: stray '\213' in program bila.cpp:10:1: error: stray '\342' in program bila.cpp:10:1: error: stray '\200' in program bila.cpp:10:1: error: stray '\213' in program bila.cpp:10:1: error: stray '\342' in program bila.cpp:10:1: error: stray '\200' in program bila.cpp:10:1: error: stray '\213' in program bila.cpp:11:1: error: stray '\342' in program const int dj[] = {1 , -1 , 0 , 0}; ^ bila.cpp:11:1: error: stray '\200' in program bila.cpp:11:1: error: stray '\213' in program bila.cpp:11:1: error: stray '\342' in program bila.cpp:11:1: error: stray '\200' in program bila.cpp:11:1: error: stray '\213' in program bila.cpp:11:1: error: stray '\342' in program bila.cpp:11:1: error: stray '\200' in program bila.cpp:11:1: error: stray '\213' in program bila.cpp:11:1: error: stray '\342' in program bila.cpp:11:1: error: stray '\200' in program bila.cpp:11:1: error: stray '\213' in program bila.cpp:11:1: error: stray '\342' in program bila.cpp:11:1: error: stray '\200' in program bila.cpp:11:1: error: stray '\213' in program bila.cpp:11:1: error: stray '\342' in program bila.cpp:11:1: error: stray '\200' in program bila.cpp:11:1: error: stray '\213' in program bila.cpp:11:1: error: stray '\342' in program bila.cpp:11:1: error: stray '\200' in program bila.cpp:11:1: error: stray '\213' in program bila.cpp:11:1: error: stray '\342' in program bila.cpp:11:1: error: stray '\200' in program bila.cpp:11:1: error: stray '\213' in program bila.cpp:14:1: error: stray '\342' in program { ^ bila.cpp:14:1: error: stray '\200' in program bila.cpp:14:1: error: stray '\213' in program bila.cpp:14:1: error: stray '\342' in program bila.cpp:14:1: error: stray '\200' in program bila.cpp:14:1: error: stray '\213' in program bila.cpp:14:1: error: stray '\342' in program bila.cpp:14:1: error: stray '\200' in program bila.cpp:14:1: error: stray '\213' in program bila.cpp:14:1: error: stray '\342' in program bila.cpp:14:1: error: stray '\200' in program bila.cpp:14:1: error: stray '\213' in program bila.cpp:17:1: error: stray '\342' in program } ^ bila.cpp:17:1: error: stray '\200' in program bila.cpp:17:1: error: stray '\213' in program bila.cpp:17:1: error: stray '\342' in program bila.cpp:17:1: error: stray '\200' in program bila.cpp:17:1: error: stray '\213' in program bila.cpp:17:1: error: stray '\342' in program bila.cpp:17:1: error: stray '\200' in program bila.cpp:17:1: error: stray '\213' in program bila.cpp:17:1: error: stray '\342' in program bila.cpp:17:1: error: stray '\200' in program bila.cpp:17:1: error: stray '\213' in program bila.cpp:20:1: error: stray '\342' in program { ^ bila.cpp:20:1: error: stray '\200' in program bila.cpp:20:1: error: stray '\213' in program bila.cpp:20:1: error: stray '\342' in program bila.cpp:20:1: error: stray '\200' in program bila.cpp:20:1: error: stray '\213' in program bila.cpp:20:1: error: stray '\342' in program bila.cpp:20:1: error: stray '\200' in program bila.cpp:20:1: error: stray '\213' in program bila.cpp:20:1: error: stray '\342' in program bila.cpp:20:1: error: stray '\200' in program bila.cpp:20:1: error: stray '\213' in program bila.cpp:22:5: error: stray '\342' in program { ^ bila.cpp:22:5: error: stray '\200' in program bila.cpp:22:5: error: stray '\213' in program bila.cpp:22:5: error: stray '\342' in program bila.cpp:22:5: error: stray '\200' in program bila.cpp:22:5: error: stray '\213' in program bila.cpp:22:5: error: stray '\342' in program bila.cpp:22:5: error: stray '\200' in program bila.cpp:22:5: error: stray '\213' in program bila.cpp:22:5: error: stray '\342' in program bila.cpp:22:5: error: stray '\200' in program bila.cpp:22:5: error: stray '\213' in program bila.cpp:25:5: error: stray '\342' in program } ^ bila.cpp:25:5: error: stray '\200' in program bila.cpp:25:5: error: stray '\213' in program bila.cpp:25:5: error: stray '\342' in program bila.cpp:25:5: error: stray '\200' in program bila.cpp:25:5: error: stray '\213' in program bila.cpp:25:5: error: stray '\342' in program bila.cpp:25:5: error: stray '\200' in program bila.cpp:25:5: error: stray '\213' in program bila.cpp:25:5: error: stray '\342' in program bila.cpp:25:5: error: stray '\200' in program bila.cpp:25:5: error: stray '\213' in program bila.cpp:28:9: error: stray '\342' in program { ^ bila.cpp:28:9: error: stray '\200' in program bila.cpp:28:9: error: stray '\213' in program bila.cpp:28:9: error: stray '\342' in program bila.cpp:28:9: error: stray '\200' in program bila.cpp:28:9: error: stray '\213' in program bila.cpp:28:9: error: stray '\342' in program bila.cpp:28:9: error: stray '\200' in program bila.cpp:28:9: error: stray '\213' in program bila.cpp:28:9: error: stray '\342' in program bila.cpp:28:9: error: stray '\200' in program bila.cpp:28:9: error: stray '\213' in program bila.cpp:32:13: error: stray '\342' in program { ^ bila.cpp:32:13: error: stray '\200' in program bila.cpp:32:13: error: stray '\213' in program bila.cpp:32:13: error: stray '\342' in program bila.cpp:32:13: error: stray '\200' in program bila.cpp:32:13: error: stray '\213' in program bila.cpp:32:13: error: stray '\342' in program bila.cpp:32:13: error: stray '\200' in program bila.cpp:32:13: error: stray '\213' in program bila.cpp:32:13: error: stray '\342' in program bila.cpp:32:13: error: stray '\200' in program bila.cpp:32:13: error: stray '\213' in program bila.cpp:36:13: error: stray '\342' in program } ^ bila.cpp:36:13: error: stray '\200' in program bila.cpp:36:13: error: stray '\213' in program bila.cpp:36:13: error: stray '\342' in program bila.cpp:36:13: error: stray '\200' in program bila.cpp:36:13: error: stray '\213' in program bila.cpp:36:13: error: stray '\342' in program bila.cpp:36:13: error: stray '\200' in program bila.cpp:36:13: error: stray '\213' in program bila.cpp:36:13: error: stray '\342' in program bila.cpp:36:13: error: stray '\200' in program bila.cpp:36:13: error: stray '\213' in program bila.cpp:37:9: error: stray '\342' in program } ^ bila.cpp:37:9: error: stray '\200' in program bila.cpp:37:9: error: stray '\213' in program bila.cpp:37:9: error: stray '\342' in program bila.cpp:37:9: error: stray '\200' in program bila.cpp:37:9: error: stray '\213' in program bila.cpp:37:9: error: stray '\342' in program bila.cpp:37:9: error: stray '\200' in program bila.cpp:37:9: error: stray '\213' in program bila.cpp:37:9: error: stray '\342' in program bila.cpp:37:9: error: stray '\200' in program bila.cpp:37:9: error: stray '\213' in program bila.cpp:38:1: error: stray '\342' in program } ^ bila.cpp:38:1: error: stray '\200' in program bila.cpp:38:1: error: stray '\213' in program bila.cpp:38:1: error: stray '\342' in program bila.cpp:38:1: error: stray '\200' in program bila.cpp:38:1: error: stray '\213' in program bila.cpp:38:1: error: stray '\342' in program bila.cpp:38:1: error: stray '\200' in program bila.cpp:38:1: error: stray '\213' in program bila.cpp:38:1: error: stray '\342' in program bila.cpp:38:1: error: stray '\200' in program bila.cpp:38:1: error: stray '\213' in program bila.cpp:40:1: error: stray '\342' in program { ^ bila.cpp:40:1: error: stray '\200' in program bila.cpp:40:1: error: stray '\213' in program bila.cpp:40:1: error: stray '\342' in program bila.cpp:40:1: error: stray '\200' in program bila.cpp:40:1: error: stray '\213' in program bila.cpp:40:1: error: stray '\342' in program bila.cpp:40:1: error: stray '\200' in program bila.cpp:40:1: error: stray '\213' in program bila.cpp:40:1: error: stray '\342' in program bila.cpp:40:1: error: stray '\200' in program bila.cpp:40:1: error: stray '\213' in program bila.cpp:54:1: error: stray '\342' in program } ^ bila.cpp:54:1: error: stray '\200' in program bila.cpp:54:1: error: stray '\213' in program bila.cpp:54:1: error: stray '\342' in program bila.cpp:54:1: error: stray '\200' in program bila.cpp:54:1: error: stray '\213' in program bila.cpp:54:1: error: stray '\342' in program bila.cpp:54:1: error: stray '\200' in program bila.cpp:54:1: error: stray '\213' in program bila.cpp:54:1: error: stray '\342' in program bila.cpp:54:1: error: stray '\200' in program bila.cpp:54:1: error: stray '\213' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Bila 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ă.