top of page
תוצאות החיפוש
Type
Category
132 items found for ""
- חידת המרובע הקסום עם מספרים ראשונייםIn General Discussions3 באפריל 2024Nice site, nice and easy on the eyes and great content too. Do you need many drafts to make a post? Perdana lottery result00
- פרויקט כחלק מקורס תכנותIn General Discussions3 באפריל 2024100% Trusted Call Girl in Rajkot in Just 3k Cash Payment Rajkot call girls bring you an opportunity to have a break from the boredom of daily routine. In this world where everyone is busy and time is money, most of us have donate dedicate any time to ourselves, when life has so much to offer still not enjoying a bit. In this most connected era of human history, at least 6% of men cannot even find a partner to fulfill their needs. Unfulfillment of these desires leads to disastrous events such as insomnia, social anxiety, anger issues, less productivity, depression, irritation, tiredness, etc. But, you can remediate any such situation when you choose to hire 100% Rajkot call girl. Are you looking for sexy girls to take to bed? High Profile Call Girls in Delhi can help you with Rajkot Escort service to relieve you from stress. KENDRAPARA ESCORTKENDUJHAR ESCORTKHORDHA ESCORTKORAPUT ESCORTMALKANGIRI ESCORTMAYURBHANJ ESCORTNABARANGPUR ESCORTNAYAGARH ESCORTNUAPADA ESCORTPURI ESCORTRAYAGADA ESCORTSAMBALPUR ESCORTSUBARNAPUR ESCORTSUNDERGARH ESCORTAMRITSAR ESCORTBARNALA ESCORTBATHINDA ESCORTFARIDKOT ESCORTFATEHGARH SAHIB ESCORTFAZILKA ESCORTFIROZPUR ESCORTGURDASPUR ESCORTHOSHIARPUR ESCORTJALANDHAR ESCORTKAPURTHALA ESCORTLUDHIANA ESCORTMANSA ESCORTMOGA ESCORTMOHALI ESCORTMUKTSAR ESCORTPATHANKOT ESCORTPATIALA ESCORTRUPNAGAR ESCORTSANGRUR ESCORTSHAHEED BHAGAT SINGH NAGAR ESCORTTARN TARAN ESCORTAJMER ESCORTALWAR ESCORTBANSWARA ESCORTBARAN ESCORTBARMER ESCORTBHARATPUR ESCORTBHILWARA ESCORTBIKANER ESCORTBUNDI ESCORTCHITTORGARH ESCORTCHURU ESCORTDAUSA ESCORTDHOLPUR ESCORTDUNGARPUR ESCORTHANUMANGARH ESCORTJAIPUR ESCORTJAISALMER ESCORTJALORE ESCORTJHALAWAR ESCORTJHUNJHUNU ESCORTJODHPUR ESCORTKARAULI ESCORTKOTA ESCORTNAGAUR ESCORTPALI ESCORTPRATAPGARH ESCORTRAJSAMAND ESCORTSAWAI MADHOPUR ESCORTSIKAR ESCORTSIROHI ESCORTSRI GANGANAGAR ESCORTTONK ESCORTUDAIPUR ESCORTPUSHKAR ESCORTBEAWAR ESCORTKISHANGARH ESCORTNASIRABAD ESCORTMOUNT ABU ESCORTABU ROAD ESCORTGANGTOK ESCORTGEYZING ESCORTMANGAN ESCORTNAMCHI ESCORTARIYALUR ESCORTCHENGALPATTU ESCORTCHENNAI ESCORTCOIMBATORE ESCORTCUDDALORE ESCORTDHARMAPURI ESCORTDINDIGUL ESCORTERODE ESCORTKALLAKURICHI ESCORTKANCHIPURAM ESCORTKANYAKUMARI ESCORTKARUR ESCORTKRISHNAGIRI ESCORTMADURAI ESCORTMAYILADUTHURAI ESCORTNAGAPATTINAM ESCORTNAMAKKAL ESCORTNILGIRIS ESCORT Hire 100% Verified Trusted sexy call girls in Rajkot Sexy call girls in Rajkot of our service will try to free you from all this and make you tension-free again and introduce you to a world beyond your comprehension. So our beautiful maidens will make you cringe in front of their lustful charm. The escort service in Rajkot offers you contentment and complete pleasure within a brief period. PERAMBALUR ESCORTPUDUKKOTTAI ESCORTRAMANATHAPURAM ESCORTRANIPET ESCORTSALEM ESCORTSIVAGANGA ESCORTTENKASI ESCORTTHANJAVUR ESCORTTHENI ESCORTTHOOTHUKUDI ESCORTTIRUCHIRAPPALLI ESCORTTIRUNELVELI ESCORTTIRUPATTUR ESCORTTIRUPPUR ESCORTTIRUVALLUR ESCORTTIRUVANNAMALAI ESCORTTIRUVARUR ESCORTVELLORE ESCORTVILUPPURAM ESCORTVIRUDHUNAGAR ESCORTADILABAD ESCORTBHADRADRI KOTHAGUDEM ESCORTHYDERABAD ESCORTJAGTIAL ESCORTJANGAON ESCORTJAYASHANKAR ESCORTJOGULAMBA ESCORTKAMAREDDY ESCORTKARIMNAGAR ESCORTKHAMMAM ESCORTKOMARAM BHEEM ESCORTMAHABUBABAD ESCORTMAHBUBNAGAR ESCORTMANCHERIAL ESCORTMEDAK ESCORTMEDCHAL ESCORTMULUGU ESCORTNAGARKURNOOL ESCORTNALGONDA ESCORTNARAYANPET ESCORTNIRMAL ESCORTNIZAMABAD ESCORTPEDDAPALLI ESCORTRAJANNA SIRCILLA ESCORTRANGA REDDY ESCORTSANGAREDDY ESCORTSIDDIPET ESCORTSURYAPET ESCORTVIKARABAD ESCORTWANAPARTHY ESCORTWARANGAL RURAL ESCORTWARANGAL URBAN ESCORTYADADRI BHUVANAGIRI ESCORTDHALAI ESCORTGOMATI ESCORTKHOWAI ESCORTNORTH TRIPURA ESCORTSEPAHIJALA ESCORTSOUTH TRIPURA ESCORTUNAKOTI ESCORTWEST TRIPURA ESCORTAGRA ESCORTALIGARH ESCORTAMBEDKAR NAGAR ESCORTAMETHI ESCORTAMROHA ESCORTAURAIYA ESCORTAYODHYA ESCORTAZAMGARH ESCORTBAGHPAT ESCORTBAHRAICH ESCORTBALLIA ESCORTBALRAMPUR ESCORTBANDA ESCORTBARABANKI ESCORTBAREILLY ESCORTBASTI ESCORTBHADOHI ESCORTBIJNOR ESCORTBUDAUN ESCORTBULANDSHAHR ESCORTCHANDAULI ESCORTCHITRAKOOT ESCORTDEORIA ESCORTETAH ESCORTETAWAH ESCORTFARRUKHABAD ESCORTFATEHPUR ESCORTFIROZABAD ESCORTGAUTAM BUDDHA NAGAR ESCORTGHAZIABAD ESCORTGHAZIPUR ESCORTGONDA ESCORTGORAKHPUR ESCORTHAMIRPUR ESCORTHAPUR ESCORTHARDOI ESCORTHATHRAS ESCORTJALAUN ESCORTJAUNPUR ESCORTJHANSI ESCORTKANNAUJ ESCORTKANPUR ESCORTKASGANJ ESCORTKAUSHAMBI ESCORTKHERI ESCORTKUSHINAGAR ESCORTLALITPUR ESCORTLUCKNOW ESCORTMAHARAJGANJ ESCORTMAHOBA ESCORTMAINPURI ESCORTMATHURA ESCORTMAU ESCORTMEERUT ESCORTMIRZAPUR ESCORTMORADABAD ESCORTMUZAFFARNAGAR ESCORTPILIBHIT ESCORTPRATAPGARH ESCORTPRAYAGRAJ ESCORTRAEBARELI ESCORTRAMPUR ESCORTSAHARANPUR ESCORTSAMBHAL ESCORTSANT KABIR NAGAR ESCORTSHAHJAHANPUR ESCORTSHAMLI ESCORTSHRAVASTI ESCORTSIDDHARTHNAGAR ESCORTSITAPUR ESCORT Rajkot escort service will make you forget everything and enjoy the true essence of arousal and lustful experience. So if you are looking for the fulfillment of your carnal desires, then our escort in Rajkot city will give you the time of your life. You will remember this time for the better part of your life as one of the most sensual and carnal ones. SONBHADRA ESCORTSULTANPUR ESCORTUNNAO ESCORTVARANASI ESCORTALMORA ESCORTBAGESHWAR ESCORTCHAMOLI ESCORTCHAMPAWAT ESCORTDEHRADUN ESCORTHARIDWAR ESCORTNAINITAL ESCORTPAURI ESCORTPITHORAGARH ESCORTRUDRAPRAYAG ESCORTTEHRI ESCORTUDHAM SINGH NAGAR ESCORTUTTARKASHI ESCORTALIPURDUAR ESCORTBANKURA ESCORTBIRBHUM ESCORTCOOCH BEHAR ESCORTDAKSHIN DINAJPUR ESCORTDARJEELING ESCORTHOOGHLY ESCORTHOWRAH ESCORTJALPAIGURI ESCORTJHARGRAM ESCORTKALIMPONG ESCORTKOLKATA ESCORTMALDA ESCORTMURSHIDABAD ESCORTNADIA ESCORTNORTH 24 PARGANAS ESCORTPASCHIM BARDHAMAN ESCORTPASCHIM MEDINIPUR ESCORTPURBA BARDHAMAN ESCORTPURBA MEDINIPUR ESCORTPURULIA ESCORTSOUTH 24 PARGANAS ESCORTUTTAR DINAJPUR ESCORTAEROCITY ESCORTMAHIPALPUR ESCORTCONNAUGHT PLACE ESCORTLAJPAT NAGAR ESCORTNEW FRIENDS COLONY ESCORTPASCHIM VIHAR ESCORTNEHRU PLACE ESCORTGREATER KAILASH ESCORTMALVIYA NAGAR ESCORTDWARKA ESCORTLAXMI NAGAR ESCORTGHAZIABAD ESCORTGURGAON ESCORTNOIDA ESCORTROHINI ESCORTSAKET ESCORTSURAJKUND ESCORTPAHARGANJ ESCORTKAROL BAGH ESCORTMUNIRKA ESCORTPUNJABI BAGH ESCORTRAJOURI GARDEN ESCORTSARITA VIHAR ESCORTVASAT KUNJ ESCORTPATEL NAGAR ESCORTSHAHDARA ESCORTANDAMAN ESCORTGOA ESCORTNICOBAR ESCORTCHANDIGARH ESCORTDADRA AND NAGAR HAVELI ESCORTDAMAN ESCORTDIU ESCORTJAMMU ESCORTKASHMIR ESCORTANANTNAG ESCORTBANDIPORA ESCORTBARAMULLA ESCORTBUDGAM ESCORTDODA ESCORTGANDERBAL ESCORTKATHUA ESCORTKISHTWAR ESCORTKULGAM ESCORTKUPWARA ESCORTPOONCH ESCORTPULWAMA ESCORTRAJOURI ESCORTRAMBAN ESCORTREASI ESCORTSAMBA ESCORTSHOPIAN ESCORTSRINAGAR ESCORTUDHAMPUR ESCORTLAKSHADWEEP ESCORTLADAKH ESCORTKARGIL ESCORTLEH ESCORTPUDUCHERRY ESCORTKARAIKAL ESCORTMAHE ESCORTYANAM ESCORT Escort Service In Rajkot For Erotic Pleasure Russian Escort service: Premium escort service Agency Offers you a convenient sexual escort service every beat, allowing them to grow their extra time while helping your sexual desire. We offer sensual services since we know the crash’s clear, typical perception may affect your feelings. So, we provide our clients get the best scent from our services. We have the best escorts that can quickly satisfy clients’ needs according to their requirements. Our beautiful and desirable escorts attempt to inspire you to share all the shades of the sexual rainbow, hanging on a splash to your dash. You may make a difference in our lives by providing an excellent Escort service in Rajkot. https://peoplefirstcommunty.com/read-blog/1000 https://mydoggymatch.com/read-blog/925_rajkot-escort-service.html https://aladin.social/read-blog/1168 https://womanity.social/read-blog/3709 https://lightworkers.social/read-blog/536 https://lightworkers.social/read-blog/537 https://share.pinxsters.com/read-blog/826 https://www.anytalkworld.com/read-blog/3223 https://messenger.wepluz.com/read-blog/1950 https://goosbi.com/blackbook/read-blog/5826 https://intgez.com/read-blog/28749 https://doomelang.com/read-blog/1387 https://sharevita.com/read-blog/13446 https://onetable.world/read-blog/48732 https://geoamor.com/read-blog/10813 https://social.acadri.org/read-blog/10204 https://digupdog.net/read-blog/25383 https://www.wowonder.xyz/read-blog/53582 https://ai.ceo/read-blog/122385 https://nextsocial.net/read-blog/34781 https://uconnect.ae/read-blog/37150 https://vizi.vn/read-blog/50301 https://thehealthbridges.com/read-blog/17761 https://biiut.com/read-blog/25207 https://peoplefirstcommunty.com/read-blog/1001 https://mydoggymatch.com/read-blog/926_rajkot-escort-service.html https://aladin.social/read-blog/1169 https://womanity.social/read-blog/3710 https://lightworkers.social/read-blog/538 https://lightworkers.social/read-blog/539 https://share.pinxsters.com/read-blog/828 https://www.anytalkworld.com/read-blog/3224 https://messenger.wepluz.com/read-blog/1951 https://goosbi.com/blackbook/read-blog/5827 https://intgez.com/read-blog/28754 https://doomelang.com/read-blog/1389 https://sharevita.com/read-blog/13451 https://digupdog.net/read-blog/25391 https://digupdog.net/read-blog/25392 https://onetable.world/read-blog/48733 https://geoamor.com/read-blog/10818 https://social.acadri.org/read-blog/10205 https://digupdog.net/read-blog/25393 https://digupdog.net/read-blog/25394 https://www.wowonder.xyz/read-blog/53585 https://ai.ceo/read-blog/122392 https://nextsocial.net/read-blog/34787 https://nextsocial.net/read-blog/34788 https://www.meisterbook.com/read-blog/4838 https://uconnect.ae/read-blog/37160 https://vizi.vn/read-blog/50304 https://thehealthbridges.com/read-blog/17763 https://fnetchat.com/read-blog/214158 https://biiut.com/read-blog/25210 https://blooder.net/read-blog/53641 https://www.social-vape.com/read-blog/129187 https://vizi.vn/read-blog/50309 https://nextsocial.net/read-blog/34793 https://ouptel.com/read-blog/31661 https://www.wowonder.xyz/read-blog/53588 https://mimedia.in/read-blog/24284 https://sharevita.com/read-blog/13458 https://www.onfeetnation.com/profile/rohit19933848 https://www.onfeetnation.com/profiles/blogs/24x7-rajkot-escort-services?xg_source=activity https://www.onfeetnation.com/profiles/blogs/escorts-rajkot?xg_source=activity https://camp-fire.jp/profile/rohit19933 http://www.pearltrees.com/rohit19933 https://list.ly/rohit-kumar-24/lists https://dzone.com/users/4656490/rohit19933.html http://www.pearltrees.com/rohit19933/simranpatel-info/id49167660 https://www.intensedebate.com/people/rohit199334 http://www.socialbookmarkssite.com/bookmark/5421281/rajkot-royalty-premium-escort-experiences/ http://www.socialbookmarkssite.com/user/Aarohi/ http://www.socialbookmarkssite.com/bookmark/5421280/elite-elegance-high-end-escorts-of-rajkot/ http://www.socialbookmarkssite.com/bookmark/5421279/rajkot-romance-intimate-escort-services/ http://www.socialbookmarkssite.com/bookmark/5421278/desire-defined-top-class-escorts-in-rajkot/ http://www.socialbookmarkssite.com/bookmark/5421276/whispers-of-pleasure-premier-escorts-in-rajkot/ http://www.socialbookmarkssite.com/bookmark/5421275/rajkot-delights-unforgettable-escort-encounters/ http://www.socialbookmarkssite.com/bookmark/5421274/sensual-secrets-exclusive-escorts-of-rajkot/ http://www.socialbookmarkssite.com/bookmark/5421272/city-of-stars-luxury-escort-experience-in-rajkot/ http://www.socialbookmarkssite.com/bookmark/5421271/glamour-in-gujarat-rajkot-s-finest-escort-agency/ http://www.socialbookmarkssite.com/bookmark/5421270/rajkot-rendezvous-elite-escort-services/ http://www.video-bookmark.com/user/rohit19933/ http://www.socialbookmarkssite.com/bookmark/5421249/elite-elegance-high-end-escorts-of-rajkot/ http://www.video-bookmark.com/bookmark/6179822/rajkot-romance:-intimate-escort-services/ http://www.video-bookmark.com/bookmark/6179821/desire-defined:-top-class-escorts-in-rajkot/ http://www.video-bookmark.com/bookmark/6179820/whispers-of-pleasure:-premier-escorts-in-rajkot/ http://www.video-bookmark.com/bookmark/6179818/sensual-secrets:-exclusive-escorts-of-rajkot/ http://www.video-bookmark.com/bookmark/6179816/sensual-secrets:-exclusive-escorts-of-rajkot/ http://www.video-bookmark.com/bookmark/6179815/city-of-stars:-luxury-escort-experience-in-rajkot/ http://www.video-bookmark.com/bookmark/6179814/glamour-in-gujarat:-rajkot\'s-finest-escort-agency/ http://www.video-bookmark.com/bookmark/6179812/rajkot-rendezvous:-elite-escort-services/ https://www.diigo.com/profile/rohit19933 https://www.theprose.com/post/810414/rajkot-escort https://www.theprose.com/post/810416/rajkot-escorts https://www.theprose.com/rohit19933 https://gotartwork.com/Blog/rajkot-call-girls/272856/ https://gotartwork.com/Profile/rohit19933-kumar/114831/ https://myspace.com/ranisingh19937 https://myspace.com/deepk4000
- חידה - ריבוע קסם של מספרים ראשוניים -לפתרון בפייתוןIn General Discussions·12 באפריל 2019מי יכול למצוא (באמצעות תוכנית קצרה בפייתון) ריבוע קסם הכולל תשע משבצות 3X3, בתוכן צריך לשבץ תשעה מספרים ראשוניים שונים (בין 0 ל- 100). הקסם הוא שסכום כל שורה כל טור וכל אלכסון בריבוע צריך להיות שווה ל- 111. התוכנית היפה ביותר תזכה ב...כל הכבוד אחדשיודע25.0265
- חברים במדברIn General Discussions·23 באפריל 2019חידה שצריך לפתור באמצעות שימוש במודל מתאים בפייתון - שני חברים נסעו לטייל במדבר. לאחד כלי בנפח 8 ליטרים ולשני כלי בנפח 5 ליטרים. הכלים היו מלאים במים אבל המים אזלו בגלל ששני החברים תעו במדבר וכעת יש להם שני כלים ריקים. לשמחתם מצאו מיכל בנפח 12 ליטרים המלא במים. על מנת שלא לריב החליטו לחלק את המים ביניהם חצי בחצי (כל אחד 6 ליטרים). כיצד הם יכולים לעשות את זה באמצעות העברת מים מכלי לכלי ? אנו מחפשים מודל בפייתון וכן את שלבי הפתרון.0270
- turtle למצוא אובייקטIn General Discussions·24 במאי 2022הקו הירוק זוהר שבאמצע המסך, מסתובב לכיוון שמאל. אנחנו בכל רגע נתון יודעים באיזו זוויות נמצא הקו מזווית 0 ( זווית 0 היא כשהקו מאונך לכיוון ימין). אנחנו יודעים מהם שיעואי הנקודה של מרכזי העיגולים, ומה הרדיוס שלהם. השאלה היא, איך המחשב יכול לדעת כאשר הקו משיק לעיגול (משיק=הקו נוגע בקצה העיגול)?0272
- כחול ולבן זה הצבע שלי - חידת פייתוןIn General Discussions·29 באפריל 2019לתוך שק אטום מכניסים עשרה כדורים כחולים ועשרה כדורים לבנים. מערבבים ושולפים באקראי שני כדורים. אם הכדורים זהים בצבעם, מחזירים לשק במקום שני הכדורים שהוצאנו, כדור אחד כחול ואם הכדורים בעלי צבעים שונים מחזירים לשק כדור לבן אחד בלבד. במצב הזה תמיד יישאר בשק כדור אחרון בצבע מסוים - איזה כדור נשאר אחרון? מה קורה כאשר משנים את תנאי החידה ומספר הכדורים הלבנים הופך לאי זוגי ? או כאשר שניהם אי זוגיים ? כדי לענות על החידה אתם נדרשים לכתוב תוכנית פייתון פשוטה שתדמה מודל של החידה, ואת השלבים המובילים לפתרון. לפני שתציצו בפתרון שלנו, נסו לבנות פתרון בעצמכם.02127
- כוורת חוזרת בפעם ה- 19In General Discussions·19 באפריל 2019טוב, וריאציה של ריבוע קסם, רק במשושה של משושים. במשושה הגדול, המורכב מ- 19 משושונים , יש להציב את המספרים 1-19, כך שסכום כל טור וכל אלכסון (כמו אלה שפירקתי סביב המשושה הגדול) לא משנה אם הוא מורכב משלושה, ארבעה או חמישה משושונים, יהיה זהה, כלומר, אותו מספר, באלכסונים העולים (משמאל למטה לימין למעלה), באלכסונים היורדים(משמאל למעלה לימין למטה) ובטורים. בכל רצף של משושונים (שהצלעות שלהן נוגעות זו בזו) לכל כיוון, יהיה בדיוק אותו סכום. מה המספר שאנו מחפשים ? ואיך מסדרים את תשעה עשר המספרים בתוך הכוורת כך שיתקבל המספר האחד הזה בכל הטורים והאלכסונים ? דרושה תוכנית בפייתון, שתייצר מודל של החידה ותמצא את הפתרון. בין הפותרים נכונה תוגרל חלת דבש או כבוד של מלכת דבורים.0259
- IQ Twist PuzzleIn General Discussions·31 ביולי 2021הפעם כתבנו תוכנה לפתרון פאזל נחמד, דומה לקטמינו, רק שהחלקים דמויי הטטריס מחוררים עם מקום לפינים שיכולים להיכנס לתוכם. בחידה מקבלים מראש את מיקום הפינים הצבעוניים, וצריך לסדר את כל החלקים, באופן שבתוך כל חלק יהיה אך ורק פין תואם בצבע (בתוך חלק אדום רק פין בצבע אדום ולא באף צבע אחר). חלקים יכולים להיות גם ריקים. והנה הקוד: import time ct = time.time() import copy import matplotlib.pyplot as plt z=[] """ red =10 green=30 yellow=20 blue=40 empty pin=minus """ Board=[[0,0,0,0,0,0,0,0], [0,0,0,0,-40,0,0,0], [0,0,0,0,0,-10,-30,0], [0,0,-20,0,0,0,0,-30]] #shapes: R=[[10,1,0],[1,0,0],[10,0,0]] P=[[4,4,4],[0,40,40],[0,0,0]] Z=[[0,1,0],[1,10,0],[1,0,0]] I=[[20,0,0],[2,0,0],[2,0,0]] L=[[4,0,0,0],[40,0,0,0],[4,0,0,0],[4,0,0,0]] V=[[3,30,0],[0,30,0],[0,0,0]] X=[[0,20,0],[2,2,20],[0,0,20]] T=[[3,3,30],[0,30,0],[0,0,0]] def rotateMatrix(matx): N=len(matx[0]) mat = copy.deepcopy(matx) # Consider all squares one by one for x in range(0, 2): # Consider elements in group # of 4 in current square for y in range(x, N - x - 1): # store current cell in temp variable temp = mat[x][y] # move values from right to top mat[x][y] = mat[y][N - 1 - x] # move values from bottom to right mat[y][N - 1 - x] = mat[N - 1 - x][N - 1 - y] # move values from left to bottom mat[N - 1 - x][N - 1 - y] = mat[N - 1 - y][x] # assign temp to left mat[N - 1 - y][x] = temp return mat def allShapeForms(shape): s = [] s.append(shape) cp = copy.deepcopy(shape) for i in range(3): x = rotateMatrix(cp) s.append(x) cp = x cp = [] for item in shape: cp.append(item[::-1]) s.append(cp) for i in range(3): x = rotateMatrix(cp) s.append(x) cp = x return s def fitForm2Board (form,tempboard): board=copy.deepcopy(tempboard) combinationFormList=[] collision = 0 for y in range(4): for x in range (8): for index, row in enumerate(form): for ind, cell in enumerate(row): if cell != 0: if (index+y<4 and ind+x<8) and (board[index+y][ind+x] == 0 or board[index+y][ind+x] == -cell): board[index+y][ind+x] = cell else: collision += 1 if collision > 0: collision = 0 board = copy.deepcopy(tempboard) else: combinationFormList.append(board) board =copy.deepcopy(tempboard) return combinationFormList def print2d(mat): for item in mat: print(item) #return all bords: def allShapePossibilities (shape,board): allposs=[] for item in allShapeForms(shape): for b1 in fitForm2Board(item, board): allposs.append(b1) return allposs for b1 in allShapePossibilities(X,Board): for b2 in allShapePossibilities(I,b1): for b3 in allShapePossibilities(P,b2): for b4 in allShapePossibilities(L,b3): for b5 in allShapePossibilities(R,b4): for b6 in allShapePossibilities(Z,b5): for b7 in allShapePossibilities(T,b6): for b8 in allShapePossibilities(V,b7): print2d(b8) print(time.time()-ct) z=b8 for ind, row in enumerate (z): for index, num in enumerate (row): if num==10: z[ind][index]=10 if num==1: z[ind][index]=12 if num==20: z[ind][index]=40 if num==2: z[ind][index]=42 if num==30: z[ind][index]=30 if num==3: z[ind][index]=32 if num==40: z[ind][index] =20 if num==4: z[ind][index]=22 fig = plt.figure() ax = fig.add_subplot(111) ax.imshow(z, extent=[1, 8, 1, 4], interpolation='none') plt.show() quit() """ #back traking loop for item in allShapeForms(X): for b1 in fitForm2Board(item, Board): for item1 in allShapeForms(Z): for b2 in fitForm2Board(item1, b1): for item2 in allShapeForms(P): for b3 in fitForm2Board(item2, b2): for item3 in allShapeForms(R): for b4 in fitForm2Board(item3, b3): for item4 in allShapeForms(T): for b5 in fitForm2Board(item4, b4): for item5 in allShapeForms(L): for b6 in fitForm2Board(item5, b5): for item6 in allShapeForms(I): for b7 in fitForm2Board(item6, b6): for item7 in allShapeForms(V): for b8 in fitForm2Board(item7, b7): print2d(b8) print("the end") quit() """0260
- כיצד להפיק את המיטב מהחידות והפתרונותIn General Discussions·5 באוגוסט 2021החידות בפורום מטרתן לימוד והנאה, אבל יש להן תופעת לוואי נוספת, גילינו שהחידות משמשות גם בראיונות עבודה (וגם תלמידים שרוצים להעתיק פרויקט אינסטנט ולשפר...), ולכן, גם מעסיקים, מרואיינים ותלמידים סוררים מוצאים עניין בחידות מהסוג המופיע בפורום שלנו. הפתרונות לחידות מופיעות כפוסט בתוך הפוסט של החידה. לעיתים יש הסברים לפתרונות ולעיתים הקורא השקדן צריך לנתח את הקוד בעצמו (זה מאוד מאוד קשה - כך שתלמיד שיצטרך להסביר את הקוד עלול להיות בבעיה אם לא ניתח אותו עד הסוף. כמובן שרצוי לנסות לפתור בעצמכם לפני שמציצים בפתרונות שהבן שלי טבע והחתום מטה מצאנו לאורך השנים (רמות הקוד משתנות כתלות בשלב בחיים בו נכתב הפתרון). נשמח לראות הערות ופתרונות שלכם לחידות השונות, אין צורך להיבהל מהרשמה לפורום, אנו לא שולחים ספאם ולא מטרידים איש ואפילו לא מתעניינים ביום ההולדת שלכם. בהצלחה לכולם. אחת לכמה זמן אנו מוחקים את הפוסטים האינפורמטייביים ומשאירים רק את החידות!!02107
- (פותר חידאתו (כוורת - hidato solver (bee hive)In General Discussions·18 ביוני 2020העיתונים בארץ כולל העיתון של המדינה (ובעיקר ברכבת) כוללים גירסא מיוחדת של פאזל חידאתו (hidato puzzle). מדובר בפאזל המפוזרים בו מספרים, בגירסא הרווחת בארץ בין 1-61, וצריך לאתר ולשבץ את המספרים החסרים בפאזל, כאשר החוק הוא שכל מספר חייב לגור בשכנות למספר הגדול והקטן ממנו (למעט המספרים 1 ו- 61 שלהם יש רק שכן מצד אחד). באינטרנט ניתן למצוא פותרי חידאתו לגירסאות ישנות של החידה כאשר המספרים נמצאים בתוך תאים ריבועיים (כמו תשבץ). אנחנו מציגים פתרון לחידות המתפרסמות בידיעות אחרונות שבו מוצג תשבץ בתוך לוח משושה עם תאים משושים. הפתרון שלנו (python 3 כמובן) בהמשך נפרסם הסבר לקוד (לעת עתה אפשר לנסות לפענח לבד - זה לא קל): board = [] given = [] start = None def setup(s): global board, given, start lines = s.splitlines() ncols = len(lines[4].split()) nrows = len(lines) board = [[-1] * (ncols + 2) for _ in range(nrows + 2)] for r, row in enumerate(lines): for c, cell in enumerate(row.split()): if cell == "__": board[r + 1][c + 1] = 0 continue elif cell == ".": continue # -1 else: val = int(cell) board[r + 1][c + 1] = val given.append(val) if val == 1: start = (r + 1, c + 1) given.sort() def solve(r, c, n, next=0): if n > given[-1]: return True if board[r][c] and board[r][c] != n: return False if board[r][c] == 0 and given[next] == n: return False back = 0 if board[r][c] == n: next += 1 back = n board[r][c] = n for i in [-1,0,1]: if i ==0: for j in [-1,1]: if solve(r + i, c + j, n +1, next): return True if i==-1 and r<6: for j in [0,1]: if solve(r + i, c + j, n +1, next): return True if i==-1 and r>5: for j in [-1,0]: if solve(r + i, c + j, n +1, next): return True if i==1 and r<5: for j in [-1,0]: if solve(r + i, c + j, n +1, next): return True if i==1 and r>4: for j in [1,0]: if solve(r + i, c + j, n +1, next): return True board[r][c] = back return False def print_board(): d = {-1: " ", 0: "__"} bmax = max(max(r) for r in board) form = "%" + str(len(str(bmax)) + 1) + "s" for r in board[1:-1]: print( "".join(form % d.get(c, str(c)) for c in r[1:-1])) #here you put the board "__" for empty cell "." for vacant place in th row (out of the hive) #hi =". . . . __ __ __ 25 __ . . . .\n. . . __ 20 __ __ 23 __ . . .\n. . __ __ __ __ __ __ 1 . .\n. __ __ __ __ 17 __ __ __ .\n33 __ 60 __ __ 15 13 12 __\n. 36 __ 61 __ 54 __ __ __ .\n. . __ __ __ __ 53 51 __ . .\n. . . 39 __ 43 __ __ __ . . .\n. . . . 41 __ __ __ __ . . . ." hi =". . . . __ __ __ __ __ . . . .\n. . . __ 48 __ __ __ 42 . . .\n. . __ 51 __ __ __ 41 1 . .\n. __ __ 59 __ 61 __ __ __ .\n__ 56 __ __ __ 33 __ 5 __\n. __ 57 __ 25 __ __ 9 __ .\n. . 22 __ 24 __ __ 10 __ . .\n. . . __ 18 __ __ 12 __ . . .\n. . . . __ __ 15 __ __ . . . ." setup(hi) print_board() print("********************") solve(start[0], start[1], 1) print_board() """out put: __ __ __ __ __ __ 48 __ __ __ 42 __ 51 __ __ __ 41 1 __ __ 59 __ 61 __ __ __ __ 56 __ __ __ 33 __ 5 __ __ 57 __ 25 __ __ 9 __ 22 __ 24 __ __ 10 __ __ 18 __ __ 12 __ __ __ 15 __ __ ******************** 47 46 45 44 43 49 48 38 39 40 42 50 51 37 36 35 41 1 53 52 59 60 61 34 3 2 54 56 58 27 28 33 4 5 6 55 57 26 25 29 32 9 7 22 23 24 30 31 10 8 21 18 17 16 12 11 20 19 15 14 13 """02583
- על נהרות בבל- חידת פייתוןIn General Discussions·23 באפריל 2019בנהרות בבל לא מקובל היה שגבר ישהה במחיצתה של אישה אחרת, בלי שאשתו לצידו. על גדת החידקל עמדו שלושה זוגות (בעל+אישה) ועליהם לחצות את הנהר באמצעות סירה שיש בה מקום לשני נוסעים בלבד, כך שכל ששת הנוסעים יגיעו לצד השני של הנהר. בשום שלב לא יכול להימצא גבר במחיצת אישה אחרת, אלא אם אשתו לידו, גברים יכולים להיות עם גברים אחרים, ונשים יכולות להיות עם מי שהן רוצות (רק לא עם גבר שאשתו לא לצידו) - ככה זה בבבל. צריך לבנות מודל בפייתון המדמה את החידה ומניב את שלבי הפתרון.01127
- מגדל האנוי - חידת פייתוןIn General Discussions6 במאי 2019פתרון רקורסיבי המכיל שלושה שלבים ושתי רקורסיות, הרעיון הוא לחלק את הבעיה לסדרה של בעיות קטנות יותר, אם למשל יש לי 3 טבעות להזיז לעמוד הימני ביותר, אני יודע שאני צריך להזין את שתי הטבעות העליונות לעמוד האמצעי, וכך אני אוכל להזיז את הטבעות האחרונה ליעד שלה, לאחר השלב הזה אני נותר עם מספר טבעות קטן באחד אבל על עמוד אחר (העמוד האמצעי ולא העמוד השמאלי) כך שהעמוד השמאלי הוא הופך להיות עמוד הביניים בדרך ליעד לכן לאחר השלב השני של הזזת הטבעת הבודדות (שזה המהלך היחיד אותו אנו רוצים להדפיס) אנו מפעילים שוב את הפונקציה המקורית רק שהפעם מהעמוד שהיה במקור עמוד הביניים ליעד: def tower(n,s,i,d):#n=מספר הטבעות s=מקור הטבעות i=עמוד מקשר d=היעד של הטבעות if n==0: pass else: tower(n-1,s,d,i) print(s,d) tower(n-1,i,s,d) tower(5,"a","b","c") #for 5 rings >>> b c #- c-ל b-הטבעת הראשונה עוברת מ a c b a c b c a b a b c a c a b c b a c b a b c a c10
- חידת הצפרדעים והקרפדותIn General Discussions20 באפריל 2019הפתרון שלי עובד עבור כל n צפרדעים ולוח של 2n+1 - במקרה הזה עבור 5 צפרדעים וחמש קרפדות המחליפות מקום. בפתרון שלי קרפדות מסומנות ב- 0, צפרדעים מסומנות ב- 1 והמקום הריק ב- 2- #Toads = 0 #Frogs = 1 #Empty Place = 2 class Frogs_and_Toads: def __init__(self, n): self.n = n self.board = [0 for i in range(n)] + [2]+ [1 for i in range(n)] self.solution = [1 for i in range(n)] + [2]+ [0 for i in range(n)] self.steps = [self.board[::]] self.solve() def pm(self, board): # bc stands for board copy - a copy of the board possible_moves = [] for place, item in enumerate(board): try: if item == 0: if board[place+1] == 2: bc = board[::] bc[place] = 2 bc[place+1] = 0 possible_moves.append(bc) if item == 1: if place != 0: if board[place-1] == 2: bc = board[::] bc[place] = 2 bc[place-1] = 1 possible_moves.append(bc) except: pass if place < len(board)-2: if item == 0 and board[place+1] == 1 and board[place+2] == 2: bc = board[::] bc[place] = 2 bc[place+2] = 0 possible_moves.append(bc) if place > 1: if item == 1 and board[place-1] == 0 and board[place-2] == 2: bc = board[::] bc[place] = 2 bc[place-2] = 1 possible_moves.append(bc) return possible_moves def solve(self): if self.solution in self.steps: for item in self.steps: print(item) exit() else: for item in self.pm(self.steps[-1]): self.steps.append(item) self.solve() self.steps.pop() Frogs_and_Toads(5) >>> [0, 0, 0, 0, 0, 2, 1, 1, 1, 1, 1] [0, 0, 0, 0, 2, 0, 1, 1, 1, 1, 1] [0, 0, 0, 0, 1, 0, 2, 1, 1, 1, 1] [0, 0, 0, 0, 1, 0, 1, 2, 1, 1, 1] [0, 0, 0, 0, 1, 2, 1, 0, 1, 1, 1] [0, 0, 0, 2, 1, 0, 1, 0, 1, 1, 1] [0, 0, 2, 0, 1, 0, 1, 0, 1, 1, 1] [0, 0, 1, 0, 2, 0, 1, 0, 1, 1, 1] [0, 0, 1, 0, 1, 0, 2, 0, 1, 1, 1] [0, 0, 1, 0, 1, 0, 1, 0, 2, 1, 1] [0, 0, 1, 0, 1, 0, 1, 0, 1, 2, 1] [0, 0, 1, 0, 1, 0, 1, 2, 1, 0, 1] [0, 0, 1, 0, 1, 2, 1, 0, 1, 0, 1] [0, 0, 1, 2, 1, 0, 1, 0, 1, 0, 1] [0, 2, 1, 0, 1, 0, 1, 0, 1, 0, 1] [2, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1] [1, 0, 2, 0, 1, 0, 1, 0, 1, 0, 1] [1, 0, 1, 0, 2, 0, 1, 0, 1, 0, 1] [1, 0, 1, 0, 1, 0, 2, 0, 1, 0, 1] [1, 0, 1, 0, 1, 0, 1, 0, 2, 0, 1] [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 2] [1, 0, 1, 0, 1, 0, 1, 0, 1, 2, 0] [1, 0, 1, 0, 1, 0, 1, 2, 1, 0, 0] [1, 0, 1, 0, 1, 2, 1, 0, 1, 0, 0] [1, 0, 1, 2, 1, 0, 1, 0, 1, 0, 0] [1, 2, 1, 0, 1, 0, 1, 0, 1, 0, 0] [1, 1, 2, 0, 1, 0, 1, 0, 1, 0, 0] [1, 1, 1, 0, 2, 0, 1, 0, 1, 0, 0] [1, 1, 1, 0, 1, 0, 2, 0, 1, 0, 0] [1, 1, 1, 0, 1, 0, 1, 0, 2, 0, 0] [1, 1, 1, 0, 1, 0, 1, 2, 0, 0, 0] [1, 1, 1, 0, 1, 2, 1, 0, 0, 0, 0] [1, 1, 1, 2, 1, 0, 1, 0, 0, 0, 0] [1, 1, 1, 1, 2, 0, 1, 0, 0, 0, 0] [1, 1, 1, 1, 1, 0, 2, 0, 0, 0, 0] [1, 1, 1, 1, 1, 2, 0, 0, 0, 0, 0] הפתרון מראה את כל התהליך של החלפת המקומות בין הצפרדעים לקרפדות. טבע ארבילי10
- חידת הצפרדעים והקרפדותIn General Discussions17 באפריל 2019טוב אם ניסיתם במשך כמה ימים ולא הצלחתם , הנה פתרון באמצעות מחלקה -class - וגם רקורסיה - וגם backtracking . לא פתרון של שתי שורות (למי שיש לו רעיון שידביק כאן בשמחה אני לא משלם לפי מספר העמודים באתר), אלא פתרון כזה שאפשר, אולי, ללמוד ממנו משהו - האסטרטגיה של- backtracking מחפשת את הפתרון הנכון מבין האופציות שיש בכל סיטואציה (במדריך יש אנלוגיה של עץ וענפים שזה סבבה), כאשר לא מוצאת בענף מסוים, משיבה את המצב לקדמותו וממשיכה לחפש (למשל אם הסתבר שלהזיז צפרדע לא נותן פתרון, אזי בסיבוב הבא, באותה סיטואציה, התוכנית תקפיץ קרפדה (לא לבעלי קיבה חלשה). תחילה מקימים מחלקה בשם Creature המתאימה לכל הייצורים האמפיביים, הן צפרדעים והן קרפדות. המחלקה כוללת את הפונקציות הבאות __init__ המספרת לנו מה יש במחלקה - type הוא attribute המטפל בסוג האמפיבי שלנו, צפרדע "f" או קרפדה "t" (באנגלית toad). בהמשך location מטפלת במיקום של הייצור בביצה שלנו שהיא רשימה בשם line (האיבר הראשון משמאל הוא [line[0 כך שהמיקום של מי שנמצא שם הוא 0). על מנת שנוכל להזיז את הייצורים יש לנו מתודות (שהן פונקציות בתוך מחלקה) כמו move , jump undo_move המותאמות לכל ייצור בנפרד. יש לנו מתודה option המתארת את אפשרות התזוזה של כל ייצור, ויש גם מתודה __repr__ כדי לייצג באופן הולם את הדרך שבה אנו רוצים לראות את הייצור כאשר נבקש להדפיס אותו למשל. class Creature: def __init__(self,type,location,line): self.type=type self.location=location self.line=line def move(self): self.last_location=self.location if self.type=="f" and self.location<6 and self.line[self.location+1]==0: self.line[self.location+1]=self self.line[self.location]=0 self.location += 1 if self.type == "t" and self.location>0 and self.line[self.location-1]==0: self.line[self.location - 1] = self self.line[self.location] = 0 self.location -= 1 def jump(self): self.last_location = self.location if self.type == "f" and self.location<5 and self.line[self.location+1].type=="t" and self.line[self.location + 2] == 0: self.line[self.location + 2] = self self.line[self.location] = 0 self.location += 2 if self.type == "t" and self.location>1 and self.line[self.location-1].type=="f" and self.line[self.location - 2] == 0: self.line[self.location - 2] = self self.line[self.location] = 0 self.location -= 2 def option(self): option=[] if self.type == "f" and self.location<6 and self.line[self.location + 1] == 0: option.append("m") elif self.type == "t" and self.location>0 and self.line[self.location - 1] == 0: option.append("m") elif self.type == "f" and self.location<5 and self.line[self.location + 1].type == "t" and self.line[self.location + 2] == 0: option.append("j") elif self.type == "t" and self.location>1 and self.line[self.location - 1].type == "f" and self.line[self.location - 2] == 0: option.append("j") else: option.append("n") return option[-1] def undo_move(self): if self.line[self.last_location]==0: self.line[self.location]=0 self.line[self.last_location]=self self.location,self.last_location=self.last_location,self.location def __repr__(self): return f"{self.type}{self.location}" #: מכאן אנו מתחילים לייצר את המופעים של המחלקה שלנו Line=[] Line.append(Creature("f",0,Line)) Line.append(Creature("f",1,Line)) Line.append(Creature("f",2,Line)) Line.append(0) Line.append(Creature("t",4,Line)) Line.append(Creature("t",5,Line)) Line.append(Creature("t",6,Line)) #-זו פונקציה שאומרת מתי סיימנו עם החידה הזו def check_solve(line): if line[3]==0: if line[0].type=="t" and line[1].type=="t"and line[2].type=="t" and line[4].type=="f" and line[5].type=="f" and line[6].type=="f": return True # -כאן אנו מתחילים עם הפונקציה הרקורסיבית שפותרת את החידה def solve (line): l=line[::] #מתוך הרשימה אנו יוצרים אובייקט חדש ולא רק מצביע נוסף לאותה רשימה print(line) if check_solve(line): print(line,"the end") exit() else: for p,v in enumerate(l): #כאן מתחילים את האיטרציה על האובייקט החדש שהופק מהרשימה moj = 0 #זה מיועד להראות שאכן ביצענו קפיצה או תזוזה של משהו if v==0 or v.option()=="n": #כאשר אנו נתקלים ב-0 או כשאין אפשרות תזוזה ממשיכים continue z = l.index(0) #המיקום של 0 ברשימה ילמד אותנו לאן עתיד היצור לזוז if v.option()=="j": line[p].jump() moj+=1 elif v.option() == "m": line[p].move() moj += 1 solve(line) #זאת הרקורסיה בהתגלמותה if moj>0: line[z].undo_move() #כך משיבים הכל למקום כשלא הושלם הפתרון solve(Line) #כך משתמשים במחלקה שבנינו >>> הפתרון כתוצאה מהרצת התוכנית נראה כך - [f0, f1, f2, 0, t4, t5, t6] [f0, f1, 0, f3, t4, t5, t6] [f0, 0, f2, f3, t4, t5, t6] [0, f1, f2, f3, t4, t5, t6] [f0, f1, t2, f3, 0, t5, t6] [f0, f1, t2, 0, f4, t5, t6] [f0, 0, t2, f3, f4, t5, t6] [0, f1, t2, f3, f4, t5, t6] [t0, f1, 0, f3, f4, t5, t6] [t0, 0, f2, f3, f4, t5, t6] [t0, f1, 0, f3, f4, t5, t6] [t0, 0, f2, f3, f4, t5, t6] [t0, f1, f2, t3, f4, 0, t6] [t0, f1, f2, t3, 0, f5, t6] [t0, f1, 0, t3, f4, f5, t6] [t0, 0, f2, t3, f4, f5, t6] [t0, t1, f2, 0, f4, f5, t6] [t0, t1, 0, f3, f4, f5, t6] [t0, t1, f2, 0, f4, f5, t6] [t0, t1, 0, f3, f4, f5, t6] [t0, t1, f2, f3, t4, f5, 0] [t0, t1, f2, f3, t4, 0, f6] [t0, t1, f2, 0, t4, f5, f6] [t0, t1, 0, f3, t4, f5, f6] [t0, t1, t2, f3, 0, f5, f6] [t0, t1, t2, 0, f4, f5, f6] [t0, t1, t2, 0, f4, f5, f6] the end זו לא הדרך הקצרה ביותר, אבל זו דרך לדעת שיש פתרון לחידה שלנו.10
- גן החיות בפלורידה - חידת פייתוןIn General Discussions19 באפריל 2019כתבנו רבות על הספרייה itertools ונפלאותיה, כמו על יכולתה, בעיקר כאשר לא עוסקים ברשימה ארוכה מידי, לייצר במהירות את כל האפשרויות (במקרה שלנו לסידור החיות בשורה) כאשר אין חזרה על חיה אחת פעמיים (במקרה הזה המתודה נקראת permutations). כל מה שנותר לנו לעשות הוא לבחון את קיום כל תנאי החידה ובום... יש פתרון - import itertools zoo=["cat","dog","elefant","horse","giraffe","lion","monkey"] def check_zoo(zoo): if zoo.index("cat")-zoo.index("dog")==1: if zoo.index("giraffe")>zoo.index("elefant")>zoo.index("horse") or zoo.index("horse")>zoo.index("elefant")>zoo.index("giraffe"): if zoo.index("lion")==3: if abs(zoo.index("dog")-zoo.index("monkey"))==2: if abs(zoo.index("giraffe")-zoo.index("dog"))==4: if zoo.index("cat")>zoo.index("horse"): return True return False zoo_permutations=itertools.permutations(zoo) for line in zoo_permutations: if check_zoo(line): print(line) הפתרון היחיד המתקבל - ('giraffe', 'elefant', 'horse', 'lion', 'dog', 'cat', 'monkey')10
bottom of page