Mosnoi A Posted December 1, 2018 Report Share Posted December 1, 2018 Problema gândacului. Fie o suprafaţă pătrată împărţită în n×n pătrate identice fiecare având o înălţime h>0 dată. Un gândac se găseşte iniţial în poziţia (L, C) (linia L şi coloana C). Scrieţi un program C++ care să determine dacă poate ajunge gândacul în afara suprafeţei, ştiind că acesta poate doar să coboare şi nu poate să urce, pereţii fiind foarte abrupţi. Dacă gândacul poate să iasă din suprafaţă, să se determine toate variantele posibile. (C++) Quote Link to comment Share on other sites More sharing options...
+Graham777 Posted December 2, 2018 Report Share Posted December 2, 2018 Și ce nu-ți iese? Quote Link to comment Share on other sites More sharing options...
Rusu Posted June 24, 2019 Report Share Posted June 24, 2019 In general, orice problema care necesita construirea TUTUROR variantelor posibile, se rezolva prin backtracking. Quote Link to comment Share on other sites More sharing options...
Guest Atomouctoca Posted September 27, 2019 Report Share Posted September 27, 2019 What necessary words... super, excellent idea Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.