
בחידה הזאת צריך להגיע מהמצב ההתחלתי כמתואר למעלה למצב הסופי שגם הוא מתואר למעלה. הכללים של החידה -כל יצור אמפיבי יכול לנוע למשבצת ריקה הסמוכה אליו או לדלג מעל יצור אמפיבי אחר. צפרדעים יכולות לנוע ימינה בלבד וקרפדות יכולות לנוע שמאלה בלבד. התנועה יכולה להתבצע בשני אופנים : צפרדע יכולה לגלוש למשבצת ריקה סמוכה שנמצאת מימין בלבד ואילו קרפדות יכולות לגלוש למשבצת ריקה סמוכה לשמאל בלבד. צפרדעים וקרפדות יכולות גם לדלג, (זה כל הקטע בבחירת דו חי מהסוג הזה) כמובן כל ייצור לכיוון שמותר לו, צפרדעים רק ימינה וקרפדות רק שמאלה. הדילוג יכול להתבצע אך ורק כאשר יש בסמוך לכיוון הדילוג ייצור מסוג אחר ויש גם אחריו משבצת ריקה. כלומר, צפרדע לא יכולה לדלג מעל צפרדע וקרפדה לא יכולה לדלג מעל קרפדה (בין אם יש אחרי משבצת ריקה ובין אם לא). אי אפשר לדלג על יותר מייצור אחד (צפרדע לא יכולה לדלג מעל שתי קרפדות) ואי אפשר לדלג מעל ייצור שאין אחריו משבצת ריקה (וכל אחת כזכור רק לכיוון שהיא יודעת לדלג).
צריך לבנות תוכנית, בפייתון (כאילו בזה אנו עוסקים כאן), שתציג מודל של החידה. ותציג את שלבי הפתרון מהמצב ההתחלתי למצב הסופי שבו הצפרדעים והקרפדות מחליפות מקומות.
הראשון שיפתור עם תוכנית מרשימה יזכה בתהילת עולם (בקנה המידה המצומצם יותר של קומץ האנשים הנדירים החברים באתר הזה בפורום).
At Deeporion, we take pride in being a reliable and forward-thinking full stack development company that delivers complete digital solutions under one roof. Our team of skilled developers, designers, and strategists work hand in hand to build responsive, scalable, and high-performing web and mobile applications tailored to your business goals. We specialize in developing both front-end and back-end systems using modern frameworks and technologies, ensuring every layer of your digital product functions seamlessly. From intuitive UI/UX design to powerful databases and APIs, we focus on creating applications that are not only visually engaging but also technologically robust. As a top full stack development company, we don’t just code — we collaborate. We take time to understand your business, target audience, and objectives before crafting a custom strategy that aligns with your vision. Whether you need an eCommerce platform, enterprise-grade software, or a dynamic web app, our full stack experts bring creativity, precision, and reliability to every project. With Deeporion, you get more than just developers — you gain a long-term technology partner committed to your growth. We emphasize quality, security, and continuous improvement to ensure that your product stays future-ready in an ever-evolving digital landscape.