Skip to main content
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
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
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 not deleted user 104387

The challenge involves mathematics in some central way. Also consider using more specific tags, listed in the tag wiki info.

1 vote

Capture the Flag... with a twist

awk, 78 76 71 69 bytes In the following, remove newline (that's only for readability) and save one byte. 79 bytes {s[$1]=s[$1]+$2-(3*$3)} END{print (s["A"]>s["B"])?"A":(s["A"]<s["B"])?"B":"="} 77 b …
gildux's user avatar
  • 421
1 vote

Product over a range

HP48 User RPL, Input is a and b in the stack. « 'X' DUP 4 UNROLL UNROT 1 SEQ ∏LIST »
gildux's user avatar
  • 421
1 vote

Multiply two numbers

shell, 14 bytes dc -e"$1 $2*p"
gildux's user avatar
  • 421
1 vote

Multiply two numbers

awk, 13 bytes Simply {print $1*$2}
gildux's user avatar
  • 421
2 votes

Sum of all integers from 1 to n

shell, 17 14 bytes First attempt was: seq -s+ -t0 $1|bc But not all implementations of seq know -t option. Second attempt is: seq -s+0 $1|bc
gildux's user avatar
  • 421
3 votes

Sum of all integers from 1 to n

HP UserRPL, 5.5 bytes The source, pretty-formatted and commented: « 'X' @function@ DUP @variable@ 1 @start@ 4 ROLL @end, ...is programm input@ SEQ @create-list@ ΣLIST @sum list items, equi …
gildux's user avatar
  • 421