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 8774

Code-golf is a competition to solve a particular problem in the fewest bytes of source code. If you want to score by characters instead of bytes, please state this explicitly in the challenge. If source code length is not the primary scoring criterion, consider using another tag instead.

4
votes
Brachylog, 26 bytes g;?z{tWl⟧₆∋I;W↺₍R;W≠&h∋R}ˢ Try it online! g;?z % Zip the whole input with each word in it respectively { }ˢ % Apply this predi …
answered Aug 4 '18 by sundar - Reinstate Monica
3
votes
QPython for Android, 133 bytes from androidhelper import* d=Android() d.batteryStartMonitoring() d.dialogCreateAlert(str(d.batteryGetLevel()[1])+"%") d.dialogShow() The +"%" isn't strictly nece …
answered Jul 31 '18 by sundar - Reinstate Monica
1
vote
MATL, 15 9 bytes U&=?}1MX> Try it online! Multiple testcases Just trying to keep my MATL chops from getting too rusty! Edit: rusty after all; saved 6 bytes, thanks to @LuisMendo. Explanation …
answered Oct 8 '18 by sundar - Reinstate Monica
0
votes
Perl 5 -n -M5.010, 54 bytes use List::Util'/.+/';@n=split/,/;uniq(@n)>1&&say max@n Try it online!
answered Oct 8 '18 by sundar - Reinstate Monica
7
votes
Brachylog, 6 bytes /₁₀₀⌉₁ Try it online! Just wanted to try my hand at Brachylog. Uses the "divide by 100 and ceil the result" method that many other answers use.
answered Jul 23 '18 by sundar - Reinstate Monica
4
votes
Retina, 26 bytes r`(.*)(.?.) $2*X$1* X+ _ . Try it online! My first attempt at Retina. Can probably be golfed more (though, I like the (.?.) babyface in this one).
answered Jul 23 '18 by sundar - Reinstate Monica
2
votes
Brachylog, 6 bytes p⟨\=≡⟩ Try it online! Assuming output can be "true." and "false." instead of "True" and "False". If not, it's a trivial change to: 22 bytes p⟨\=≡⟩∧"True"|∧"False" Try it o …
answered Aug 11 '18 by sundar - Reinstate Monica
4
votes
Perl 5 -p, 18 15 bytes $_=1+--$_/100|0 Try it online! (-3 whole bytes, thanks to @Dom Hastings.) Or with -p -MPOSIX: 15 13 bytes $_=ceil$_/100 Try it online! (-2 bytes, again thanks to …
answered Jul 23 '18 by sundar - Reinstate Monica
0
votes
MATL, 44 47 bytes 0&)Uqw70=?32- 5*9/]OOhw:"@t9*5/32+VY@Um?@4MhvXs Try it online! (+3 bytes to output 0 0 for no such temperatures (instead of empty output).)
answered Jul 21 '18 by sundar - Reinstate Monica
1
vote
Julia 0.6, 51 bytes (x,d)->(y=string(round(x, d));y*"0"^(d-endof(y)+2)) Try it online! With trailing zeros as per the questions's "Trailing zeroes should be added with for example 0.1, 10" condi …
answered Jun 7 '18 by sundar - Reinstate Monica
1
vote
Julia 0.6, 49 bytes V\n=sum(reshape([V;zeros(n-endof(V)%n,1)],n,:),2) Try it online!
answered Jul 8 '18 by sundar - Reinstate Monica
8
votes
Brachylog, 37 bytes hW&t~c.k{↰₂ˢl}ᵐ;WxĖ∧.bhᵐ↰₂ᵐ∧.t↰₂ˢl≤W∧ Try it online! I was pleasantly surprised to find that this - pretty much a restatement of the question - successfully terminates and prod …
answered Jul 30 '18 by sundar - Reinstate Monica
1
vote
Julia 0.6, 36 34 32 bytes A->values(Dict(y=>x for(x,y)=A)) Try it online! (shaved off two bytes thanks to @JonathanFrech) (another two bytes by replacing ∈ with = in comprehension) The input fo …
answered Jun 6 '18 by sundar - Reinstate Monica
1
vote
MATL, 9 bytes viiQ(5Mu) Try it online! Probably suboptimal, but hey, it works! Uses the facts that (a) input is guaranteed to have only non-negative integers, (b) MATL extends an array of you try …
answered Jul 5 '18 by sundar - Reinstate Monica
2
votes
MATL, 18 17 bytes t4Y2m)!Ut1YSof)sE Try it online! (-1 byte thanks to Luis Mendo/Giuseppe/both!) Explanation: % Implicit input t % duplicate input % stack: ['r5e6o9mm!/3708dvc' 'r5 …
answered Jul 6 '18 by sundar - Reinstate Monica

15 30 50 per page