Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

Mathematica, (削除) 30 (削除ここまで) 17 bytes

#Mathematica, (削除) 30 (削除ここまで) 17 bytes# -13 bytes by murphy

Sort@#.-Sort@-#2&

Function, input is vector1(list),vector2(list) Several revisions:

Plus@@(Sort@#*Reverse@Sort@#2)&(*me*)
Total[Sort@#*Reverse@Sort@#2]& 
Sort@#.Reverse@Sort@#2& (*alephalpha*)
Sort@#.Sort[#2,#>#2&]& (*murphy*)
Sort@#.SortBy[#2,-#&] (*me*)
Sort@#.-Sort@-#2& (*murphy*)

#Mathematica, (削除) 30 (削除ここまで) 17 bytes# -13 bytes by murphy

Sort@#.-Sort@-#2&

Function, input is vector1(list),vector2(list) Several revisions:

Plus@@(Sort@#*Reverse@Sort@#2)&(*me*)
Total[Sort@#*Reverse@Sort@#2]& 
Sort@#.Reverse@Sort@#2& (*alephalpha*)
Sort@#.Sort[#2,#>#2&]& (*murphy*)
Sort@#.SortBy[#2,-#&] (*me*)
Sort@#.-Sort@-#2& (*murphy*)

Mathematica, (削除) 30 (削除ここまで) 17 bytes

-13 bytes by murphy

Sort@#.-Sort@-#2&

Function, input is vector1(list),vector2(list) Several revisions:

Plus@@(Sort@#*Reverse@Sort@#2)&(*me*)
Total[Sort@#*Reverse@Sort@#2]& 
Sort@#.Reverse@Sort@#2& (*alephalpha*)
Sort@#.Sort[#2,#>#2&]& (*murphy*)
Sort@#.SortBy[#2,-#&] (*me*)
Sort@#.-Sort@-#2& (*murphy*)
added 312 characters in body
Source Link

#Mathematica, 30(削除) 30 (削除ここまで) 17 bytes# Total[Sort@#*Reverse@Sort@#2]& Function-13 bytes by murphy

Sort@#.-Sort@-#2&

Function, input is vector1(list),vector2(list) Several revisions:

Plus@@(Sort@#*Reverse@Sort@#2)&(*me*)
Total[Sort@#*Reverse@Sort@#2]& 
Sort@#.Reverse@Sort@#2& (*alephalpha*)
Sort@#.Sort[#2,#>#2&]& (*murphy*)
Sort@#.SortBy[#2,-#&] (*me*)
Sort@#.-Sort@-#2& (*murphy*)

#Mathematica, 30 bytes# Total[Sort@#*Reverse@Sort@#2]& Function, input is vector1(list),vector2(list)

#Mathematica, (削除) 30 (削除ここまで) 17 bytes# -13 bytes by murphy

Sort@#.-Sort@-#2&

Function, input is vector1(list),vector2(list) Several revisions:

Plus@@(Sort@#*Reverse@Sort@#2)&(*me*)
Total[Sort@#*Reverse@Sort@#2]& 
Sort@#.Reverse@Sort@#2& (*alephalpha*)
Sort@#.Sort[#2,#>#2&]& (*murphy*)
Sort@#.SortBy[#2,-#&] (*me*)
Sort@#.-Sort@-#2& (*murphy*)
Source Link

#Mathematica, 30 bytes# Total[Sort@#*Reverse@Sort@#2]& Function, input is vector1(list),vector2(list)

AltStyle によって変換されたページ (->オリジナル) /