Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
5
Task/Josephus-problem/Prolog/josephus-problem-2.pro
Normal file
5
Task/Josephus-problem/Prolog/josephus-problem-2.pro
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
?- josephus(41, 3, Survivors).
|
||||
Survivors = [30].
|
||||
|
||||
?- josephus(41, 3, 5, Survivors).
|
||||
Survivors = [3, 15, 21, 30, 34].
|
||||
Loading…
Add table
Add a link
Reference in a new issue