Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 41723

Challenges related to elementary arithmetic.

2
votes
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
3
votes
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
5
votes
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
2
votes
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
3
votes
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
2
votes
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
8
votes
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
21
votes
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
6
votes
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
4
votes
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
4
votes
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
4
votes
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
35
votes
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
1
vote
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
1
vote
Brachylog, 5 bytes ⟦^₂ᵐ+ Try it online! Explanation ⟦ Range ^₂ᵐ Map square + Sum
answered Oct 17 '17 by Fatalize

15 30 50 per page