🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.funkcyjne
1 messages
1 total messages Started by " mariusz117" Fri, 24 Apr 2009 09:35
wybieranie liczb ze zbioru
#637
Author: " mariusz117"
Date: Fri, 24 Apr 2009 09:35
21 lines
583 bytes
Witajcie,

Mój problem dotyczy wybierania liczb. Powiedzmy, ¿e mam zbór liczb i chcê
wybraæ co nt± liczbê. Zobrazuje to przyk³adem gdzie c bêdzie oznaczaæ co
któr± liczbê wybieram.

org: 0 1 2 3 4 5 6 7
--------------------
c=2: 0 2 4 6 1 3 5 7
c=3: 0 3 6 1 4 7 2 5
c=4: 0 4 0 4 0 4 0 4
c=5: 0 5 2 7 4 1 6 3
c=6: 0 6 4 2 0 6 4 2
c=7: 0 7 6 5 4 3 2 1

Jesli kto¶ wie jak go rozwi±zaæ to bardzo proszê o podanie algorytmu w miarê
prosty sposób, przy pomocy s³ów kluczowych: while, if, for

pozdrawiam

--
Wys³ano z serwisu Usenet w portalu Gazeta.pl -> http://www.gazeta.pl/usenet/
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads