Thread View: pl.comp.lang.funkcyjne
1 messages
1 total messages
Started by mariusz117
Fri, 24 Apr 2009 09:35
wybieranie liczb ze zbioru
Author: mariusz117
Date: Fri, 24 Apr 2009 09:35
Date: Fri, 24 Apr 2009 09:35
22 lines
1350 bytes
1350 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