Sync
This commit is contained in:
parent
6f050a029e
commit
776bba907c
3887 changed files with 59894 additions and 7280 deletions
|
|
@ -0,0 +1,9 @@
|
|||
{Baker, Cooper, Fletcher, Miller, Smith};
|
||||
(Unequal @@ %) && (And @@ (0 < # < 6 & /@ %)) &&
|
||||
Baker < 5 &&
|
||||
Cooper > 1 &&
|
||||
1 < Fletcher < 5 &&
|
||||
Miller > Cooper &&
|
||||
Abs[Smith - Fletcher] > 1 &&
|
||||
Abs[Cooper - Fletcher] > 1 //
|
||||
Reduce[#, %, Integers] &
|
||||
|
|
@ -0,0 +1 @@
|
|||
Baker == 3 && Cooper == 2 && Fletcher == 4 && Miller == 5 && Smith == 1
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
p = Position[#1, #2][[1, 1]] &;
|
||||
Permutations[{"Baker", "Cooper", "Fletcher", "Miller", "Smith"}, {5}];
|
||||
Select[%, #[[5]] != "Baker" &];
|
||||
Select[%, #[[1]] != "Cooper" &];
|
||||
Select[%, #[[1]] != "Fletcher" && #[[5]] != "Fletcher" &];
|
||||
Select[%, #~p~"Miller" > #~p~"Cooper" &];
|
||||
Select[%, Abs[#~p~"Smith" - #~p~"Fletcher"] > 1 &];
|
||||
Select[%, Abs[#~p~"Cooper" - #~p~"Fletcher"] > 1 &]
|
||||
|
|
@ -0,0 +1 @@
|
|||
{{"Smith", "Cooper", "Baker", "Fletcher", "Miller"}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue