# Search Results

Results tagged with Search options user 41723
54 results

Challenges related to elementary arithmetic.

Brachylog, 12 bytes ,10y:[?]z:*a Try it online! I need to implement that I * [A, B, C] = [I*A, I*B, I*C]… Explanation ,10y The range [0, 1, …, 10] :[?]z The list [[0, Input] …
answered Sep 7 '16 by Fatalize
Brachylog, 16 bytes ;I×≜.ẹḅhᵐc~a₀90∧ Try it online! This is pretty slow Explanation ;I×≜. Output = Input × I .ẹḅ Deconcatenate into runs of consecutive equal digits …
answered Jul 6 '17 by Fatalize
Brachylog, 14 bytes #$:18ot|:1.4ot Try it online! Explanation #$ Input is an integer :18o Sort the list [Input, 18] t Take the last element | …
answered Sep 29 '16 by Fatalize
Brachylog, 50 bytes ,L##l4,L:{.~e[0:3]}a:[2:5:10:20]*+:10+?,L:{:2*.}a. Returns false when not possible.
answered Jun 29 '16 by Fatalize
Brachylog, 42 bytes :{bh.}a*g:?z:2aott. [D:[S:I:J]]tt:D*:I/:S. Try it online! / above is integer division because both J*D and I are integers (D is a multiple of I in fact). Explanation Main pr …
answered Jul 21 '16 by Fatalize
Brachylog, 8 bytes (Non-competing) <.=:ef+? = was modified after this challenge got posted, so that it now works on possibly infinite domains, which is the case here. Explanation <. Output …
answered Jun 2 '16 by Fatalize
Brachylog, 2 bytes +. Expects a list with the two numbers as input Alternatively, if you want the answer to STDOUT: +w
answered Jul 2 '16 by Fatalize
Brachylog, 10 bytes <.='e3:I'* Try it online! Explanation (?)<. Output > Input .= Assign a value to the Output . 'e3 3 cannot be an element of the …
answered Nov 3 '16 by Fatalize
Brachylog, 35 32 bytes lL,?:ef+:?:L+I,(0>?h:2*:Ir-:1+.;I.) lL,(0>?h:1--I;I0),?b:ef+:?:L:I+. Explanation lL, L is the length of the Input ( 0>? Input < 0 h:1--I I …
answered Jun 30 '16 by Fatalize
Brachylog, 19 bytes 0,1 .|-1=:0&Rr+R=o. Explanation 0,1 . § If Input is 0, unify the Output with 1 | § Else -1=:0&R § unify R with the output of this ma …
answered Jan 31 '16 by Fatalize
Brachylog, 19 17 bytes hHyL,?+y:Lx+\$_:H+ Explanation hH Input = [H, whatever] HyL, L = [0, …, H] ?+ Sum the two elements in the Input y …
answered Sep 1 '16 by Fatalize
Brachylog, 9 bytes h⊇Ċ.+~t?∧ Try it online! Assuming I understood the challenge correctly… Explanation h⊇Ċ Ċ ('couple') has two elements, and is a subset of the head of the input Ċ. …
answered Mar 20 '17 by Fatalize
41answers
Given three sidelengths of a triangle, evaluate its aspect ratio AR given the following formula: where The closer to equilaterality a triangle is, the closer to 1 its aspect ratio is. The aspect …
asked Nov 27 '16 by Fatalize
Brachylog, 16 bytes or:@]feL:la#=,Lh Try it online! Explanation or Sort the list in descending order. :@]f Find all suffixes of the list. eL Take one …
answered Sep 16 '16 by Fatalize
Brachylog, 5 bytes ⟦^₂ᵐ+ Try it online! Explanation ⟦ Range ^₂ᵐ Map square + Sum
answered Oct 17 '17 by Fatalize

15 30 50 per page