code-golf
Ruby read/write to file in 1 line of code
I am kind of a newbie to Ruby, I am working out some katas and I stuck on this silly problem. I need to copy the content of 1 file to a new file in 1 line of code[详细]
2023-04-05 13:02 分类:问答Can this Linux / 32bit x86 assembly "Hello, World" be made smaller still?
The following 32bit x86 Linux program prints a string of arbitrary length (as long as a program can be, anyway) and does exit(0) afterwards:[详细]
2023-04-05 07:45 分类:问答Python Code Shortening
I was trying to solve this problem here :- https://www.spoj.pl/problems/PHIVAL/ The questions asks you to output as many decimal digits of the golden ratio (1+sqrt(5))/2 as possible and also try to m[详细]
2023-02-27 07:52 分类:问答How to Rewrite of One Line Code (or Less Line Code in command line) of this code in Perl?
I have a code like that: #!/usr/bin/perl use strict; use warnings; my %proteins = qw/ UUU F UUC F UUA L UUG L UCU S UCC S UCA S UCG S UAU Y UAC Y UGU C UGC C UGG W[详细]
2023-02-18 23:09 分类:问答garble function contest
Remember that away message on aim that said how: Aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it deosn\'t mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht the f[详细]
2023-02-09 17:02 分类:问答Code Golf: Numeric Ranges
Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions.[详细]
2023-02-03 10:42 分类:问答Code Golf: Countdown Number Game
Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions.[详细]
2023-02-02 11:20 分类:问答Code Golf: Towers of Hanoi
Locked. This question and its answers are locked because the question i开发者_运维知识库s off-topic but has historical significance. It is not currently accepting new answers or interactions.[详细]
2023-01-28 13:58 分类:问答Code Golf: Gray Code
Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions.[详细]
2023-01-24 02:36 分类:问答Household mail merge (code golf)
I wrote some mail merge code the other day and although it works I\'m a turned off by the code. I\'d like to see what it would look like in other languages.[详细]
2023-01-23 16:42 分类:问答